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

# Get presigned download URL

> Retrieve presigned download URLs for previously uploaded files using the `key_prefix` and `entity` values.



## OpenAPI

````yaml /api-reference/v0/openapi.json get /file
openapi: 3.0.3
info:
  title: Aurigin API v0
  version: 0.1.0
  description: Legacy Aurigin API for audio deepfake detection (chunk-based responses)
servers:
  - url: https://api.aurigin.ai/v0
security: []
tags:
  - name: v0
    description: Endpoints that analyze audio to determine if it is AI generated or real.
  - name: Async Predictions
    description: Endpoints that handle asynchronous prediction workflows.
paths:
  /file:
    get:
      tags:
        - v0
      summary: Get presigned download URL
      description: >-
        Retrieve presigned download URLs for previously uploaded files using the
        `key_prefix` and `entity` values.
      operationId: getPresignedDownloadUrlV0
      parameters:
        - name: key_prefix
          in: query
          required: true
          schema:
            type: string
        - name: entity
          in: query
          required: true
          schema:
            type: string
          example: analysis
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FileResponse'
              example:
                url:
                  - key: uploads/audio/pred_abc123.wav
                    value: >-
                      https://aurigin-uploads.s3.amazonaws.com/uploads/audio/pred_abc123.wav?X-Amz-Algorithm=AWS4-HMAC-SHA256&...
        '400':
          description: Missing or invalid query parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Authentication failed (check x-api-key)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Key prefix not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal error or upstream unavailability
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - api_key: []
components:
  schemas:
    FileResponse:
      type: object
      description: >-
        Key/value pairs containing presigned URLs that can be used for uploading
        or downloading files.
      properties:
        url:
          type: array
          items:
            type: object
            properties:
              key:
                type: string
              value:
                type: string
                description: Presigned URL for the provided key
      example:
        url:
          - key: uploads/audio/pred_abc123.wav
            value: >-
              https://aurigin-uploads.s3.amazonaws.com/uploads/audio/pred_abc123.wav?X-Amz-Algorithm=AWS4-HMAC-SHA256&...
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Machine-readable error identifier
        message:
          type: string
          description: Human-readable error message
        status:
          type: integer
          description: HTTP status code associated with the error
          example: 400
        correlation_id:
          type: string
          description: Unique identifier for tracing failed requests
      required:
        - error
        - message
      example:
        error: validation_error
        message: Audio file too large (max 4MB)
        status: 400
        correlation_id: be7a2d19-5ef9-4472-9a21-7b90c0c8573c
  securitySchemes:
    api_key:
      type: apiKey
      in: header
      name: x-api-key

````