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

# Get call details

> Returns full call details including transcript and audio URL.
Purged calls (`is_purged: true`) have had their personal data removed by
the retention process — expect `transcript`, `audio_file_url`, and
`phone_number` to be null.




## OpenAPI

````yaml get /v1/agents/{agentId}/calls/{callId}
openapi: 3.1.0
info:
  title: TalkPilot API
  version: 1.0.0
  description: >
    The TalkPilot API allows you to programmatically manage your call center
    agents,

    employees, forwarding slots, knowledge base, and more.


    ## Authentication


    All API requests require an API key passed via the `X-API-Key` header:


    ```

    X-API-Key: tp_live_abc123def456...

    ```


    An API key can reach every organization its creator is a member of (see

    `GET /v1/organization`) and can be restricted to specific agents and
    permissions.

    Create and manage keys in the TalkPilot Dashboard under **Settings > API**

    (Dev-Admin only).


    ## Rate Limiting


    Default limits per API key: **60 requests/minute** and **1,000
    requests/hour**

    (both enforced, both configurable per key).


    Rate limit headers are included in every response to a request authenticated

    with an API key (Dashboard JWT requests are not rate limited):

    - `X-RateLimit-Limit` — Max requests per minute

    - `X-RateLimit-Remaining` — Remaining requests in the current minute window

    - `X-RateLimit-Reset` — Unix timestamp roughly 60 seconds in the future


    When rate limited, the API returns `429 Too Many Requests` with
    `Retry-After: 60`

    (minute window) or `Retry-After: 3600` (hour window).


    ## Pagination


    List endpoints support pagination via query parameters:

    - `page` — Page number (default: 1)

    - `limit` — Items per page (default: 20, max: 100)


    Paginated responses include a `pagination` object with `page`, `limit`,
    `total`, and `pages`.


    ## Error Format


    All errors follow a consistent format:


    ```json

    {
      "error": {
        "code": "VALIDATION_ERROR",
        "message": "Human-readable description",
        "details": [{ "field": "name", "message": "Required" }],
        "request_id": "req_abc123"
      }
    }

    ```
  contact:
    name: TalkPilot Support
    email: support@talkpilot.io
  license:
    name: Proprietary
    identifier: LicenseRef-Proprietary
servers:
  - url: https://api.talkpilot.io
    description: Production
security:
  - apiKey: []
tags:
  - name: Health
    description: API health and status
  - name: Agents
    description: Manage AI agent configurations
  - name: Workflow
    description: Multi-state conversation flow of an agent
  - name: Tools
    description: Manage agent tools (HTTP requests, call transfers, etc.)
  - name: Employees
    description: Manage employees linked to agents
  - name: Contacts
    description: >-
      Customer contacts (customer_database) per agent — the voice agent
      recognises callers and greets them by name or tag from here
  - name: Forwarding Slots
    description: Manage call forwarding slot assignments
  - name: Knowledge Base
    description: Manage agent knowledge base documents
  - name: Calls
    description: Read call records and transcripts
  - name: Organization
    description: Organization-level settings
  - name: API Keys
    description: Manage API keys (Dashboard JWT auth only; dev_admin)
paths:
  /v1/agents/{agentId}/calls/{callId}:
    get:
      tags:
        - Calls
      summary: Get call details
      description: |
        Returns full call details including transcript and audio URL.
        Purged calls (`is_purged: true`) have had their personal data removed by
        the retention process — expect `transcript`, `audio_file_url`, and
        `phone_number` to be null.
      operationId: getCall
      parameters:
        - $ref: '#/components/parameters/AgentId'
        - $ref: '#/components/parameters/CallId'
      responses:
        '200':
          description: Call details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CallDetail'
              example:
                id: call-uuid-1
                call_id: lk_call_abc123
                customer_name: Hans Meier
                customer_request: 'Frage zu Rechnung #1234'
                phone_number: '+491701234567'
                duration: 180
                done: true
                general_success: true
                final_score: 8
                disconnection_reason: user_hangup
                call_summary: >-
                  Kunde fragte nach Rechnung #1234. Agent konnte Frage
                  beantworten.
                transcript: '[{"role":"agent","text":"Guten Tag..."}]'
                audio_file_url: https://storage.example.com/calls/abc123.wav
                employee: Max Mustermann
                note: Rueckruf vereinbart fuer Donnerstag
                is_purged: false
                deleted_at: null
                agent_id: 550e8400-e29b-41d4-a716-446655440000
                created_at: '2026-03-19T10:30:00Z'
                updated_at: '2026-03-19T10:35:00Z'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  parameters:
    AgentId:
      name: agentId
      in: path
      required: true
      description: Agent UUID
      schema:
        type: string
        format: uuid
    CallId:
      name: callId
      in: path
      required: true
      description: Call UUID
      schema:
        type: string
        format: uuid
  schemas:
    CallDetail:
      description: Full call details including transcript and audio URL
      allOf:
        - $ref: '#/components/schemas/Call'
        - type: object
          properties:
            transcript:
              type:
                - string
                - 'null'
              description: JSON string of conversation messages
            audio_file_url:
              type:
                - string
                - 'null'
              format: uri
              description: >-
                Recording URL as stored by the voice agent. Not re-signed by the
                API — it may have expired; use the Dashboard for playback
            final_score:
              type:
                - number
                - 'null'
              minimum: 1
              maximum: 10
              description: AI-generated quality score (1-10)
    Call:
      type: object
      description: Call summary (list view — no transcript or audio)
      properties:
        id:
          type: string
          format: uuid
        call_id:
          type:
            - string
            - 'null'
          description: External call ID (e.g. LiveKit)
        customer_name:
          type:
            - string
            - 'null'
        customer_request:
          type:
            - string
            - 'null'
        phone_number:
          type:
            - string
            - 'null'
        duration:
          type:
            - integer
            - 'null'
          description: Call duration in seconds
        done:
          type:
            - boolean
            - 'null'
        general_success:
          type:
            - boolean
            - 'null'
        disconnection_reason:
          type:
            - string
            - 'null'
          enum:
            - user_hangup
            - agent_hangup
            - call_transfer
            - unknown
            - busy
            - no_answer
            - dial_error
          description: '`busy`, `no_answer` and `dial_error` occur on outbound calls only'
        call_summary:
          type:
            - string
            - 'null'
        employee:
          type:
            - string
            - 'null'
          description: Assigned employee name
        note:
          type:
            - string
            - 'null'
        agent_id:
          type:
            - string
            - 'null'
          format: uuid
        is_purged:
          type: boolean
        deleted_at:
          type:
            - string
            - 'null'
          format: date-time
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
            - request_id
          properties:
            code:
              type: string
              enum:
                - VALIDATION_ERROR
                - UNAUTHORIZED
                - FORBIDDEN
                - AGENT_NOT_ACCESSIBLE
                - NOT_FOUND
                - CONFLICT
                - RATE_LIMITED
                - INTERNAL_ERROR
            message:
              type: string
            details:
              type: array
              items:
                type: object
                properties:
                  field:
                    type: string
                  message:
                    type: string
            request_id:
              type: string
  responses:
    Unauthorized:
      description: Missing or invalid authentication
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: UNAUTHORIZED
              message: Invalid or missing API key
              request_id: req_abc123
    Forbidden:
      description: >
        Insufficient permissions (`FORBIDDEN`), or the agent is outside the
        key's

        `allowed_agent_ids` (`AGENT_NOT_ACCESSIBLE`)
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            missingPermission:
              value:
                error:
                  code: FORBIDDEN
                  message: 'API key lacks required permission: agents:write'
                  request_id: req_abc123
            agentNotAccessible:
              value:
                error:
                  code: AGENT_NOT_ACCESSIBLE
                  message: API key does not have access to this agent
                  request_id: req_abc123
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: NOT_FOUND
              message: Agent not found
              request_id: req_abc123
    RateLimited:
      description: Too many requests for this API key (60/minute or 1,000/hour by default)
      headers:
        Retry-After:
          description: >-
            Seconds to wait before retrying — 60 for the minute window, 3600 for
            the hour window
          schema:
            type: integer
        X-RateLimit-Limit:
          schema:
            type: integer
        X-RateLimit-Remaining:
          schema:
            type: integer
        X-RateLimit-Reset:
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: RATE_LIMITED
              message: Rate limit exceeded. Try again in 60 seconds.
              request_id: req_abc123
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: |
        API key for external access. Format: `tp_live_<32-hex-chars>`.
        Create keys in the TalkPilot Dashboard under Settings > API.

````