Skip to main content
POST
/
authentication
/
validate-otp
Validates the OTP code and authenticates the user if the code is correct.
curl --request POST \
  --url https://api.example.com/authentication/validate-otp \
  --header 'Content-Type: application/json' \
  --data '
{
  "phoneNumber": "<string>",
  "requestId": "<string>",
  "otp": "<string>"
}
'

Body

The request containing the OTP request ID, OTP code, and phone number.

phoneNumber
string | null
requestId
string | null
otp
string | null

Response

OTP validated successfully. Returns authentication token with portal information.