POST
/
auth
/
v1
/
verify
/
otp
curl --request POST \
  --url https://auth.otpless.app/auth/v1/verify/otp \
  --header 'Content-Type: application/json' \
  --header 'clientId: <api-key>' \
  --header 'clientSecret: <api-key>' \
  --data '{
  "requestId": "unique_request_id",
  "otp": "OTP"
}'
{
  "requestId": "unique_request_id",
  "isOTPVerified": true,
  "message": "OTP verified successfully"
}

Authorizations

clientId
string
header
required
clientSecret
string
header
required

Body

application/json
requestId
string
required

The unique identifier of the OTP request to be verified.

Example:

"unique_request_id"

otp
string
required

The OTP provided by the user for verification.

Example:

"OTP"

Response

200
application/json
OTP verified successfully
requestId
string

The unique identifier of the OTP request.

Example:

"unique_request_id"

isOTPVerified
boolean

Indicates whether the OTP was successfully verified.

Example:

true

message
string

A message indicating the successful verification of the OTP.

Example:

"OTP verified successfully"