POST
/
verify-otp
curl --request POST \
  --url https://api.craveup.com/v1/verify-otp \
  --header 'Content-Type: application/json' \
  --data '{
  "identifier": "<string>",
  "otp": "<string>"
}'
{
  "customerId": "<string>",
  "token": "<string>"
}

Body

application/json
identifier
string
required

The customer's email or phone number.

otp
string
required

The OTP code entered by the customer.

Response

200
application/json
OTP verified successfully.
customerId
string

The customer's unique ID.

token
string

The JWT authentication token for the customer.