> ## Documentation Index
> Fetch the complete documentation index at: https://dialnexa.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Batch Call Details

> Fetch calls and progress details for one batch call.

Read only
Get Batch Call Details returns the calls created for one batch in your workspace, as a root JSON array of call records with the fields shown in the response panel. Each record includes the number the call was placed from (`from_number`, your DialNexa number), the number it was placed to (`to_number`, the lead's stored number) and its `call_direction`, which is always `outbound` for a batch. Page through them with `page` and `limit` (up to `200`), or set `export=true` to receive every matching call in one response. An export above `5,000` rows is refused with `400`; the limit is `10,000` when `columns` is sent and leaves out both `transcript` and `summary`. Paginated results leave out retry attempts; `export=true` includes them. An unknown batch ID, or one from another workspace, returns an empty array. [List Calls](https://dialnexa.com/docs/api-reference/v1/calls/list.md) with `batch_call_id` returns the same records.

## When to use this

* **Operational dashboards**: render the batch detail page with live progress.
* **Call progress**: inspect the calls a waiting or running batch has produced so far. For the batch's own status (`waiting`, `running`, `paused`, `completed`), poll [List Batch Calls](https://dialnexa.com/docs/api-reference/v1/batches/list.md); an empty array here cannot tell a waiting batch from one with no matching calls.
* **Audit logs**: inspect the calls created for the batch and their current outcomes.
* **Re-run preparation**: compare previous call outcomes before creating a new batch with [Create Batch Call](https://dialnexa.com/docs/api-reference/v1/batches/create.md).

To list every batch, use [List Batch Calls](https://dialnexa.com/docs/api-reference/v1/batches/list.md). To investigate calls in the dashboard, use [Call History](https://dialnexa.com/docs/monitoring/call-history.md) and filter by the batch ID.

## Path parameters

| Parameter | Description |
| - | - |
| `id` | The batch call ID, for example `batch_q1r5sv9mdk3z`. |

## Common query parameters

The returned calls support the same operational filters used by call log browsing.

| Parameter | Description |
| - | - |
| `page` / `limit` | Paginate calls in the batch. |
| `agent_id` | Filter by one agent ID or comma-separated agent IDs. Ignored when `agent_version_id` is sent, and replaced by `agent_version_name` when that name matches a version. |
| `call_id` | Filter to one call ID or comma-separated call IDs inside the batch. |
| `from` / `to` | `from` is a partial match on the digits of the workspace number on the call. `to` is a partial match on the lead's number as stored: it is not reduced to digits, and Indian lead numbers are stored as `91XXXXXXXXXX` without `+`, so send digits only. Retry attempts never match `to`. |
| `type` | Filter by `phone` or `web`, or both comma-separated. Any other value returns `400`. |
| `call_direction` | Filter by `inbound` or `outbound`, or both comma-separated. Any other value returns `400`. |
| `status` | Filter by one call status or comma-separated statuses: `initiated`, `received`, `sent`, `did_not_pick`, `busy`, `failed`, `no_answer`, `completed`, `created`, `cancelled`, `retry_expired`. Any other value returns `400`. |
| `sentiment` | Filter by one or more sentiment values: `positive`, `neutral`, `negative`, `unknown`. Values are lowercase; any other value returns `400`. |
| `end_reason` | Filter by one exact hang up reason or a comma-separated list: `agent_disconnected`, `user_disconnected`, `user_busy`, `user_did_not_pick_up`, `invalid_phone_number`, `unallocated_phone_number`, `unknown`, `network_failure`, `voicemail_detected`, `user_unreachable`, `destination_forbidden`, `system_failure`, `system_at_capacity`, `insufficient_balance`, `agent_not_found`, `sip_auth_failed`, `sip_trunk_unreachable`, `spend_cap_reached`, `dnc_blocked`. Unknown values are ignored; if none is known, no calls match. |
| `duration_min` / `duration_max` | Filter by an inclusive duration range in seconds. Send both: one sent alone is ignored. |
| `created_at` / `duration` | Sort by created time or duration with `asc` or `desc`. |
| `export` | Set to `true` to return every matching call in one JSON array without pagination, up to the applicable row limit, including retry attempts. Omit it or send `false` to receive pages. The row limit counts the original calls only; retry attempts are added on top, so the array can be longer. |
| `columns` | Export only. Comma-separated column keys. Excluding both `transcript` and `summary` raises the single-export limit from `5,000` to `10,000` rows. |
| `agent_version_id` | Filter by agent version, written as `<agent_id>-<version_number>` (for example `agent_2g7Xy3tY53gRlp-3`); one value or a comma-separated list. A value in any other format is ignored, and when no value is valid the filter is dropped. When it is sent, `agent_id` is not applied. |
| `agent_version_name` | Search by agent version name (partial match, case-insensitive). |
| `start_date` | Return calls created on or after the start of this day in UTC (ISO 8601). The value is converted to UTC first, then widened to 00:00:00 UTC of that day, so a time with an offset can move the day. Send a plain date (`YYYY-MM-DD`). |
| `end_date` | Return calls created on or before the end of this day in UTC (ISO 8601). The value is converted to UTC first, then widened to 23:59:59.999 UTC of that day, so a time with an offset can move the day. Send a plain date (`YYYY-MM-DD`). |
| `duration_greater_than` | Return calls longer than this many seconds. Minimum `0`. |
| `duration_less_than` | Return calls shorter than this many seconds. Minimum `0`. |
| `is_ivr` | Filter by whether the call was handled by an IVR agent (matched by the call's agent and/or the IVR billing flag, so both promoted/transferred and pure menu calls count). true = IVR calls only; false = non-IVR calls only; omit for all. |
| `tags` | Filter by lead tags: the tags attached to the workflow lead when its leads file was uploaded, snapshotted onto the call when it was placed. Comma-separated for multiple values. Matching is case-insensitive because tags are normalized to lowercase on upload. Use tags\_match to choose ANY (default) or ALL. |
| `tags_match` | How multiple `tags` values combine: "any" returns calls carrying at least one of them (default), "all" returns only calls carrying every one of them. One of `any`, `all`. Default: `any`. |
| `agent_type` | Filter by agent type. ivr is equivalent to is\_ivr=true and includes IVR handoffs. Other types require an agent ID retained on the call; calls without one do not match those types. One of `single_prompt`, `conversational_flow`, `speech_to_speech`, `ivr`. |

## Filter Batch Calls By Agent Type

The endpoint accepts the same `agent_type` values as [List Calls](https://dialnexa.com/docs/api-reference/v1/calls/list.md#list-calls-by-agent-type): `single_prompt`, `conversational_flow`, `speech_to_speech`, and `ivr`.

## Errors

* `400 Bad Request` is returned when query parameters are invalid, including a `status`, `type`, `call_direction` or `sentiment` value outside its list, or when an export exceeds the applicable row limit.

## Related endpoints

* [List Batch Calls](https://dialnexa.com/docs/api-reference/v1/batches/list.md): browse all batches.
* [Create Batch Call](https://dialnexa.com/docs/api-reference/v1/batches/create.md): start a new batch.
* [Batch calling](https://dialnexa.com/docs/batch-calls/overview.md): guidance on designing a batch.
* [Concurrency and limits](https://dialnexa.com/docs/reference/limits.md): pacing batches against your workspace limits.


## OpenAPI

````yaml GET /v1/batch-calls/{id}
openapi: 3.0.0
info:
  title: DialNexa API
  description: Public `/v1` REST API for the DialNexa voice AI platform.
  version: 1.0.0
servers:
  - url: https://api.dialnexa.com
    description: DialNexa production API
security:
  - bearer: []
tags:
  - name: Agents
  - name: Batch Calls
  - name: Calls
  - name: Knowledge Base
  - name: Languages
  - name: LLMs
  - name: Phone Numbers
  - name: Organization Folders
  - name: Transcribers
  - name: Webhooks
  - name: Voices
  - name: Workflows
  - name: Workflow Leads
  - name: Authentication
  - name: Agent Builder
  - name: Agent Evaluations
paths:
  /v1/batch-calls/{id}:
    get:
      tags:
        - Batch Calls
      summary: Get Batch Call Details
      description: >-
        Returns the calls created for one batch as a root JSON array, paginated
        with page and limit unless export=true. An unknown batch ID, or one from
        another workspace, returns an empty array. Paginated results leave out
        retry attempts; export=true includes them.
      operationId: getBatchCall
      parameters:
        - name: id
          required: true
          in: path
          description: Batch call ID
          schema:
            type: string
            example: batch_abc123
        - name: agent_id
          required: false
          in: query
          description: >-
            Filter by agent ID: one ID or a comma-separated list (e.g.,
            agent_abc,agent_def). Ignored when agent_version_id is sent, and
            replaced by agent_version_name when that name matches a version.
          schema:
            type: string
        - name: call_id
          required: false
          in: query
          description: >-
            Filter by call ID - can be a single ID or comma-separated list
            (e.g., call_abc,call_def)
          schema:
            type: string
        - name: from
          required: false
          in: query
          description: >-
            Filter by the workspace phone number on the call (the number dialled
            from, or for an inbound call the number that was called), as a
            partial match on its digits.
          schema:
            type: string
        - name: to
          required: false
          in: query
          description: >-
            Filter by recipient phone number, as a partial match on the batch
            lead's number as stored. The value is not reduced to digits, and
            Indian lead numbers are stored as `91XXXXXXXXXX` without `+`, so
            send digits only. Only batch calls carry a lead, so single calls and
            retry attempts never match this filter.
          schema:
            type: string
        - name: type
          required: false
          in: query
          description: >-
            Filter by call type: one value or a comma-separated list of `phone`,
            `web`.
          schema:
            type: string
        - name: call_direction
          required: false
          in: query
          description: >-
            Filter by call direction: one value or a comma-separated list of
            `inbound`, `outbound`.
          schema:
            type: string
        - name: agent_version_id
          required: false
          in: query
          description: >-
            Filter batch calls by agent version, written as
            `<agent_id>-<version_number>` (for example
            `agent_2g7Xy3tY53gRlp-3`); one value or a comma-separated list. Only
            calls placed by a batch match. A value in any other format is
            ignored, and when no value is valid the whole filter is dropped.
            When this parameter is sent, `agent_id` is not applied.
          schema:
            type: string
            example: agent_2g7Xy3tY53gRlp-3
        - name: agent_version_name
          required: false
          in: query
          description: Search by agent version name (partial match, case-insensitive)
          schema:
            type: string
        - name: sentiment
          required: false
          in: query
          description: >-
            Filter by user sentiment: one value or a comma-separated list of
            `positive`, `neutral`, `negative`, `unknown`.
          schema:
            type: string
        - name: start_date
          required: false
          in: query
          description: >-
            Return calls created on or after the start of this day in UTC (ISO
            8601). The value is converted to UTC first, then widened to 00:00:00
            UTC of that day, so a time with an offset can move the day. Send a
            plain date (`YYYY-MM-DD`).
          schema:
            type: string
        - name: end_date
          required: false
          in: query
          description: >-
            Return calls created on or before the end of this day in UTC (ISO
            8601). The value is converted to UTC first, then widened to
            23:59:59.999 UTC of that day, so a time with an offset can move the
            day. Send a plain date (`YYYY-MM-DD`).
          schema:
            type: string
        - name: duration_greater_than
          required: false
          in: query
          description: Return calls longer than this many seconds.
          schema:
            minimum: 0
            type: number
        - name: duration_less_than
          required: false
          in: query
          description: Return calls shorter than this many seconds.
          schema:
            minimum: 0
            type: number
        - name: duration_min
          required: false
          in: query
          description: >-
            Lower bound of a duration range in seconds, inclusive. Applied only
            together with duration_max; sent alone it is ignored.
          schema:
            minimum: 0
            type: number
        - name: duration_max
          required: false
          in: query
          description: >-
            Upper bound of a duration range in seconds, inclusive. Applied only
            together with duration_min; sent alone it is ignored.
          schema:
            minimum: 0
            type: number
        - name: page
          required: false
          in: query
          description: Page number (starts from 1)
          schema:
            minimum: 1
            example: 1
            type: integer
        - name: limit
          required: false
          in: query
          description: Number of records per page. Minimum 1, maximum 200.
          schema:
            minimum: 1
            maximum: 200
            default: 20
            example: 20
            type: integer
        - name: created_at
          required: false
          in: query
          description: Sort by created_at (asc or desc)
          schema:
            type: string
            enum:
              - asc
              - desc
        - name: duration
          required: false
          in: query
          description: Sort by duration (asc or desc)
          schema:
            type: string
            enum:
              - asc
              - desc
        - name: status
          required: false
          in: query
          description: >-
            Filter by call status: one value or a comma-separated list, for
            example completed,failed. Values: initiated, received, sent,
            did_not_pick, busy, failed, no_answer, completed, created,
            cancelled, retry_expired. An unknown value returns 400.
          schema:
            type: string
        - name: export
          required: false
          in: query
          description: >-
            Set to `true` to return every matching call in one JSON array
            without pagination, up to the export row limit, including retry
            attempts. Omit it or send `false` to receive pages. For a batch
            export, the row limit counts the original calls only; retry attempts
            are added on top, so the array can be longer.
          schema:
            type: boolean
        - name: end_reason
          required: false
          in: query
          description: >-
            Filter by why the call ended: one value or a comma-separated list of
            `agent_disconnected`, `user_disconnected`, `user_busy`,
            `user_did_not_pick_up`, `invalid_phone_number`,
            `unallocated_phone_number`, `unknown`, `network_failure`,
            `voicemail_detected`, `user_unreachable`, `destination_forbidden`,
            `system_failure`, `system_at_capacity`, `insufficient_balance`,
            `agent_not_found`, `sip_auth_failed`, `sip_trunk_unreachable`,
            `spend_cap_reached`, `dnc_blocked`. Unknown values are ignored; if
            no value is known, no calls match.
          schema:
            type: string
        - name: is_ivr
          required: false
          in: query
          description: >-
            Filter by whether the call was handled by an IVR agent (matched by
            the call's agent and/or the IVR billing flag, so both
            promoted/transferred and pure menu calls count). true = IVR calls
            only; false = non-IVR calls only; omit for all.
          schema:
            type: boolean
        - name: tags
          required: false
          in: query
          description: >-
            Filter by lead tags: the tags attached to the workflow lead when its
            leads file was uploaded, snapshotted onto the call when it was
            placed. Comma-separated for multiple values. Matching is
            case-insensitive because tags are normalized to lowercase on upload.
            Use tags_match to choose ANY (default) or ALL.
          schema:
            example: priority,q3-campaign
            type: string
        - name: tags_match
          required: false
          in: query
          description: >-
            How multiple `tags` values combine: "any" returns calls carrying at
            least one of them (default), "all" returns only calls carrying every
            one of them.
          schema:
            default: any
            type: string
            enum:
              - any
              - all
        - name: columns
          required: false
          in: query
          description: >-
            Export only: comma-separated list of column keys being exported
            (e.g. "duration,status,end_reason"). Lets the server skip fetching
            heavy columns nobody asked for, which raises the export row limit.
            Omit to fetch everything, as before.
          schema:
            type: string
        - name: agent_type
          in: query
          required: false
          schema:
            type: string
            enum:
              - single_prompt
              - conversational_flow
              - speech_to_speech
              - ivr
          description: >-
            Filter by agent type. ivr is equivalent to is_ivr=true and includes
            IVR handoffs. Other types require an agent ID retained on the call;
            calls without one do not match those types.
      responses:
        '200':
          description: Calls in the batch returned successfully.
          content:
            application/json:
              examples:
                success:
                  summary: Calls in the batch
                  value:
                    - id: call_abc123
                      agent_id: agent_2g7Xy3tY53gRlp
                      batch_id: batch_abc123
                      to_number: '919876543210'
                      phone_number_id: phn_abc123
                      duration: '42'
                      status: completed
                      end_reason: user_disconnected
                      llm_name: gpt-4o
              schema:
                type: array
                description: >-
                  The calls created for this batch, one record per lead.
                  Paginated with page and limit unless export=true; retry
                  attempts appear only with export=true.
                items:
                  type: object
                  properties:
                    id:
                      type: string
                      example: call_abc123
                      description: Signed call ID.
                    agent_id:
                      type: string
                      nullable: true
                      example: agent_2g7Xy3tY53gRlp
                      description: Agent that handled the call.
                    batch_id:
                      type: string
                      nullable: true
                      example: batch_abc123
                      description: >-
                        Signed batch ID of the batch the call belongs to; null
                        for single calls and for retry attempts.
                    from_number:
                      type: string
                      nullable: true
                      description: >-
                        Number that placed the call: your DialNexa number for an
                        outbound call, and the caller's number for an inbound
                        call. Returned as recorded, so it may not start with
                        `+`. Null for a web call.
                      example: '+918012345678'
                    to_number:
                      type: string
                      nullable: true
                      example: '919876543210'
                      description: >-
                        Number that received the call: the contact's number for
                        an outbound call, and your DialNexa number for an
                        inbound call. Returned as recorded: for a batch call it
                        is the lead's stored number, where an Indian number
                        appears as `91XXXXXXXXXX` without `+`.
                    call_direction:
                      type: string
                      nullable: true
                      description: >-
                        Direction of the call: `inbound` or `outbound`. Calls in
                        a batch are always `outbound`.
                      example: outbound
                    phone_number_id:
                      type: string
                      nullable: true
                      example: phn_abc123
                      description: >-
                        ID of the workspace phone number the call was placed
                        from.
                    called_time:
                      type: string
                      nullable: true
                      format: date-time
                      description: When the call was placed.
                    duration:
                      type: string
                      example: '42'
                      description: >-
                        Call duration in seconds, serialized as a string (the
                        column is a 64-bit integer); null until a duration is
                        recorded.
                      nullable: true
                    status:
                      type: string
                      example: completed
                      description: Current call status.
                    initiated_time:
                      type: string
                      nullable: true
                      format: date-time
                      description: When the call was initiated on the telephony side.
                    end_reason:
                      type: string
                      nullable: true
                      example: user_disconnected
                      description: >-
                        Why the call ended; `unknown` until the call ends. One
                        of `agent_disconnected`, `user_disconnected`,
                        `user_busy`, `user_did_not_pick_up`,
                        `invalid_phone_number`, `unallocated_phone_number`,
                        `unknown`, `network_failure`, `voicemail_detected`,
                        `user_unreachable`, `destination_forbidden`,
                        `system_failure`, `system_at_capacity`,
                        `insufficient_balance`, `agent_not_found`,
                        `sip_auth_failed`, `sip_trunk_unreachable`,
                        `spend_cap_reached`, `dnc_blocked`.
                    postcallanalysis:
                      type: object
                      nullable: true
                      additionalProperties: true
                      description: >-
                        Post-call analysis fields extracted for this call, keyed
                        by field name. An empty object until analysis has run.
                    llm_name:
                      type: string
                      nullable: true
                      example: gpt-4o
                      description: Display name of the language model used on the call.
                    voice_model_name:
                      type: string
                      nullable: true
                      description: Display name of the voice used on the call.
                    recording_sas_url:
                      type: string
                      nullable: true
                      description: >-
                        Time-limited link to the recording. Absent from the
                        response unless export=true.
        '400':
          description: Invalid query parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FilteredErrorResponse'
              examples:
                error:
                  summary: 400 Bad Request
                  value:
                    message: >-
                      Request validation failed: limit must not be greater than
                      200
                unknownFilterValue:
                  summary: Unknown filter value
                  value:
                    message: >-
                      Request validation failed: Invalid status filter value:
                      foo. Allowed values: initiated, received, sent,
                      did_not_pick, busy, failed, no_answer, completed, created,
                      cancelled, retry_expired
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FilteredErrorResponse'
              examples:
                error:
                  summary: 401 Unauthorized
                  value:
                    message: >-
                      API key is missing or invalid. You can generate this by
                      logging in into dashboard
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FilteredErrorResponse'
              examples:
                error:
                  summary: 500 Internal Server Error
                  value:
                    message: An unexpected error occurred. Please try again later.
      security:
        - bearer: []
components:
  schemas:
    FilteredErrorResponse:
      type: object
      description: >-
        Error body on calls, batch calls, voices, languages and LLMs, which
        return only the message (and data for a coded refusal).
      properties:
        message:
          type: string
        data:
          type: object
          properties:
            code:
              type: string
              description: Machine-readable refusal code.
          description: >-
            Present for a coded refusal: code and the details listed for that
            code.
        validation_errors:
          type: array
          description: >-
            Present when uploaded rows fail number validation (batch and
            workflow lead uploads): one group per distinct error.
          items:
            type: object
            properties:
              error:
                type: string
              rows:
                type: array
                items:
                  type: integer
                description: Row numbers with this error.
              phone_numbers:
                type: array
                items:
                  type: string
        invalid_row_count:
          type: integer
          description: 'Present with validation_errors: how many rows failed.'
      required:
        - message
  securitySchemes:
    bearer:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.