POST
/
v1
/
access
/
otp
/
verify
curl --request POST \
  --url https://api.oneofnone.io/v1/access/otp/verify \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "email": "jsmith@example.com",
  "code": "<string>"
}'
{
  "success": true,
  "message": "OTP verified successfully"
}

Authorizations

x-api-key
string
header
required

The API key required for accessing protected routes. It should be included in the request headers as x-api-key.

Body

application/json
email
string
required

The email address for which the OTP was generated.

code
string
required

The OTP code to verify.

Required string length: 6

Response

200
application/json
OTP verified successfully.
success
boolean

Indicates whether the OTP verification was successful.

Example:

true

message
string

Confirmation message that the OTP has been verified.

Example:

"OTP verified successfully"