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

# Create Label

> Creates a new label within the authenticated tenant. All operations are tenant-scoped.

<Note>
  This endpoint requires authentication. Include your Bearer token in the Authorization header.
</Note>

## Code Examples

<CodeGroup>
  ```javascript Node.js theme={null}
  const response = await fetch('https://api.royalti.io/labels/', {
    method: 'POST',
    headers: {
      'Authorization': `Bearer ${token}`,
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({
      "name": "sample-name",
      "logo": "sample-logo",
      "website": "sample-website",
      "country": "sample-country",
      "foundedDate": "2024-01-21",
      "labelCode": "sample-labelCode",
      "dpid": "sample-dpid",
      "contacts": {},
      "socialLinks": {},
      "distributionSettings": {},
      "catalogSettings": {},
      "parentLabelId": "sample-parentLabelId",
      "distribution": "sample-distribution",
      "genres": [
        {}
      ],
      "isActive": true,
      "metadata": {}
    })
  });

  const data = await response.json();
  console.log(data);
  ```

  ```python Python theme={null}
  import requests

  response = requests.post(
    'https://api.royalti.io/labels/',
    headers={
      'Authorization': f'Bearer {token}'
    },
    json={"name":"sample-name","logo":"sample-logo","website":"sample-website","country":"sample-country","foundedDate":"2024-01-21","labelCode":"sample-labelCode","dpid":"sample-dpid","contacts":{},"socialLinks":{},"distributionSettings":{},"catalogSettings":{},"parentLabelId":"sample-parentLabelId","distribution":"sample-distribution","genres":[{}],"isActive":true,"metadata":{}}
  )

  data = response.json()
  print(data)
  ```

  ```bash cURL theme={null}
  curl -X POST https://api.royalti.io/labels/ \
    -H "Authorization: Bearer YOUR_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{"name":"sample-name","logo":"sample-logo","website":"sample-website","country":"sample-country","foundedDate":"2024-01-21","labelCode":"sample-labelCode","dpid":"sample-dpid","contacts":{},"socialLinks":{},"distributionSettings":{},"catalogSettings":{},"parentLabelId":"sample-parentLabelId","distribution":"sample-distribution","genres":[{}],"isActive":true,"metadata":{}}'

  ```
</CodeGroup>


## OpenAPI

````yaml post /labels/
openapi: 3.0.0
info:
  title: Royalti.io API
  description: "# Royalti API\r\n\r\nThis is the Royalti music royalty management platform API server.\r\n\r\n## Overview\r\n\r\nThe Royalti API provides comprehensive music royalty management services including:\r\n- Music publishing and writer management\r\n- Royalty processing and analytics\r\n- DDEX integration for music industry standards\r\n- File processing and pattern recognition\r\n- Payment processing and distribution\r\n\r\n## Authentication\r\n\r\nThe API uses JWT-based authentication with multiple protection levels:\r\n- Public endpoints for basic operations\r\n- Protected endpoints requiring valid JWT tokens\r\n- Admin endpoints for administrative functions\r\n\r\n## Features\r\n\r\n- Multi-dimensional royalty analytics\r\n- CWR (Collective Works Registration) support\r\n- DDEX integration for music metadata\r\n- Advanced file processing with pattern recognition\r\n- Real-time data processing with queue system"
  version: 2.6.0
  contact:
    name: Royalti.io Support
    email: support@royalti.io
    url: https://royalti.io
  license:
    name: Proprietary
    url: https://royalti.io/terms
servers:
  - url: https://api.royalti.io
    description: Production server
  - url: https://api-dev.royalti.io
    description: Development server
  - url: http://localhost:8084
    description: Local development
security:
  - bearerAuth: []
tags:
  - name: Accounting
    description: Accounting and financial transaction operations
  - name: DDEX
    description: DDEX operations (ERN/MEAD, messages, delivery, providers)
  - name: Label
    description: Label management operations
  - name: Internal Webhooks
    description: Internal system webhooks for royalty processing and downloads
  - name: Payment Webhooks
    description: Payment processor webhook endpoints
  - name: Billing Webhooks
    description: Stripe billing and subscription webhooks
  - name: Infrastructure Webhooks
    description: Cloudflare domain and SSL webhooks
  - name: Distribution Webhooks
    description: Digital distribution platform webhooks (FUGA)
paths:
  /labels/:
    post:
      tags:
        - Label
      summary: Create Label
      description: >-
        Creates a new label within the authenticated tenant. All operations are
        tenant-scoped.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
              properties:
                name:
                  type: string
                logo:
                  type: string
                  format: uri
                website:
                  type: string
                  format: uri
                country:
                  type: string
                  description: ISO 3166-1 alpha-2 code
                foundedDate:
                  type: string
                  format: date
                labelCode:
                  type: string
                dpid:
                  type: string
                contacts:
                  type: object
                socialLinks:
                  type: object
                distributionSettings:
                  type: object
                catalogSettings:
                  type: object
                parentLabelId:
                  type: string
                  format: uuid
                distribution:
                  type: string
                genres:
                  type: array
                  items:
                    type: string
                isActive:
                  type: boolean
                  default: true
                metadata:
                  type: object
            example:
              name: Future Sound Records
              website: https://futuresound.example.com
              country: US
              labelCode: LC12345
              dpid: DPID-123456
              contacts:
                email: contact@futuresound.example.com
              socialLinks:
                twitter: https://twitter.com/futuresound
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: success
                  data:
                    $ref: '#/components/schemas/Label'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalServerError'
      security:
        - bearerAuth: []
components:
  schemas:
    Label:
      type: object
      properties:
        id:
          type: string
          format: uuid
        TenantId:
          type: integer
        name:
          type: string
        logo:
          type: string
          format: uri
        website:
          type: string
          format: uri
        country:
          type: string
          description: ISO 3166-1 alpha-2 country code
          example: US
        foundedDate:
          type: string
          format: date
        labelCode:
          type: string
          description: LC code for DDEX
        dpid:
          type: string
          description: DDEX Party ID
        contacts:
          type: object
        socialLinks:
          type: object
        distributionSettings:
          type: object
        catalogSettings:
          type: object
        ddexSettings:
          type: object
        parentLabelId:
          type: string
          format: uuid
          nullable: true
        distribution:
          type: string
        genres:
          type: array
          items:
            type: string
        isActive:
          type: boolean
        metadata:
          type: object
        tradingName:
          type: string
        pLinePrefix:
          type: string
        cLinePrefix:
          type: string
        isrcPrefix:
          type: string
        upcPrefix:
          type: string
        defaultReleaseType:
          type: string
          enum:
            - full
            - licensing
            - distribution
        parentLabel:
          type: object
          nullable: true
          properties:
            id:
              type: string
              format: uuid
            name:
              type: string
            logo:
              type: string
              format: uri
        childLabels:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                format: uuid
              name:
                type: string
              logo:
                type: string
                format: uri
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
  responses:
    BadRequest:
      description: Bad request
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                example: error
              message:
                type: string
                example: Invalid request parameters
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                example: error
              message:
                type: string
                example: Unauthorized
    InternalServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                example: error
              message:
                type: string
                example: Internal server error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT Authorization header using the Bearer scheme. Format: "Bearer
        {token}"

````