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' \
  --data '{
  "identifierString": "user@example.com",
  "otp": "123456",
  "methodId": "otp_method_123"
}'
{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}

Body

application/json
identifierString
string
required
Example:

"user@example.com"

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..."

I