List call events
GET/call_events
Filters call events by given filter parameters. Events are ordered by event_timestamp
. If filter for call_leg_id
or call_session_id
is not present, it only filters events from the last 24 hours.
Note: Only one filter[event_timestamp]
can be passed.
Request
Query Parameters
The unique identifier of an individual call leg.
The unique identifier of the call control session. A session may include multiple call leg events.
Possible values: [delivered
, failed
]
Event status
Possible values: [command
, webhook
]
Event type
Event timestamp: greater than
Event timestamp: greater than or equal
Event timestamp: lower than
Event timestamp: lower than or equal
Event timestamp: equal
Possible values: >= 1
Default value: 1
The page number to load
Possible values: >= 1
and <= 250
Default value: 20
The size of the page
Responses
200: Successful response with a list of call events.
- application/json
default: Unexpected error
- application/json
Request samples
curl -L 'https://api.telnyx.com/v2/call_events' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
Response samples
{
"data": [
{
"record_type": "call_event",
"call_leg_id": "308fe500-5213-11e9-ace7-02420a0f0668",
"call_session_id": "308fec30-5213-11e9-9d3f-02420a0f0668",
"event_timestamp": "2019-03-29T11:10:19.127783Z",
"name": "call.hangup",
"type": "webhook",
"metadata": {}
}
],
"meta": {
"total_pages": 3,
"total_results": 55,
"page_number": 2,
"page_size": 25
}
}
{
"errors": [
{
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}