Skip to main content
POST
/
v1
/
verify-otp
Verify OTP
curl --request POST \
  --url https://api.otpedge.com/v1/verify-otp \
  --header 'Content-Type: application/json' \
  --data '
{
  "phone_number": "<string>",
  "code": "<string>"
}
'
{
  "status": "verified",
  "identity_token": "eyJhbGciOiJSUzI1NiIsImtpZCI6InZub2RlXzIwMjZfMDUifQ..."
}

Documentation Index

Fetch the complete documentation index at: https://docs.otpedge.com/llms.txt

Use this file to discover all available pages before exploring further.

Request Body

phone_number
string
required
The recipient’s phone number in E.164 format.
code
string
required
The 6-digit code entered by the user.

Response Examples

{
  "status": "verified",
  "identity_token": "eyJhbGciOiJSUzI1NiIsImtpZCI6InZub2RlXzIwMjZfMDUifQ..."
}
The response does not contain user data. You must decode the identity_token on your backend to retrieve the user’s phone number. This ensures the request is authentic and hasn’t been tampered with.