Authyo Docs
  1. APIs
Authyo Docs
  • 🐶 Walk through Authyo
  • Error Codes
  • About Pricing
  • APIs
    • Send OTP
      GET
    • Send OTP
      POST
    • Verify OTP
      GET
    • Verify Token
      POST
  • Web SDKs
    • JavaScript
    • PHP
    • AngularJS Examples
    • TypeScript Examples
    • React JS
    • Vue JS Examples
  1. APIs

Verify Token

POST
https://authyo.io/api/v1/auth/verifytoken
Validates the token issued after OTP verification to retrieve the associated user identity. This server-to-server API call requires authentication using the application's client ID and client secret for verification.

Request

Header Params
clientId
string 
optional
The clientId used for API authentication.
clientSecret
string 
optional
The clientSecret used for API authentication.
Body Params application/json
token
string 
required
JWT received from the Verify OTP response, used to authenticate and retrieve user identity.
Example
{
    "token": "string"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://authyo.io/api/v1/auth/verifytoken' \
--header 'clientId;' \
--header 'clientSecret;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "token": "string"
}'

Responses

🟢200Success
application/json
Body
success
boolean 
required
message
string 
required
data
object 
optional
userId
string 
optional
identities
object 
optional
Examples
{
    "success": true,
    "message": "token Verified successfully",
    "data": {
        "userId": "AY-Fa8zlOv7aLQ7QpzudBxwGEq1XSeABjToqwcpM33l8=",
        "identities": {
            "identityType": "phone",
            "identityValue": "9174050*****",
            "channel": "sms",
            "verified": true,
            "verifiedAt": "1751988056"
        }
    }
}
Modified at 2025-07-08 11:15:11
Previous
Verify OTP
Next
JavaScript
Built with