Register a destination and deliver its one-time code
POST
/v1/verified-numbers
const url = 'https://api.vocapable.com/v1/verified-numbers';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"phone_e164":"example","label":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.vocapable.com/v1/verified-numbers \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "phone_e164": "example", "label": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
VerifiedNumberCreated
The registration response. verification_code is populated only in non-prod
environments, where no SMS/voice delivery channel exists yet; production refuses the
registration outright until the messaging adapter lands, rather than minting a code
nobody can receive (no fake success).
object
id
required
Id
string
phone_e164
required
Phone E164
string
status
required
Status
string
verification_attempts
required
Verification Attempts
integer
created_at
required
Created At
string format: date-time
Example
{ "status": "pending"}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}