> ## 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 multiple tags

> Creates several tags at once and returns the newly created tags.



## OpenAPI

````yaml https://api.mentionlab.io/api/docs-json post /api/tags/many
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/tags/many:
    post:
      tags:
        - Tags
      summary: Create multiple tags
      description: Creates several tags at once and returns the newly created tags.
      operationId: TagsController_createMany
      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/CreateManyTagsDto'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TagResponse'
        '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:
    CreateManyTagsDto:
      type: object
      properties:
        tags:
          description: >-
            List of tags to create in a single batch operation. Must contain at
            least one tag, and each entry is validated against the CreateTagDto
            schema.
          example:
            - name: Marketing
              color: '#3B82F6'
            - name: Product Launch
              color: '#10B981'
          type: array
          items:
            $ref: '#/components/schemas/CreateTagDto'
      required:
        - tags
    TagResponse:
      type: object
      properties:
        id:
          type: number
          example: 1
          description: Unique identifier for the tag
        project:
          type: object
          description: The project this tag belongs to
          example: a1b2c3d4-e5f6-g7h8-i9j0-k1l2m3n4o5p6
        name:
          type: string
          description: Name of the tag
          example: feature
        color:
          type: string
          description: Color of the tag in hex format
          example: '#3B82F6'
        queryCount:
          type: number
          example: 5
          description: Number of queries associated with this tag
        groupId:
          type: string
          description: >-
            ID of the tag group node this tag is filed under; null when
            ungrouped.
          format: uuid
          nullable: true
        groupName:
          type: string
          description: >-
            Name of the tag group node this tag is filed under; null when
            ungrouped.
          nullable: true
      required:
        - id
        - project
        - name
        - color
    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
    CreateTagDto:
      type: object
      properties:
        name:
          type: string
          description: Name of the tag
          example: feature
        color:
          type: string
          description: Color of the tag in hex format
          example: '#3B82F6'
        groupId:
          type: string
          description: >-
            ID of the query-taxonomy tag group to file the tag under, or null
            for ungrouped. Group assignment never triggers tag re-matching.
          format: uuid
          nullable: true
          example: 018f3a2b-7c4d-7e91-b3f5-2a6c8d0e1f42
      required:
        - name
        - color

````