Skip to main content
POST
/
v1
/
access
/
otp
/
verify
Verify OTP
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>",
  "include_user": true
}
'
{
  "success": true,
  "message": "<string>",
  "user": {
    "id": "<string>",
    "email": "jsmith@example.com",
    "phone": "<string>",
    "metadata": {},
    "login_count": 123,
    "last_login_at": "<string>",
    "created_at": "<string>",
    "updated_at": "<string>",
    "avatar_url": "<string>"
  }
}

Authorizations

x-api-key
string
header
required

Body

application/json
email
string<email>
required
code
string
required
Required string length: 6
include_user
boolean

Response

Successful response

success
boolean
required
message
string
required
user
object