Skip to main content

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

    filter[leg_id] uuid

    The unique identifier of an individual call leg.

    filter[application_session_id] uuid

    The unique identifier of the call session. A session may include multiple call leg events.

    filter[connection_id] string

    The unique identifier of the conection.

    filter[product] string

    Possible values: [call_control, fax, texml]

    Filter by product.

    filter[from] string

    Filter by From number.

    filter[to] string

    Filter by To number.

    filter[failed] boolean

    Delivery failed or not.

    filter[type] string

    Possible values: [command, webhook]

    Event type

    filter[name] string

    Event name

    filter[occurred_at][gt] string

    Event occurred_at: greater than

    filter[occurred_at][gte] string

    Event occurred_at: greater than or equal

    filter[occurred_at][lt] string

    Event occurred_at: lower than

    filter[occurred_at][lte] string

    Event occurred_at: lower than or equal

    filter[occurred_at][eq] string

    Event occurred_at: equal

    page[number] integer

    Possible values: >= 1

    Default value: 1

    The page number to load

    page[size] integer

    Possible values: >= 1 and <= 250

    Default value: 20

    The size of the page

Responses

200: Successful response with a list of call events.

default: Unexpected error

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
}
}