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

# Get a call recording (audio + transcription)

> Returns the audio recording for a completed call along with any available transcription. The shape depends on the provider: Twilio recordings are fetched server-side and returned as a base64 `audioData` blob; Sinch / ElevenLabs / external recordings are returned as a signed `audioUrl` (S3 or R2). Transcriptions are lazy-fetched/transformed on first read and cached on the `Call` document.



## OpenAPI

````yaml /api-reference/openapi.yaml get /api/calls/{callId}/recording
openapi: 3.0.3
info:
  title: Tether Relay and Tether API
  version: 1.0.0
  description: >-
    Route-derived OpenAPI contract generated from tether-relay backend sources.
    Regenerate with scripts/sync-openapi-from-backend.mjs.
servers:
  - url: https://your-instance.example.com
    description: Production
  - url: http://localhost:2212
    description: Local API service
security: []
tags:
  - name: AI
  - name: Applications
  - name: Approval
  - name: Auth
  - name: Automations
  - name: Calls
  - name: Campaigns
  - name: Contact Analytics
  - name: Contact Metrics
  - name: Contact Notes
  - name: Contacts
  - name: Conversation Monitor
  - name: Conversations
  - name: Departments
  - name: Email
  - name: Escalation Dashboard
  - name: Event Logs
  - name: Google Sheets
  - name: Marketplace
  - name: Messages
  - name: Notification Sounds
  - name: Notifications
  - name: Org Snapshots
  - name: Organizations
  - name: Outreach
  - name: Outreach Metrics
  - name: Outreach Sources
  - name: Pipelines
  - name: Processes
  - name: Prompts
  - name: Reminders
  - name: Sms
  - name: Templates
  - name: Traces
  - name: Training
  - name: Upload
  - name: User Snapshots
  - name: Users
  - name: Vertical
  - name: Webchats
  - name: Webhook
paths:
  /api/calls/{callId}/recording:
    get:
      tags:
        - Calls
      summary: Get a call recording (audio + transcription)
      description: >-
        Returns the audio recording for a completed call along with any
        available transcription. The shape depends on the provider: Twilio
        recordings are fetched server-side and returned as a base64 `audioData`
        blob; Sinch / ElevenLabs / external recordings are returned as a signed
        `audioUrl` (S3 or R2). Transcriptions are lazy-fetched/transformed on
        first read and cached on the `Call` document.
      operationId: get_calls_callId_recording
      parameters:
        - in: path
          name: callId
          required: true
          schema:
            type: string
          description: >-
            The provider-agnostic `callId` minted by Tether (also used as
            `providerCallId` for SDK calls).
      responses:
        '200':
          description: Recording payload
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CallsRecordingResponse'
        '400':
          description: callId missing, unsupported provider, or Twilio creds missing
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CallsErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CallsErrorResponse'
        '404':
          description: Call or recording not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CallsErrorResponse'
        '500':
          description: Failed to fetch or sign the recording
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CallsErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    CallsRecordingResponse:
      type: object
      description: >-
        Shape depends on provider. Twilio returns base64 `audioData`; Sinch /
        ElevenLabs / external return a signed `audioUrl`.
      properties:
        success:
          type: boolean
          enum:
            - true
        audioData:
          type: string
          description: data URI (Twilio only).
        audioUrl:
          type: string
          description: Signed S3 (Sinch) or R2 (ElevenLabs/external) URL.
        duration:
          type: number
        recordingId:
          type: string
        transcriptionText:
          type: string
          nullable: true
        transcriptionData:
          nullable: true
          description: Structured per-utterance transcription (provider-shaped).
          oneOf:
            - type: array
              items:
                type: object
                additionalProperties: true
            - type: object
              additionalProperties: true
        direction:
          type: string
          enum:
            - inbound
            - outbound
        from:
          type: string
        to:
          type: string
      required:
        - success
      additionalProperties: true
      example:
        success: true
        audioUrl: https://example-r2.signed/.../recording.mp3?X-Amz-Expires=600
        duration: 154
        recordingId: rec_abc123
        transcriptionText: 'Agent: Hi, this is Alex from Example Corp...'
        transcriptionData:
          - role: agent
            message: Hi, this is Alex from Example Corp.
            timestamp: 0.5
          - role: user
            message: Hey Alex.
            timestamp: 2.8
        direction: outbound
        from: '+14165550100'
        to: '+14165550199'
    CallsErrorResponse:
      type: object
      description: >-
        Error envelope used across most calls endpoints. Some endpoints wrap a
        string error; validation endpoints (parseContractInput) return a
        structured `error` object with `code` and `details`.
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          oneOf:
            - type: string
            - type: object
              properties:
                code:
                  type: string
                message:
                  type: string
                details:
                  type: array
                  items:
                    type: object
                    additionalProperties: true
              additionalProperties: true
        code:
          type: string
          description: >-
            Stable error code on certain errors (e.g. `NUMBER_NOT_ON_TRUNK`,
            `AGENT_NOT_SYNCED`, `OUTBOUND_IN_FLIGHT`).
      additionalProperties: true
      example:
        success: false
        error: Call not found
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````