Skip to main content
POST
/
v2
/
sandbox
/
verification-code
Get verification code for a test phone number
curl --request POST \
  --url https://api.connect.verifyyou.com/v2/sandbox/verification-code \
  --header 'API-KEY: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "phone_number": "+12105550142"
}
'
{
  "verification_code": "550142"
}

Authorizations

API-KEY
string
header
required

Your VerifyYou API key.

Body

application/json
phone_number
string
required

A test phone number in E.164 format.

Example:

"+12105550142"

Response

Verification code returned successfully.

verification_code
string

The verification code for this test number (last 6 digits).

Example:

"550142"