---
title: "List all active calls for given connection"
method: GET
path: "/connections/{connection_id}/active_calls"
tags: ["Call Information"]
---

# List all active calls for given connection

`GET /connections/{connection_id}/active_calls`

Lists all active calls for given connection. Acceptable connections are either SIP connections with webhook_url or xml_request_url, call control or texml. Returned results are cursor paginated.

## Path parameters

- `connection_id` string, required

## Query parameters

- `page` object
  - `after` string — Opaque identifier of next page
  - `before` string — Opaque identifier of previous page
  - `limit` integer — Limit of records per single page
  - `number` integer — The page number to load
  - `size` integer — The size of the page

## Response `200`

Successful response with list of details about active calls.

- object
  - `data` ActiveCall[]
    - `call_control_id` string, required — Unique identifier and token for controlling the call.
    - `call_duration` integer, required — Indicates the duration of the call in seconds
    - `call_leg_id` string, required — ID that is unique to the call and can be used to correlate webhook events
    - `call_session_id` string, required — ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call
    - `client_state` string, required — State received from a command.
    - `record_type` 'call', required
  - `meta` CursorPaginationMeta
    - `cursors` Cursor
      - `after` string — Opaque identifier of next page.
      - `before` string — Opaque identifier of previous page.
    - `next` string — Path to next page.
    - `previous` string — Path to previous page.
    - `total_items` integer

## Other responses

- `422` — Unprocessable entity. The request was well-formed but could not be processed due to semantic errors. This includes validation errors, invalid parameter values, call state errors, conference errors, queue errors, recording/transcription errors, and business logic violations.
- `default` — Unexpected error

---

[API](https://skmtc.net/team-telnyx/apis/telnyx-api-2.md) · [All operations](https://skmtc.net/team-telnyx/apis/telnyx-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/team-telnyx/telnyx-api-2/revisions/ec31f78cf002/schema)
