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

# Create a new label



## OpenAPI

````yaml https://tokens.swap.coffee/api/v3/openapi.yaml post /api/v3/labels
openapi: 3.0.3
info:
  title: Tokens Service
  version: 3.0.0-beta
servers:
  - url: https://tokens.swap.coffee
  - url: http://localhost:8080
security:
  - {}
  - ApiKey: []
tags:
  - name: Accounts
  - name: Jettons
  - name: Labels
  - name: Contracts
paths:
  /api/v3/labels:
    post:
      tags:
        - Labels
      summary: Create a new label
      operationId: createLabel
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApiLabelCreate'
      responses:
        '200':
          description: Label created successfully
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        default:
          $ref: '#/components/responses/ApiError'
components:
  schemas:
    ApiLabelCreate:
      type: object
      required:
        - label
      properties:
        label:
          type: string
          example: label
    ApiError:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          example: error description
  responses:
    ApiError:
      description: Some error during request processing
      content:
        application/json:
          schema:
            type: object
            required:
              - error
            properties:
              error:
                type: string
  securitySchemes:
    ApiKey:
      type: apiKey
      name: X-Api-Key
      in: header

````