Connect a telephony provider
POST
/v1/telephony/connections
const url = 'https://api.orvoca.com/v1/telephony/connections';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"provider":"plivo","owner":"orvoca","name":"example","credentials":{"additionalProperty":"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.orvoca.com/v1/telephony/connections \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "provider": "plivo", "owner": "orvoca", "name": "example", "credentials": { "additionalProperty": "example" } }'owner: customer connects the workspace’s own provider account: credentials are checked with the provider, then stored encrypted and never returned. owner: orvoca uses numbers rented from Orvoca.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
provider
required
string
owner
string
name
string
credentials
object
key
additional properties
Responses
Section titled “Responses”Connected
Media typeapplication/json
object
id
required
string
provider
required
string
owner
required
string
name
required
string
status
required
string
credentials_hint
required
string | null
last_error
required
string | null
last_tested_at
required
string | null
created_at
required
string
Example
{ "provider": "plivo", "owner": "orvoca", "status": "pending"}Invalid request
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
param
string
request_id
required
string
Example generated
{ "error": { "code": "example", "message": "example", "param": "example", "request_id": "example" }}Not signed in or bad API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
param
string
request_id
required
string
Example generated
{ "error": { "code": "example", "message": "example", "param": "example", "request_id": "example" }}Not allowed
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
param
string
request_id
required
string
Example generated
{ "error": { "code": "example", "message": "example", "param": "example", "request_id": "example" }}Not found
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
param
string
request_id
required
string
Example generated
{ "error": { "code": "example", "message": "example", "param": "example", "request_id": "example" }}