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

# Get call details

> Returns full call details including the associated session with transcript, credits used, and a temporary recording download URL (if recording was enabled). The `recording_url` is valid for 7 days; use `GET /calls/{id}/recording-url` to mint a fresh URL after expiry.



## OpenAPI

````yaml /openapi.json get /calls/{id}
openapi: 3.1.0
info:
  title: Vocobase Partner API
  version: '2.0'
  description: >-
    API for managing voice AI agents, documents, and calls on the Vocobase
    platform.
servers:
  - url: https://api.vocobase.com/api/v2
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Config
    description: >-
      Read and update partner configuration, webhook settings, and telephony
      credentials.
  - name: Agents
    description: Create, read, update, and delete voice AI agents.
  - name: Voices
    description: >-
      List voice tiers, available voices, and stream preview audio for agent
      configuration.
  - name: Documents
    description: Upload, manage, and delete knowledge base documents.
  - name: Agent Documents
    description: Link and unlink documents to agents for knowledge base integration.
  - name: Calls
    description: Initiate outbound calls and view call history.
  - name: Phone Numbers
    description: >-
      Import DIDs, assign agents for inbound routing, and re-sync carrier
      Application bindings.
  - name: Inbound Routing Policies
    description: >-
      Define pre-answer routing decisions for inbound calls before AI sessions
      are created.
  - name: Telephony Connections
    description: Create, list, rename, and disconnect named V2 telephony connections.
  - name: VoiceLink Management
    description: Manage VoiceLink reseller clients, DID mapping, and readiness sync.
  - name: Projects
    description: Organize agents into projects. Every agent belongs to exactly one project.
  - name: Dictionaries
    description: Speech-recognition dictionary CRUD and agent attachment.
  - name: Sessions
    description: Browser-initiated WebRTC voice sessions for in-app voice agents.
paths:
  /calls/{id}:
    get:
      tags:
        - Calls
      summary: Get call details
      description: >-
        Returns full call details including the associated session with
        transcript, credits used, and a temporary recording download URL (if
        recording was enabled). The `recording_url` is valid for 7 days; use
        `GET /calls/{id}/recording-url` to mint a fresh URL after expiry.
      operationId: getCall
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Call ID.
      responses:
        '200':
          description: Call details with session data.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    const: true
                  data:
                    allOf:
                      - $ref: '#/components/schemas/Call'
                      - type: object
                        properties:
                          session:
                            $ref: '#/components/schemas/CallSession'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  schemas:
    Call:
      type: object
      properties:
        call_id:
          type: string
          format: uuid
        agent_id:
          type: string
          format: uuid
        session_id:
          type:
            - string
            - 'null'
          format: uuid
        direction:
          type: string
          enum:
            - outbound
            - inbound
        from_number:
          type: string
        to_number:
          type: string
        status:
          type: string
          enum:
            - pending
            - ringing
            - in_progress
            - completed
            - failed
            - no_answer
            - busy
            - canceled
          description: >-
            Call lifecycle/carrier status. Voicemail is exposed through
            `disposition`, not `status`.
        disposition:
          type:
            - string
            - 'null'
          enum:
            - completed
            - voicemail
            - user_hangup_no_speech
            - no_answer
            - busy
            - canceled
            - blocked
            - failed
            - transferred
            - null
          description: >-
            Final call outcome derived from carrier signals and bot-side
            signals. Use `voicemail` to detect carrier or bot voicemail
            outcomes.
        answered_by:
          type:
            - string
            - 'null'
          enum:
            - human
            - machine
            - unknown
            - not_answered
            - null
          description: >-
            Best-known answer classification. `machine` indicates an answering
            machine or voicemail.
        hangup_cause:
          type:
            - string
            - 'null'
          description: Raw normalized carrier hangup cause when available.
        hangup_source:
          type:
            - string
            - 'null'
          enum:
            - caller
            - callee
            - system
            - api
            - carrier
            - error
            - unknown
            - null
          description: Best-known party or system that ended the call.
        bill_duration_seconds:
          type:
            - integer
            - 'null'
          description: Carrier-billed duration in seconds when available.
        provider:
          type:
            - string
            - 'null'
          enum:
            - mcube
            - twilio
            - exotel
            - plivo
            - vobiz
            - tata_smartflo
            - sip
            - voicelink
            - null
        connection_id:
          type:
            - string
            - 'null'
          format: uuid
          description: Telephony connection used for the call, when applicable.
        duration_seconds:
          type:
            - integer
            - 'null'
        error_message:
          type:
            - string
            - 'null'
        started_at:
          type: string
          format: date-time
        ended_at:
          type:
            - string
            - 'null'
          format: date-time
        created_at:
          type: string
          format: date-time
    CallSession:
      type: object
      description: Session data associated with a call. Included in call detail responses.
      properties:
        session_id:
          type: string
          format: uuid
        duration_seconds:
          type:
            - integer
            - 'null'
        credits_used:
          type: number
          description: Credits consumed (display units, e.g., 1.5).
        processing_complete:
          type: boolean
          description: >-
            `true` when the post-call pipeline has finished. See
            `Session.processing_complete` on the polling endpoint for the full
            semantics.
        pipeline_completed_at:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            Timestamp when the pipeline finished. Non-null on the webhook
            payload itself.
        transcript:
          type:
            - array
            - 'null'
          items:
            type: object
            properties:
              role:
                type: string
                enum:
                  - user
                  - bot
              content:
                type: string
              timestamp:
                type: string
                format: date-time
          description: Full conversation transcript with timestamps.
        recording_url:
          type:
            - string
            - 'null'
          format: uri
          description: >-
            Presigned URL to download the call recording (audio/wav). Valid for
            7 days from the time of this response. Use `GET
            /calls/{id}/recording-url` to mint a fresh URL after expiry. `null`
            if recording was not enabled or the call has not completed.
        variables:
          type: object
          additionalProperties:
            type: string
          description: >-
            Pre-call variable values resolved at session-start, substituted into
            the agent's prompt and greeting via `{{name}}`. Empty object when no
            variables were supplied.
        extraction:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/ExtractionResult'
          description: >-
            Post-call extraction result. `null` until extraction runs after the
            call ends. Always `null` when the agent has no `extraction_config`.
        status:
          type: string
        started_at:
          type: string
          format: date-time
        ended_at:
          type:
            - string
            - 'null'
          format: date-time
    ExtractionResult:
      type: object
      description: >-
        Structured output of a single extraction run. Shipped inline in
        `session.completed` webhooks AND returned by `POST /calls/{id}/extract`.
      required:
        - status
        - model
        - extractedAt
        - latencyMs
        - attempts
      properties:
        status:
          type: string
          enum:
            - success
            - failed
            - skipped
        values:
          type: object
          additionalProperties: true
          description: >-
            Extracted fields, typed per the agent's `extraction_config.keys`.
            Missing keys are emitted as `null` (per-key `nullable: true` on the
            response schema). Absent entirely when `status != 'success'`.
        error:
          type: string
          description: Failure reason; present only when `status === 'failed'`.
        model:
          type: string
          description: >-
            Opaque extraction model identifier. Do not branch business logic on
            this value.
        extractedAt:
          type: string
          format: date-time
        latencyMs:
          type: integer
          description: LLM latency in milliseconds.
        attempts:
          type: integer
          description: Number of attempts (1 = success on first try; 2-3 = retried).
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          const: false
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
          required:
            - code
            - message
      required:
        - success
        - error
  responses:
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            success: false
            error:
              code: UNAUTHORIZED
              message: Invalid or missing API key
    NotFound:
      description: Resource not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            success: false
            error:
              code: NOT_FOUND
              message: Resource not found
    InternalError:
      description: Unexpected server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            success: false
            error:
              code: INTERNAL_ERROR
              message: An unexpected error occurred
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key in format: `rg_live_xxxx`. Pass as a Bearer token in the
        Authorization header.

````