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

# Create a tag group

> Creates a folder for tags of one taxonomy.



## OpenAPI

````yaml https://api.mentionlab.io/api/docs-json post /api/v1/tag-groups
openapi: 3.0.0
info:
  title: MentionLab Public API v0.3.4-rc
  description: ''
  version: 0.3.4-rc
  contact: {}
servers:
  - url: https://api.mentionlab.io
security: []
tags: []
paths:
  /api/v1/tag-groups:
    post:
      tags:
        - Tag Groups
      summary: Create a tag group
      description: Creates a folder for tags of one taxonomy.
      operationId: TagGroupsV1Controller_create_v1
      parameters:
        - name: x-project-id
          in: header
          description: Project ID to specify the project context
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateTagGroupDto'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TagGroupResponse'
        '400':
          description: >-
            The request failed validation — the body, query or path parameters
            are malformed or out of range.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '401':
          description: The request is missing valid authentication credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '403':
          description: >-
            The authenticated principal lacks the required permission, or access
            to the requested organisation/project.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
components:
  schemas:
    CreateTagGroupDto:
      type: object
      properties:
        name:
          type: string
          description: Name of the tag group, unique per project and taxonomy.
          example: Selection criteria
        tagType:
          type: string
          description: >-
            Which tag taxonomy this folder organizes: "query" tags or
            "execution" tags. Immutable after creation.
          enum:
            - query
            - execution
          example: query
        color:
          type: string
          description: Color of the tag group in hex format.
          example: '#3B82F6'
      required:
        - name
        - tagType
    TagGroupResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
        tagType:
          type: string
          enum:
            - query
            - execution
          description: >-
            Which tag taxonomy this folder organizes: "query" or "execution".
            Immutable.
        name:
          type: string
        color:
          type: string
          description: Color of the tag group in hex format.
          nullable: true
        createdAt:
          format: date-time
          type: string
        updatedAt:
          format: date-time
          type: string
      required:
        - id
        - tagType
        - name
        - createdAt
        - updatedAt
    ApiErrorResponse:
      type: object
      properties:
        statusCode:
          type: number
          description: HTTP status code of the error.
          example: 400
        message:
          type: string
          description: >-
            Human-readable description of the error. Validation failures return
            an array of per-field validation errors instead of a single string.
          example: Validation failed
        error:
          type: string
          description: Short name of the HTTP error.
          example: Bad Request
      required:
        - statusCode

````