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

# Sample download URL

> Redirects to a pre-signed URL to download the file associated with the specified submission.



## OpenAPI

````yaml get /api/v2/submissions/{type}/{identifier}/download
openapi: 3.0.0
info:
  title: IdentifAI API v2
  version: 2.0.0
  description: >-
    API v2 for batch tampering detection on ticket images. This API allows you
    to submit multiple tickets for analysis and retrieve results for tampering
    detection.
servers:
  - url: https://api.identifai.net
security: []
tags:
  - name: Tampering Detection
    description: Batch tampering detection endpoints
paths:
  /api/v2/submissions/{type}/{identifier}/download:
    get:
      summary: Sample download URL
      description: >-
        Redirects to a pre-signed URL to download the file associated with the
        specified submission.
      operationId: downloadSample
      parameters:
        - name: type
          in: path
          required: true
          description: >-
            The type of the file, which can be one of the following: audio,
            video, or image.
          schema:
            type: string
            enum:
              - audio
              - video
              - image
        - name: identifier
          in: path
          required: true
          description: >-
            The unique identifier of the submission. For video submissions, you
            can also use a frame/audio track identifier to download a specific
            frame or audio track.
          schema:
            type: string
      responses:
        '302':
          description: >-
            Redirects to the pre-signed URL for downloading the file. The URL is
            valid for 60 minutes.
          headers:
            Location:
              description: The pre-signed URL to download the file.
              schema:
                type: string
                example: >-
                  https://s3.identifai.example.com/bucket/path/to/file.mp4?X-Amz-Signature=12345
        '401':
          description: Unauthorized - Missing or invalid API key.
        '403':
          description: Forbidden - User does not have the required permissions.
        '404':
          description: Not Found - Submission or file not found.
        '429':
          description: Too Many Requests - Rate Limit exceeded.

````