List call events
GET/call_events
Filters call events by given filter parameters. Events are ordered by occurred_at
. If filter for leg_id
or application_session_id
is not present, it only filters events from the last 24 hours.
Note: Only one filter[occurred_at]
can be passed.
Request
Query Parameters
The unique identifier of an individual call leg.
The unique identifier of the call session. A session may include multiple call leg events.
The unique identifier of the conection.
Possible values: [call_control
, fax
, texml
]
Filter by product.
Filter by From number.
Filter by To number.
Delivery failed or not.
Possible values: [command
, webhook
]
Event type
Event name
Event occurred_at: greater than
Event occurred_at: greater than or equal
Event occurred_at: lower than
Event occurred_at: lower than or equal
Event occurred_at: 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": {}
}
]
}