> ## 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/v1/deliveries` with the `file_id` to create the delivery.



## OpenAPI

````yaml /enterprises/distribution/openapi.json post /distribution/v1/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/v1/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/v1/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: release file upload accepted
                data:
                  file:
                    file_id: 123456
                    upload_url: https://storage.example.com/uploads/123456?signature=...
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          description: Unprocessable — the user has no controlled artist roster.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                message: artist roster not found
                data:
                  error:
                    code: '003'
        '502':
          $ref: '#/components/responses/BadGateway'
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: string
          description: Descriptive message of performed operation
        data:
          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.
    ErrorResponse:
      type: object
      properties:
        message:
          type: string
          description: Descriptive message of what has failed
        data:
          type: object
          properties:
            error:
              type: object
              properties:
                code:
                  oneOf:
                    - type: string
                    - type: number
                  description: Application-level error code
                namespace:
                  type: string
                  description: Application-level error namespace
                extraData:
                  description: Additional error context
  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'
    BadGateway:
      description: >-
        Bad gateway — upstream service call failed or returned an unexpected
        response
      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

````