Allow transfers to a number (owner)
POST
/v1/workspace/transfer-destinations
const url = 'https://api.vocapable.com/v1/workspace/transfer-destinations';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","phone_e164":"example","payment_line":false}'};
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/transfer-destinations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "phone_e164": "example", "payment_line": false }'Only the owner decides where the company’s callers may be sent (E5-R3): a person picks an entry; the server dials the number stored here, from the business line.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
WorkspaceTransferDestinationCreate
object
name
required
Name
string
phone_e164
required
Phone E164
string
payment_line
Payment Line
boolean
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
WorkspaceTransferDestination
A number the owner allow-listed for external transfers and three-way calls (E5-R3).
object
id
required
Id
string
name
required
Name
string
phone_e164
required
Phone E164
string
revision
required
Revision
integer
payment_line
Payment Line
boolean
Example
{ "payment_line": false}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": {} } ]}