Skip to content

Test a connection

POST
/v1/telephony/connections/{id}/test
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).

id
required
string
Media typeapplication/json
object
to
string
/^\+[1-9]\d{7,14}$/
from_number_id
string

Example generated

{
"to": "example",
"from_number_id": "example"
}

Test result (status and last_error say how it went)

Media typeapplication/json
object
id
required
string
provider
required
string
Allowed values: plivo vobiz sip
owner
required
string
Allowed values: orvoca customer
name
required
string
status
required
string
Allowed values: pending active error
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"
}
}