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

# Create Tag

> Create a new tag



## OpenAPI

````yaml POST /tags
openapi: 3.0.0
info:
  title: Cloudglue API
  description: API for Cloudglue
  license:
    name: Apache License 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
  version: 0.7.13
servers:
  - url: https://api.cloudglue.dev/v1
security:
  - bearerAuth: []
paths:
  /tags:
    post:
      tags:
        - Tags
      summary: Create a new tag
      description: Create a new tag
      operationId: createTag
      requestBody:
        description: Tag creation parameters
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateVideoTagRequest'
        required: true
      responses:
        '200':
          description: Tag created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VideoTag'
        '400':
          description: Invalid request or missing required label/value
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: File not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Resource limits exceeded (total tags per file or segment)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: An unexpected error occurred on the server
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    CreateVideoTagRequest:
      type: object
      required:
        - label
        - value
        - file_id
      properties:
        label:
          type: string
          description: The label of the tag
        value:
          type: string
          description: The value of the tag
        file_id:
          type: string
          format: uuid
          description: The ID of the file
        segment_id:
          type: string
          format: uuid
          description: The ID of the segment
    VideoTag:
      type: object
      required:
        - id
        - label
        - value
        - type
        - file_id
      properties:
        id:
          type: string
          format: uuid
          description: The ID of the tag
        label:
          type: string
          description: The label of the tag
        value:
          type: string
          description: The value of the tag
        type:
          type: string
          enum:
            - file
            - segment
          description: The type of the tag
        file_id:
          type: string
          format: uuid
          description: The ID of the file
        segment_id:
          type: string
          format: uuid
          description: The ID of the segment
    Error:
      required:
        - error
      type: object
      properties:
        error:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````