Confirm the one-time code delivered to the number
POST
/v1/verified-numbers/{verified_number_id}/check
const url = 'https://api.vocapable.com/v1/verified-numbers/example/check';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"code":"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/example/check \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "code": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”verified_number_id
required
Verified Number Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
VerifiedNumberCheckRequest
Confirm the one-time code delivered to the number.
object
code
required
Code
string
Examplegenerated
{ "code": "example"}Responses
Section titled “Responses”Successful Response
Media typeapplication/json
VerifiedNumberSummary
A registration as its tenant sees it - the code and its hash are structurally absent.
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": {} } ]}