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
  • Native/Mobile SDKs
    • Flutter
  1. APIs

Verify Token

POST
https://app.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

Body Params application/json

Example
{
    "token": "string"
}

Request Code 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://app.authyo.io/api/v1/auth/verifytoken' \
--header 'clientId;' \
--header 'clientSecret;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "token": "string"
}'

Responses

🟢200Success
application/json
Body

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-08-23 07:33:12
Previous
Verify OTP
Next
JavaScript
Built with