curl --request POST \
--url https://verify-api.smsmanager.com/v1/validations \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"phoneNumber": "1234567890"
}
'{
"token": "61591bd88d8fbe7736bca535809d1216dd71cb0b5cbf2b07e5a08adfbeb5d35b",
"status": "pending",
"expiresAt": "2024-01-01T00:10:00.000Z",
"timestamp": "2024-01-01T00:00:00.000Z"
}Verify API
Start phone validation
Initiates a new phone number validation by sending an message with a verification code. Returns a validation token that must be used for subsequent verification.
POST
/
v1
/
validations
curl --request POST \
--url https://verify-api.smsmanager.com/v1/validations \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"phoneNumber": "1234567890"
}
'{
"token": "61591bd88d8fbe7736bca535809d1216dd71cb0b5cbf2b07e5a08adfbeb5d35b",
"status": "pending",
"expiresAt": "2024-01-01T00:10:00.000Z",
"timestamp": "2024-01-01T00:00:00.000Z"
}Body
application/json
Response
Validation started successfully
Was this page helpful?