Test a connection
POST
/v1/telephony/connections/{id}/test
const url = 'https://api.orvoca.com/v1/telephony/connections/example/test';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"to":"example","from_number_id":"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/example/test \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "to": "example", "from_number_id": "example" }'Checks the credentials with the provider. With to, also places a short test call from from_number_id (or the first outbound-enabled number on this connection).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
to
string
from_number_id
string
Example generated
{ "to": "example", "from_number_id": "example"}Responses
Section titled “Responses”Test result (status and last_error say how it went)
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
test_call
required
object
request_id
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" }}