Submit (or resume) SHAKEN/STIR, CNAM or Voice Integrity
POST
/v1/workspace/voice-trust/{kind}
const url = 'https://api.vocapable.com/v1/workspace/voice-trust/example';const options = { method: 'POST', headers: { 'Idempotency-Key': 'example', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"line_ids":["example"],"contact_email":"example","display_name":"example","use_case":"example","employee_count":1,"daily_call_volume":1,"accept_terms":true}'};
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/workspace/voice-trust/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: example' \ --data '{ "line_ids": [ "example" ], "contact_email": "example", "display_name": "example", "use_case": "example", "employee_count": 1, "daily_call_volume": 1, "accept_terms": true }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”kind
required
Kind
string
Header Parameters
Section titled “Header Parameters”Idempotency-Key
required
string
Unique key for this request, so a retry replays the original result instead of repeating the work. Stored for 24 hours; a replayed response carries Idempotent-Replay: true. A UUID is the documented shape. Required on this endpoint: a retry without one would dial a human twice or spend money twice.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
WorkspaceTrustSubmit
Start (or resume) one voice trust registration.
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
WorkspaceTrustRegistration
object
kind
required
Kind
string
stage
required
Stage
string
line_ids
required
Line Ids
Array<string>
failure_reasons
required
Failure Reasons
Array<string>
Example
{ "kind": "shaken_stir", "stage": "draft"}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": {} } ]}