Skip to main content
POST
/
verify
/
v1
/
check
Check a verification code
curl --request POST \
  --url https://api.voyant.travel/verify/v1/check \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "to": "+14155551234",
  "code": "123456"
}
'
{
  "data": {
    "id": "<string>",
    "organizationId": "<string>",
    "serviceId": "<string>",
    "toValue": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "valid": true,
    "providerStatus": "<string>",
    "errorMessage": "<string>",
    "verifiedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Voyant Cloud API token, passed as Authorization: Bearer <token>. Each token carries a fixed set of scopes; an operation rejects tokens missing its required scope.

Body

application/json
to
string
required
Required string length: 3 - 320
Example:

"+14155551234"

code
string
required
Required string length: 1 - 32
Example:

"123456"

Response

Verification check result

data
object
required