Skip to main content
POST
/
v1
/
verify-2fa
Verify 2FA
curl --request POST \
  --url https://api.example.com/v1/verify-2fa \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "otp": "<string>"
}
'
{
  "access_token": "<string>",
  "expires_in": 123,
  "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
user_id
string<uuid>
required
otp
string
required
Required string length: 6

Response

2FA verification successful

access_token
string
required
expires_in
integer
required

Token expiration in seconds

user_id
string<uuid>
required