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

# Get an upload URL

> Get a presigned URL for the file bytes. Send a PUT request to upload_url with the returned headers and without your API key. The URL expires after expires_in seconds; request a new one if it expires.

<section className="api-next-steps" aria-label="Continue building">
  ## Continue building

  <Columns cols={2}>
    <Card title="Arrange background audio" icon="book-open" href="/guides/studio-projects">Upload files and place them on tracks.</Card>
    <Card title="Create an instance" icon="audio-lines" href="/api-reference/studio/create-an-instance">Place a ready file on a track.</Card>
    <Card title="Studio CLI" icon="terminal" href="/cli/reference/studio">Run the same operations from a terminal.</Card>
  </Columns>
</section>


## OpenAPI

````yaml /openapi.json post /v1/studio/files/{file_id}/upload
openapi: 3.1.0
info:
  title: Breeze Developer API
  description: >-
    Breeze Developer API for models, voices, text-to-speech, history, balance,
    usage, and browser-managed API keys.
  version: 1.0.0
servers:
  - url: https://api.breeze.blue
security: []
tags:
  - name: Models
    description: Supported TTS models.
  - name: Text to Speech
    description: Text-to-speech synthesis and instruction enhancement.
  - name: Voices
    description: Saved voices and voice settings.
  - name: Voice Previews
    description: Create, audition, and save temporary voice previews.
  - name: Account
    description: Balance, usage, and API keys.
  - name: History
    description: Generated audio history.
  - name: Studio
    description: Projects, scripts, arrangement and audio materials.
paths:
  /v1/studio/files/{file_id}/upload:
    post:
      tags:
        - Studio
      summary: Get an upload URL
      description: >-
        Get a presigned URL for the file bytes. Send a PUT request to upload_url
        with the returned headers and without your API key. The URL expires
        after expires_in seconds; request a new one if it expires.
      operationId: studio_files_upload_url
      parameters:
        - name: file_id
          in: path
          required: true
          schema:
            type: string
            title: File Id
          description: Audio file ID.
      responses:
        '200':
          description: The upload URL and required headers.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UploadResult'
          headers:
            x-breeze-api-key-id:
              description: >-
                Public API key identifier used to authenticate the request, when
                an API key was used.
              schema:
                type: string
        '401':
          description: HTTP 401 error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: HTTP 404 error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: HTTP 409 error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: HTTP 422 error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponse'
      security:
        - ApiKeyAuth: []
      x-codeSamples:
        - lang: cURL
          label: cURL
          source: |-
            curl \
              --request POST \
              --url "https://api.breeze.blue/v1/studio/files/123e4567-e89b-42d3-a456-426614174001/upload" \
              --header "xi-api-key: $BREEZE_API_KEY"
        - lang: Python
          label: Python
          source: >-
            from breeze_blue import BreezeBlue


            client = BreezeBlue()

            result =
            client.studio.files.upload_url("123e4567-e89b-42d3-a456-426614174001")
        - lang: TypeScript
          label: TypeScript
          source: >-
            import { BreezeBlueClient } from "@breeze.blue/sdk";


            const client = new BreezeBlueClient();

            const result = await
            client.studio.files.uploadUrl("123e4567-e89b-42d3-a456-426614174001");
components:
  schemas:
    UploadResult:
      properties:
        upload_url:
          type: string
          title: Upload Url
          description: Presigned URL. Upload the bytes with PUT.
        headers:
          additionalProperties:
            type: string
          type: object
          title: Headers
          description: Headers to send with the PUT request.
        expires_in:
          type: integer
          title: Expires In
          description: Seconds until upload_url expires.
      additionalProperties: false
      type: object
      required:
        - upload_url
        - expires_in
      title: UploadResult
    ErrorResponse:
      properties:
        ok:
          default: false
          title: Ok
          type: boolean
        code:
          title: Code
          type: string
        detail:
          title: Detail
          type: string
        error:
          title: Error
          type: string
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          default: null
          title: Meta
      required:
        - code
        - detail
        - error
      title: ErrorResponse
      type: object
    ValidationErrorResponse:
      properties:
        ok:
          default: false
          title: Ok
          type: boolean
        code:
          title: Code
          type: string
        detail:
          title: Detail
          type: string
        error:
          title: Error
          type: string
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
      required:
        - code
        - detail
        - error
      title: ValidationErrorResponse
      type: object
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: xi-api-key
      description: Breeze Developer API key.

````

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