> ## 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 so files can be streamed directly to storage. Use this when preparing large uploads for the asynchronous workflow.



## OpenAPI

````yaml /api-reference/v1/openapi.json post /file
openapi: 3.0.3
info:
  title: Aurigin API
  version: 1.0.0
  description: Updated API with new response structure - v1.0.0
servers:
  - url: https://api.aurigin.ai/v1
security: []
paths:
  /file:
    post:
      tags:
        - v1
      summary: Create presigned upload URL
      description: >-
        Generate presigned upload URLs for one or more objects so files can be
        streamed directly to storage. Use this when preparing large uploads for
        the asynchronous workflow.
      operationId: createPresignedUploadUrlV1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostFileRequest'
            example:
              keys:
                - uploads/audio/pred_abc123.wav
                - uploads/audio/pred_def456.wav
              entity: 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: Invalid request payload
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: API key lacks permission to generate upload URLs
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal error while generating presigned URLs
          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
      properties:
        url:
          type: array
          items:
            type: object
            properties:
              key:
                type: string
              value:
                type: string
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Machine-readable error identifier
          example: validation_error
        message:
          type: string
          description: Human-readable explanation of the error
          example: Unsupported audio format
        status:
          type: integer
          description: HTTP status code associated with the error
          example: 400
        correlation_id:
          type: string
          description: Unique identifier for tracing failed requests
          example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
  securitySchemes:
    api_key:
      type: apiKey
      in: header
      name: x-api-key

````