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

# Upload a release file

> Creates a pre-signed upload URL for a release ZIP file (ERN metadata + audio). Upload the file via HTTP PUT to the returned `upload_url`, then call `POST /distribution/deliveries` with the `file_id` to create the delivery.



## OpenAPI

````yaml /enterprises/distribution/openapi.json post /distribution/deliveries/files
openapi: 3.1.0
info:
  title: Musixmatch Distribution API
  version: 1.0.0
  description: >-
    API for music distributors to submit releases and lyrics to the Musixmatch
    catalog.
servers:
  - url: https://varco-{partner}.musixmatch.com
    description: >-
      Replace {partner} with the identifier assigned to your organization during
      onboarding
    variables:
      partner:
        default: partner
        description: Identifier assigned to your organization during onboarding
security:
  - bearerAuth: []
paths:
  /distribution/deliveries/files:
    post:
      tags:
        - Deliveries
      summary: Upload a release file
      description: >-
        Creates a pre-signed upload URL for a release ZIP file (ERN metadata +
        audio). Upload the file via HTTP PUT to the returned `upload_url`, then
        call `POST /distribution/deliveries` with the `file_id` to create the
        delivery.
      operationId: createDeliveryFile
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateDeliveryFileRequest'
            example:
              musixmatch_user_id: mxm:123456789012345678901
      responses:
        '201':
          description: >-
            Upload slot created. Use `upload_url` to upload the ZIP via HTTP
            PUT.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateDeliveryFileEnvelope'
              example:
                message:
                  body:
                    file:
                      file_id: 123456
                      upload_url: https://storage.example.com/uploads/123456?signature=...
                  header:
                    status_code: 201
                    execute_time: 0.06
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    CreateDeliveryFileRequest:
      type: object
      required:
        - musixmatch_user_id
      properties:
        musixmatch_user_id:
          type: string
          description: >-
            The Musixmatch user ID of the artist, obtained via token
            introspection of the user's access token
    CreateDeliveryFileEnvelope:
      type: object
      properties:
        message:
          type: object
          properties:
            body:
              type: object
              properties:
                file:
                  type: object
                  properties:
                    file_id:
                      type: integer
                      description: Unique identifier for this upload slot
                    upload_url:
                      type: string
                      format: uri
                      description: >-
                        Pre-signed URL to upload the release ZIP file via HTTP
                        PUT. Expires after 15 minutes.
            header:
              $ref: '#/components/schemas/MessageHeader'
    MessageHeader:
      type: object
      properties:
        status_code:
          type: number
          description: HTTP status code of the response
        execute_time:
          type: number
          description: Server execution time in seconds
    ErrorResponse:
      type: object
      properties:
        message:
          type: string
        data:
          type: object
          properties:
            error:
              type: object
              properties:
                code:
                  type: string
  responses:
    BadRequest:
      description: Bad request — invalid or missing parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Unauthorized — missing or invalid Bearer token
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Access token obtained via the Client Credentials OAuth 2.0 flow at
        https://connect.musixmatch.com/oauth/token

````