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

# Get presigned URLs for recording uploads

> Request one or more audio upload URLs. PUT each file separately before creating recording metadata. Each file and batch must satisfy the schema's size limits.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/workflow-recordings/upload-url
openapi: 3.1.0
info:
  title: Athena API
  version: 1.0.0
  description: >-
    Hosted Athena customer API. Authenticate backend management and call-trigger
    requests with X-API-Key. Website embeds and artifact playback use their own
    scoped tokens. Provider availability, feature settings, and verification
    limits are described in the guides.
servers:
  - url: https://athena.tryopencomputer.com
    description: Hosted Athena API
security: []
paths:
  /api/v1/workflow-recordings/upload-url:
    post:
      tags:
        - Workflow Recordings
      summary: Get presigned URLs for recording uploads
      description: >-
        Request one or more audio upload URLs. PUT each file separately before
        creating recording metadata. Each file and batch must satisfy the
        schema's size limits.
      operationId: get_upload_urls_api_v1_workflow_recordings_upload_url_post
      parameters:
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
        - name: X-API-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchRecordingUploadRequestSchema'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchRecordingUploadResponseSchema'
        '401':
          description: Authentication is missing or invalid.
        '404':
          description: Not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal Server Error
      security:
        - ApiKeyAuth: []
        - BearerAuth: []
components:
  schemas:
    BatchRecordingUploadRequestSchema:
      properties:
        files:
          items:
            $ref: '#/components/schemas/FileDescriptor'
          type: array
          maxItems: 20
          minItems: 1
          title: Files
          description: List of files to upload
      type: object
      required:
        - files
      title: BatchRecordingUploadRequestSchema
      description: Request schema for getting presigned upload URLs for one or more files.
    BatchRecordingUploadResponseSchema:
      properties:
        items:
          items:
            $ref: '#/components/schemas/RecordingUploadResponseSchema'
          type: array
          title: Items
          description: Upload URLs for each file
      type: object
      required:
        - items
      title: BatchRecordingUploadResponseSchema
      description: Response schema with presigned upload URLs.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    FileDescriptor:
      properties:
        filename:
          type: string
          title: Filename
          description: Original filename of the audio file
        mime_type:
          type: string
          title: Mime Type
          description: MIME type of the audio file
          default: audio/wav
        file_size:
          type: integer
          maximum: 5242880
          exclusiveMinimum: 0
          title: File Size
          description: File size in bytes (max 5MB)
      type: object
      required:
        - filename
        - file_size
      title: FileDescriptor
      description: Descriptor for a single file in a batch upload request.
    RecordingUploadResponseSchema:
      properties:
        upload_url:
          type: string
          title: Upload Url
          description: Presigned URL for uploading the audio
        recording_id:
          type: string
          title: Recording Id
          description: Short unique recording ID
        storage_key:
          type: string
          title: Storage Key
          description: Storage key where file will be uploaded
      type: object
      required:
        - upload_url
        - recording_id
        - storage_key
      title: RecordingUploadResponseSchema
      description: Response schema with presigned upload URL.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
    BearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.