> ## 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.

# distribution.subscription.post

> Grants a Musixmatch premium plan to a user when they subscribe on the distributor's platform. The `plan_id` is the distributor's plan identifier; Musixmatch maps it internally to the corresponding Musixmatch plan.



## OpenAPI

````yaml enterprises/distribution/openapi.json post /ws/1.1/distribution.subscription.post
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://api.musixmatch.com
security:
  - apiKey: []
paths:
  /ws/1.1/distribution.subscription.post:
    post:
      tags:
        - Subscriptions
      summary: distribution.subscription.post
      description: >-
        Grants a Musixmatch premium plan to a user when they subscribe on the
        distributor's platform. The `plan_id` is the distributor's plan
        identifier; Musixmatch maps it internally to the corresponding
        Musixmatch plan.
      operationId: activateSubscription
      parameters:
        - $ref: '#/components/parameters/user_id'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ActivateSubscriptionRequest'
            example:
              partner_user_id: '123456'
              plan_id: artist-plus-annual
      responses:
        '201':
          description: Subscription activated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionEnvelope'
              example:
                message:
                  header:
                    status_code: 201
                    execute_time: 0.32
                  body:
                    subscription:
                      user_id: mxm:123456789012345678901
                      plan_id: artist-plus-annual
                      status: active
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  parameters:
    user_id:
      name: user_id
      in: query
      required: true
      schema:
        type: string
      description: The Musixmatch user ID obtained via token introspection
  schemas:
    ActivateSubscriptionRequest:
      type: object
      required:
        - partner_user_id
        - plan_id
      properties:
        partner_user_id:
          type: string
          description: The partner's internal user identifier
        plan_id:
          type: string
          description: >-
            The distributor's plan identifier. Musixmatch maps this to the
            corresponding Musixmatch plan during onboarding.
    SubscriptionEnvelope:
      type: object
      properties:
        message:
          type: object
          properties:
            header:
              type: object
              properties:
                status_code:
                  type: integer
                  description: HTTP status code
                execute_time:
                  type: number
                  description: Server-side execution time in seconds
            body:
              type: object
              properties:
                subscription:
                  type: object
                  properties:
                    user_id:
                      type: string
                    plan_id:
                      type: string
                      description: Present when activating a subscription
                    status:
                      type: string
                      enum:
                        - active
                        - revoked
    ErrorResponse:
      type: object
      properties:
        message:
          type: object
          properties:
            header:
              type: object
              properties:
                status_code:
                  type: integer
                  description: HTTP status code
                execute_time:
                  type: number
                  description: Server-side execution time in seconds
            body:
              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 API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    apiKey:
      type: apiKey
      name: apikey
      in: query

````

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