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

# Get a recording

> Recording is currently disabled on the hosted API. When enabled and ready, this endpoint returns a private playback link valid for approximately 15 minutes.



## OpenAPI

````yaml api-reference/openapi.json GET /v1/collect/{id}/recording
openapi: 3.0.3
info:
  title: Thred API
  version: 1.0.0
  description: >-
    Thred is the data API for the phone. Use Collect when you know who to ask:
    send a phone number and instructions, add context values in input, and
    define the answers you want with a JSON Schema in output. Use the same base
    URL for Development and Production; your API key selects the environment.
servers:
  - url: https://api.thred.dev
    description: Thred API
security:
  - bearerAuth: []
tags:
  - name: Authentication
    description: Verify the workspace and environment selected by your API key.
  - name: Collect
    description: Collect structured answers from a known phone number.
  - name: Usage
    description: Read daily operational usage.
  - name: Health
    description: Check public API availability.
paths:
  /v1/collect/{id}/recording:
    parameters:
      - name: id
        in: path
        required: true
        description: >-
          The collection ID returned when the request was accepted. IDs use the
          call_ prefix.
        schema:
          type: string
          pattern: ^call_[a-z0-9-]+$
        example: call_123e4567-e89b-42d3-a456-426614174000
    get:
      tags:
        - Collect
      summary: Get a recording link
      description: >-
        Recording is currently disabled on the hosted API. When enabled and
        ready, this endpoint returns a private playback link valid for
        approximately 15 minutes.
      operationId: getRecording
      responses:
        '200':
          description: Temporary playback link.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecordingLink'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/RecordingUnavailable'
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          $ref: '#/components/responses/Unavailable'
components:
  schemas:
    RecordingLink:
      type: object
      properties:
        url:
          type: string
          format: uri
          description: Temporary private playback URL. Treat the URL as a secret.
        expires_at:
          type: string
          format: date-time
          description: UTC expiry time, approximately 15 minutes after issuance.
      required:
        - url
        - expires_at
    ErrorResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
      required:
        - error
    ErrorDetail:
      type: object
      properties:
        code:
          type: string
          description: Machine-readable error code.
        message:
          type: string
          description: Human-readable error explanation.
      required:
        - code
        - message
  responses:
    Unauthorized:
      description: >-
        Missing, malformed, invalid, revoked, or environment-mismatched bearer
        API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFound:
      description: >-
        No matching collection in this key’s workspace and environment, or the
        endpoint does not exist.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    RecordingUnavailable:
      description: >-
        Recording is not ready or storage identity cannot be verified. Recording
        is currently disabled on the hosted API.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    InternalError:
      description: Unexpected server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unavailable:
      description: >-
        Calling or the backend is unavailable. Codes include
        calling_unavailable, environment_unavailable, not_configured, and
        backend_unavailable.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Thred API key
      description: >-
        Send Authorization: Bearer <THRED_API_KEY>. Development keys begin
        thr_dev_; Production keys begin thr_prod_. Each key is scoped to a
        workspace and environment. Keep secrets on your server.

````

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