---
title: "Ongoing CDRs"
method: POST
path: "/api/ongoing"
tags: ["CDRs"]
---

# Ongoing CDRs

`POST /api/ongoing`

### List Ongoing Calls

This endpoint allows you to retrieve a list of active calls in the PBX.

#### Request Body

- `format`: The format of the response.
    
- `destination`: Search by destination number.
    
- `bridged`: \[0 => not bridged , 1 => bridged\]
    
- `bill_duration_from`: Filter the bill duration from (sec).
    
- `bill_duration_till`: Filter the bill duration till (sec).
    
- `{custom_field}`: Filter by custom fields (Key -> field name, Value -> field value).
    

#### Response

The response will contain:

- `count`: The count of active calls.
    
- `cdrs`: An array of active call details including id, unique_id, channel_name, source, destination, original_destination, caller_id, call_start, duration, bill_duration, bridged, bridged_agent_name, bridged_agent_extension, direction, and custom_fields.

## Response `200`

successful operation

- object
  - `cdrs` object[]
    - `bill_duration` string
    - `bridged` string
    - `bridged_agent_extension` string
    - `bridged_agent_name` string
    - `call_start` string
    - `caller_id` string
    - `channel_name` string
    - `custom_fields` string
    - `destination` string
    - `direction` string
    - `duration` string
    - `id` string
    - `original_destination` string
    - `source` string
    - `unique_id` string
  - `count` string

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.net/commpeak/apis/dialer-api-v2-0-1.md) · [All operations](https://skmtc.net/commpeak/apis/dialer-api-v2-0-1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/commpeak/dialer-api-v2-0-1/revisions/eacecf960bb6/schema)
