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

# Create Tags

> Create one or more tags for the project



## OpenAPI

````yaml /v2/openapi.json post /tags
openapi: 3.0.0
info:
  title: Promptwatch API v2
  description: >-
    API v2 for customer integrations with Promptwatch monitoring platform. This
    version provides improved structure, additional endpoints, and enhanced
    functionality.
  version: 2.0.0
  contact:
    name: Promptwatch Support
    email: team@promptwatch.com
    url: https://promptwatch.com
  license:
    name: Commercial
    url: https://promptwatch.com/terms-and-conditions
servers:
  - url: https://server.promptwatch.com/api/v2
    description: Promptwatch API v2
security: []
tags:
  - name: Authentication
    description: API key validation and authentication
  - name: Content
    description: >-
      AI content generation and optimization. Create content asynchronously and
      poll for results.
  - name: Content Gap
    description: Content gap analysis and recommendations
  - name: Models
    description: Available LLM models
  - name: Monitors
    description: Monitor management and CRUD operations
  - name: Page Tracker
    description: Track URLs and inspect citation stats, responses, and prompts
  - name: Prompts
    description: Prompt management and operations
  - name: Query Fanouts
    description: ChatGPT query fanout keywords
  - name: Responses
    description: LLM response data and analytics
  - name: Tags
    description: Tag management for prompts
  - name: Topics
    description: Topic management for prompts
  - name: Actions
    description: Action items (GEO suggestions and tasks)
  - name: Personas
    description: Persona configuration for monitors
  - name: Brands
    description: Brand management for competitive analysis
  - name: Visibility
    description: Brand visibility time series and competitor heatmaps
  - name: Citations
    description: Citation analytics from AI responses
  - name: Analytics
    description: Visitor analytics, AI crawler logs, sentiment, and brand visibility trends
  - name: Projects
    description: Project management (organization-level keys only)
  - name: Sitemap
    description: Sitemap crawl progress and discovered URLs
  - name: Site Health
    description: >-
      Crawled pages with SEO issues (titles, meta descriptions, H1, thin
      content)
  - name: Socials
    description: >-
      Social media citations (Reddit posts and YouTube videos) found in LLM
      responses
paths:
  /tags:
    post:
      tags:
        - Tags
      summary: Create Tags
      description: Create one or more tags for the project
      operationId: createTags
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                names:
                  type: array
                  items:
                    type: string
                    minLength: 1
                  minItems: 1
                  description: Array of tag names to create
              required:
                - names
              additionalProperties: false
      responses:
        '201':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                example:
                  tags:
                    - id: 6ba7b820-9dad-11d1-80b4-00c04fd430c8
                      name: Q2 campaign
                      promptCount: 14
                    - id: 6ba7b821-9dad-11d1-80b4-00c04fd430c8
                      name: Brand queries
                      promptCount: 32
                properties:
                  tags:
                    type: array
                    items:
                      type: object
                      example:
                        id: 6ba7b820-9dad-11d1-80b4-00c04fd430c8
                        name: Q2 campaign
                        promptCount: 14
                      properties:
                        id:
                          type: string
                          format: uuid
                          description: Tag unique identifier
                        name:
                          type: string
                          description: Tag name
                        promptCount:
                          type: number
                          description: Number of prompts using this tag
                      required:
                        - id
                        - name
                        - promptCount
                      additionalProperties: false
                    description: Array of tags
                required:
                  - tags
                additionalProperties: false
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                example:
                  code: TAG_NOT_FOUND
                  message: Tag not found
                properties:
                  code:
                    type: string
                    description: Error code indicating the type of error
                    enum:
                      - TAG_NOT_FOUND
                      - TAG_FORBIDDEN
                      - TAG_ALREADY_EXISTS
                      - TAG_INVALID_NAME
                      - TAG_INVALID_PROMPT
                      - TAG_INVALID_BRAND
                      - TAG_MISSING_BRAND_ID
                      - TAG_NO_VALID_TAGS_SUPPLIED
                      - INTERNAL_ERROR
                    example: TAG_NOT_FOUND
                  message:
                    type: string
                    description: Human-readable error message
                required:
                  - code
                  - message
                additionalProperties: false
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                example:
                  error: Unauthorized
                  message: Missing or invalid X-API-Key header.
                properties:
                  error:
                    type: string
                    description: Error category (often aligned with HTTP semantics)
                  code:
                    type: string
                    description: Optional machine-readable code
                  message:
                    type: string
                    description: Human-readable explanation
                  details:
                    type: object
                    description: Optional structured detail (e.g. validation)
                    additionalProperties: true
                required:
                  - error
                  - message
                additionalProperties: false
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                example:
                  code: TAG_NOT_FOUND
                  message: Tag not found
                properties:
                  code:
                    type: string
                    description: Error code indicating the type of error
                    enum:
                      - TAG_NOT_FOUND
                      - TAG_FORBIDDEN
                      - TAG_ALREADY_EXISTS
                      - TAG_INVALID_NAME
                      - TAG_INVALID_PROMPT
                      - TAG_INVALID_BRAND
                      - TAG_MISSING_BRAND_ID
                      - TAG_NO_VALID_TAGS_SUPPLIED
                      - INTERNAL_ERROR
                    example: TAG_NOT_FOUND
                  message:
                    type: string
                    description: Human-readable error message
                required:
                  - code
                  - message
                additionalProperties: false
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        API key for authentication. Get yours from the Promptwatch dashboard
        under Settings > API Keys.

````