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

# Create a new tag for the company

> Create a new tag for the authenticated user's company.
The auto_assign flag determines if the tag can be automatically assigned by the system (True)
or only manually (False).
Requires tag creation permission.



## OpenAPI

````yaml /api-reference/openapi-v3.yaml post /api/v3/tags
openapi: 3.0.3
info:
  title: Paradigm API
  version: xenial-xerus (v3)
  description: >-
    A versatile and adaptable tool designed to integrate Generative AI into your
    applications
servers:
  - url: https://paradigm.lighton.ai
security: []
tags:
  - name: Agents
    description: Operations about agents
  - name: Threads
    description: Operations about agents conversation threads
  - name: Tools
    description: Operations about native tools
  - name: Models
    description: Operations about AI models
  - name: MCP
    description: Operations about MCP servers
  - name: Sources
    description: Operations about sources used by agents conversation threads
  - name: Artifacts
    description: Operations about artifacts generated by agents conversation threads
  - name: Agent
    description: >-
      Operations about agents (deprecated). Please use the 'Agents' API
      component instead.
  - name: Files
    description: Operations about files
  - name: Files Processing
    description: Operations about files processing
  - name: Tags
    description: Operations about tags
  - name: Workspaces
    description: Operations about workspaces
  - name: Users
    description: Operations about users
  - name: User Groups
    description: Operations about user groups
  - name: Companies
    description: Operations about companies
  - name: SCIM
    description: Operations about SCIM
paths:
  /api/v3/tags:
    post:
      tags:
        - Tags
      summary: Create a new tag for the company
      description: >-
        Create a new tag for the authenticated user's company.

        The auto_assign flag determines if the tag can be automatically assigned
        by the system (True)

        or only manually (False).

        Requires tag creation permission.
      operationId: api_v3_tags_create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TagCreateRequestSerializerV3'
            examples:
              CreateTagRequest:
                value:
                  name: Project Alpha
                  description: >-
                    Documents related to the development and release of Project
                    Alpha
                  auto_assign: true
                summary: Create tag request
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/TagCreateRequestSerializerV3'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/TagCreateRequestSerializerV3'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TagListResponseSerializerV3'
              examples:
                CreatedTag:
                  value:
                    id: 3
                    created_at: '2024-01-16T11:00:00Z'
                    updated_at: '2024-01-16T11:00:00Z'
                    name: Project Alpha
                    description: >-
                      Documents related to the development and release of
                      Project Alpha
                    auto_assign: true
                    document_count: 0
                  summary: Created tag
          description: Tag created successfully
        '400':
          description: Bad request - missing required fields or invalid data
        '401':
          description: Authentication failed - missing or invalid API key
        '403':
          description: Permission denied - user lacks tag creation permission
        '500':
          description: Internal server error
      security:
        - bearerAuth: []
components:
  schemas:
    TagCreateRequestSerializerV3:
      type: object
      description: Serializer for creating a tag.
      properties:
        name:
          type: string
          description: Tag name
        description:
          type: string
        auto_assign:
          type: boolean
          default: true
          description: >-
            If True, this tag can be automatically assigned by the system. If
            False, it can only be assigned by a user.
      required:
        - description
        - name
    TagListResponseSerializerV3:
      type: object
      description: Serializer for listing tags.
      properties:
        id:
          type: integer
          readOnly: true
        name:
          type: string
          description: Tag name
        description:
          type: string
          readOnly: true
          description: Description of the tag (max 500 characters).
        auto_assign:
          type: boolean
          readOnly: true
          description: >-
            If True, this tag can be automatically assigned by the system. If
            False, it can only be assigned by a user.
        created_at:
          type: string
          format: date-time
          readOnly: true
          description: Timestamp when the tag was created.
        updated_at:
          type: string
          format: date-time
          readOnly: true
          description: Timestamp when the tag was last updated.
        document_count:
          type: integer
          readOnly: true
          description: Number of visible documents with this tag
      required:
        - auto_assign
        - created_at
        - description
        - document_count
        - id
        - name
        - updated_at
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer authentication header of the form `Bearer <token>`, where
        `<token>` is your auth token.

````