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

# Get a download URL

> Returns a presigned URL for downloading the recording. The URL is short lived, so request it immediately before use. If `is_download_file_ready` is `false`, the MP4 is out of date. Call `POST /recordings/{id}/trigger-mp4` to regenerate it, then retry.

<Info>Replace `{your-subdomain}` with your workspace's subdomain. <br /> Learn how to find your subdomain in [Workspace subdomain](/getting-started/workspace-subdomain).</Info>


## OpenAPI

````yaml bundled/recordings.yaml GET /recordings/{id}/download-url
openapi: 3.0.3
info:
  title: NeetoRecord Recordings APIs
  version: 2.0.0
servers:
  - description: NeetoRecord APIs
    url: https://{your-subdomain}.neetorecord.com/api/external/v2
    variables:
      your-subdomain:
        default: spinkart
        description: >-
          Replace **spinkart** with your [workspace's
          subdomain](/getting-started/workspace-subdomain).
security: []
tags:
  - name: Recordings
    description: APIs to retrieve and manage recordings in your workspace.
paths:
  /recordings/{id}/download-url:
    get:
      tags:
        - Recordings
      summary: Get a download URL
      description: >-
        Returns a presigned URL for downloading the recording. The URL is short
        lived, so request it immediately before use. If `is_download_file_ready`
        is `false`, the MP4 is out of date. Call `POST
        /recordings/{id}/trigger-mp4` to regenerate it, then retry.
      parameters:
        - $ref: '#/components/parameters/api_key_header'
        - $ref: '#/components/parameters/accept_header'
        - $ref: '#/components/parameters/recording_id_param'
        - in: query
          name: file_format
          required: false
          description: 'Download format: `mp4` or `webm`. Defaults to `mp4`.'
          schema:
            type: string
            enum:
              - mp4
              - webm
            default: mp4
      responses:
        '200':
          description: Download URL generated, or the MP4 is not ready yet.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/download_url_response'
              example:
                recording_id: x9y8z7w6v5u4t3s2
                file_format: mp4
                is_download_file_ready: true
                download_url: >-
                  https://example-bucket.s3.amazonaws.com/.../recording.mp4?X-Amz-Signature=...
                url_expires_in_seconds: 600
        '404':
          $ref: '#/components/responses/recording_not_found'
components:
  parameters:
    api_key_header:
      in: header
      name: X-Api-Key
      description: >-
        API key. Refer to [Authentication](/getting-started/authentication) for
        more information.
      required: true
      schema:
        type: string
    accept_header:
      in: header
      name: Accept
      description: Must be `application/json`.
      required: true
      schema:
        type: string
        enum:
          - application/json
        default: application/json
    recording_id_param:
      in: path
      name: id
      required: true
      description: >-
        The recording's `id` (UUID) or its `public_link_id` (the short code in
        the watch URL). Both are accepted.
      schema:
        type: string
  schemas:
    download_url_response:
      type: object
      properties:
        recording_id:
          type: string
          description: Public link identifier of the recording.
        file_format:
          type: string
          enum:
            - mp4
            - webm
          description: Format the URL points at.
        is_download_file_ready:
          type: boolean
          description: >-
            `false` when the MP4 is out of date. Call `POST
            /recordings/{id}/trigger-mp4` to regenerate it, then retry.
        download_url:
          type: string
          description: >-
            Presigned download URL. Omitted entirely when
            `is_download_file_ready` is `false`.
        url_expires_in_seconds:
          type: integer
          description: >-
            Lifetime of the presigned URL, 600 seconds for `mp4` and 60 for
            `webm`. Omitted entirely when `is_download_file_ready` is `false`.
    error:
      type: object
      properties:
        error:
          type: string
          description: A human readable error message.
  responses:
    recording_not_found:
      description: The recording does not exist in this workspace.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/error'
          example:
            error: Recording does not exist.

````