Creates a new Verification and sends the code to the given phone number.
Authorization
authorization AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://api.surge.app/verifications" \ -H "Content-Type: application/json" \ -d '{ "phone_number": "+18015551234" }'{
"attempt_count": 0,
"id": "vfn_01jayh15c2f2xamftg0xpyq1nj",
"phone_number": "+18015551234",
"status": "pending"
}{
"error": {
"message": "The requested resource could not be found.",
"type": "not_found"
}
}