Skip to main content
POST
/
verify-otp
Verify OTP
curl --request POST \
  --url https://api.craveup.com/api/v1/verify-otp \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "identifierString": "[email protected]",
  "otp": "123456",
  "methodId": "otp_method_123"
}
'
{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}

Authorizations

X-API-Key
string
header
required

API Key required to authenticate requests

Body

application/json
identifierString
string
required
otp
string
required
Example:

"123456"

methodId
string | null

Required for email or SMS OTP verification depending on the login method.

Example:

"otp_method_123"

Response

OTP verified successfully.

token
string
required

Storefront session JWT. Send via the Authorization: Bearer header.

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."