List call logs
GET
/v1/calls
const url = 'https://api.orvoca.com/v1/calls?limit=50&direction=inbound&status=queued&outcome=booked&provider=plivo';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.orvoca.com/v1/calls?limit=50&direction=inbound&status=queued&outcome=booked&provider=plivo' \ --header 'Authorization: Bearer <token>'Newest first. Every call shows which provider and connection carried it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”limit
integer
cursor
string
direction
string
status
string
outcome
string
provider
string
connection_id
string
agent_id
string
campaign_id
string
phone
Calls from or to this number
string
Calls from or to this number
started_after
string format: date-time
started_before
string format: date-time
Responses
Section titled “Responses”Calls
Media typeapplication/json
object
data
required
Array<object>
object
id
required
string
direction
required
string
from
required
string
to
required
string
status
required
string
outcome
required
string | null
agent
required
object
id
required
string
name
required
string | null
provider
required
Which provider carried the call
string | null
provider_label
required
string | null
connection
required
object
id
required
string
name
required
string | null
started_at
required
string
ended_at
required
string | null
duration_s
required
number | null
billed_blocks
required
30-second blocks billed
number | null
cost
required
Paise
object
amount
required
number
currency
required
string
hangup_cause
required
string | null
language
required
string | null
sentiment
required
string | null
campaign_id
required
string | null
summary
required
One or two sentences, once the call is written up
string | null
test
required
Placed with a test API key. Test keys see only test calls; everyone else never sees them
boolean
next_cursor
required
string | null
has_more
required
boolean
Example
{ "data": [ { "direction": "inbound", "status": "queued", "outcome": "booked", "provider": "plivo", "cost": { "currency": "INR" } } ]}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" }}