Skip to main content
POST

Authorizations

X-API-Key
string
header
required

Body

application/json
code
string
required

The verification to be checked.

Example:

"123456"

verificationId
string

ID of the verification to be checked. One of verificationId or to is required.

Example:

"vid"

to
string

The recipient's phone number or email address. One of verificationId or to is required.

Example:

"+16315551111"

Response

200 - application/json

Successfully processed the verification check.

id
string
required

ID of this verification check.

Example:

"vc8f92c20"

valid
boolean
required

Whether the verification code is valid for this check.

Example:

false

status
enum<string>

Status of the verification.

  • pending: The verification message (SMS, Voice, etc.) is sent, waiting to be checked. This happens when you call the 'Start a verification' API successfully.
  • approved: The verification has been successfully checked. A pending verification status changes to approved when you call the 'Check a verification' API and receive a response with the valid parameter is true. An approved verification cannot be checked anymore.
  • blocked: The verification is blocked by user-defined rules such as denylist, and geographical permission restrictions. A blocked verification cannot be checked.
  • expired: The verification has expired and cannot be checked anymore.
  • undelivered: Our system has received a delivery receipt indicating that the verification message was not delivered. An undelivered verification cannot be checked anymore.
Available options:
pending,
approved,
blocked,
expired,
undelivered
to
string

The recipient's phone number in E.164 format or email address.

Example:

"+16315551111"

channel
enum<string>

Supports several independent channels for verification:

  • sms: Sends an SMS message with a verification code.
  • voice: Makes a voice call with a verification code.
  • email_code: Sends an email with a verification code.
  • whatsapp: Sends a WhatsApp message with a verification code.
Available options:
sms,
voice,
email_code,
whatsapp
Example:

"sms"