> ## 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 Call Details

> Fetch one call with status, routing, timing, and analysis details.

Read only
Fetches the record for a single call by its ID. The response includes the call's current `status`, its direction (`call_direction`: `inbound` or `outbound`), the number that placed the call (`from_number`) and the number that received it (`to_number`); for an inbound call, `from_number` is the caller and `to_number` is your DialNexa number; for an outbound call, `from_number` is your DialNexa number and `to_number` is the contact. A web call has no originating phone number, so `from_number` is `null`. The response also includes the ID of the workspace number the call used (`phone_number_id`), the assigned `agent_id`, when it was placed (`called_time`) and initiated (`initiated_time`), and, once the call ends, its `duration`, `end_reason`, post-call analysis (`postcallanalysis`), and recording URL (`recording_sas_url`, null when there is no recording). A terminal status does not guarantee that recording or post-call processing has finished. Use this endpoint to poll for completion after triggering a call, render a call detail page, or sync per-call data into a downstream system.

## When to use this

* **Synchronous workflows**: trigger a call and poll until it reaches a terminal status before continuing.
* **Operational dashboards**: render a call detail view with status, duration, and the linked agent.
* **CRM sync**: write back the call outcome to the customer record the call was made for.

## Get Call Details After A Status Update

For production traffic, webhooks are the preferred way to know when a call has ended, they avoid the request volume and latency of repeated polling. Register a subscription with [Create Webhook](https://dialnexa.com/docs/api-reference/v1/webhooks/create.md) for eligible non-batch calls. Direct batch calls and calls refused before dialing do not send these deliveries; recording availability can also delay or prevent delivery, and a call can produce more than one delivery. Reconcile missing or duplicate events with the current call record. Use this endpoint only when you specifically need to fetch the latest state on demand (for example, a user opens a call detail page).

When polling is required, read `status`. A call is still in flight while it is `created`, `initiated`, `sent` or `received`. It has ended once it is `completed`, `did_not_pick`, `busy`, `no_answer`, `failed`, `cancelled` or `retry_expired`; `end_reason` then says why. See [call statuses](https://dialnexa.com/docs/batch-calls/retries-and-statuses.md#recipient-call-statuses) for what each value means. Poll every 5 to 10 seconds with an exponential cap; do not poll faster than once per second.

## Path parameters

| Parameter | Description |
| - | - |
| `id` | The call ID, for example `call_abc123`. Accepted with or without the `call_` prefix. |

## Errors

* `401 Unauthorized` is returned when the API key is missing or invalid.
* `404 Not Found` is returned when the call does not exist in this workspace. A call that belongs to another workspace is reported the same way.
* `500 Internal Server Error` is returned on an unexpected server-side failure.

## Related endpoints

* [Trigger a Call](https://dialnexa.com/docs/api-reference/v1/calls/create.md): start an outbound call.
* [List Calls](https://dialnexa.com/docs/api-reference/v1/calls/list.md): paginate across many calls.
* [Call detail page](https://dialnexa.com/docs/monitoring/call-detail-page.md): review the same call evidence in the dashboard.
* [Create Webhook](https://dialnexa.com/docs/api-reference/v1/webhooks/create.md): receive a delivery when each call ends instead of polling.


## OpenAPI

````yaml GET /v1/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/calls/{id}:
    get:
      tags:
        - Calls
      summary: Get Call Details
      description: >-
        Returns the current call record: routing, status, timing, end reason,
        post-call analysis and the recording URL when available. `from_number`
        and `to_number` are the numbers that placed and received the call, and
        `call_direction` is `inbound` or `outbound`.
      operationId: getCall
      parameters:
        - name: id
          required: true
          in: path
          description: Call ID
          schema:
            example: call_abc123
            type: string
      responses:
        '200':
          description: Call returned successfully.
          content:
            application/json:
              schema:
                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
                    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
                    description: 'Direction of the call: `inbound` or `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
                    format: date-time
                  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
                  initiated_time:
                    type: string
                  end_reason:
                    type: string
                    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
                    format: uri
                    description: >-
                      Time-limited URL for the call recording; null when the
                      call has no recording. Request the call again for a fresh
                      URL after it expires.
                    nullable: true
                required:
                  - id
              examples:
                success:
                  summary: Successful response
                  value:
                    id: call_abc123
                    agent_id: agent_2g7Xy3tY53gRlp
                    to_number: '+919876543210'
                    duration: '42'
                    status: completed
                    end_reason: user_disconnected
        '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
        '404':
          description: Call not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FilteredErrorResponse'
              examples:
                error:
                  summary: 404 Not Found
                  value:
                    message: Call log with ID 2g7Xy3tY53gRlp not found or is deleted
        '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.