> ## 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.

# Create presigned upload URL

> Generate presigned upload URLs for one or more objects. Provide the target `keys` and associated `entity` to receive presigned URLs that can be used to send files to Aurigin storage.



## OpenAPI

````yaml /api-reference/v0/openapi.json post /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:
    post:
      tags:
        - v0
      summary: Create presigned upload URL
      description: >-
        Generate presigned upload URLs for one or more objects. Provide the
        target `keys` and associated `entity` to receive presigned URLs that can
        be used to send files to Aurigin storage.
      operationId: createPresignedUploadUrlV0
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostFileRequest'
            example:
              keys:
                - uploads/audio/pred_abc123.wav
                - uploads/audio/pred_xyz789.wav
              entity: analysis
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FileResponse'
        '400':
          description: Invalid request payload
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Authentication failed (check x-api-key)
          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:
    PostFileRequest:
      type: object
      properties:
        keys:
          type: array
          items:
            type: string
        entity:
          type: string
          example: analysis
      required:
        - keys
        - entity
    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

````