Skip to main content
POST
/
passport-profile
/
v1
/
phone-otp
/
verify
Verify phone OTP code against user phone number
curl --request POST \
  --url https://api.sandbox.immutable.com/passport-profile/v1/phone-otp/verify \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "phone_number": "+61412345678",
  "code": "123456"
}
'
{
  "message": "all fields must be provided",
  "link": "https://docs.x.immutable.com/reference/#/",
  "trace_id": "e47634b79a5cd6894ddc9639ec4aad26",
  "code": "VALIDATION_ERROR",
  "details": {}
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Phone number OTP verification request

phone_number
string
required

Phone number

Required string length: 3 - 50
Example:

"+61412345678"

code
string
required

Phone number verification OTP

Required string length: 6
Example:

"123456"

Response

OK