> ## 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.

# Bulk Create Prompts

> Create multiple prompts in a single request (max 100)



## OpenAPI

````yaml /v2/openapi.json post /prompts/bulk
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:
  /prompts/bulk:
    post:
      tags:
        - Prompts
      summary: Bulk Create Prompts
      description: Create multiple prompts in a single request (max 100)
      operationId: bulkCreatePrompts
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                llmMonitorId:
                  type: string
                  format: uuid
                  description: Monitor to attach prompts to
                prompts:
                  type: array
                  minItems: 1
                  maxItems: 100
                  items:
                    type: object
                    properties:
                      prompt:
                        type: string
                        minLength: 1
                        description: The prompt text
                      type:
                        type: string
                        enum:
                          - ORGANIC
                          - BRAND_SPECIFIC
                          - COMPETITOR_COMPARISON
                      intent:
                        type: string
                        enum:
                          - BRANDED
                          - INFORMATIONAL
                          - NAVIGATIONAL
                          - COMMERCIAL
                          - TRANSACTIONAL
                        nullable: true
                      languageCode:
                        type: string
                        default: en-US
                      keywords:
                        type: array
                        items:
                          type: string
                        description: Optional keywords
                      tags:
                        type: array
                        items:
                          type: string
                        description: Optional tag names
                      isActive:
                        type: boolean
                        description: Whether prompt is active
                    required:
                      - prompt
                      - type
                    additionalProperties: false
                  description: Array of prompts to create (max 100)
              required:
                - llmMonitorId
                - prompts
              additionalProperties: false
      responses:
        '201':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                example:
                  created: 2
                  prompts:
                    - id: 6ba7b831-9dad-11d1-80b4-00c04fd430c8
                      prompt: Headless CMS for ecommerce?
                    - id: 6ba7b832-9dad-11d1-80b4-00c04fd430c8
                      prompt: AI analytics vendors for SaaS?
                properties:
                  created:
                    type: number
                    description: Number of prompts created
                  prompts:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                        prompt:
                          type: string
                      required:
                        - id
                        - prompt
                required:
                  - created
                  - prompts
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                example:
                  error: Bad Request
                  code: DATE_RANGE_TOO_LARGE
                  message: Date range cannot exceed 90 days
                properties:
                  error:
                    type: string
                    description: Error label
                  code:
                    type: string
                    description: Optional machine-readable code (e.g. DATE_RANGE_TOO_LARGE)
                  message:
                    type: string
                    description: Reason the request was rejected
                required:
                  - error
                  - message
        '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
        '402':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                example:
                  error: Payment Required
                  message: >-
                    Cannot create prompt. Your organization has 50 of 50 active
                    prompts. Please upgrade your plan to continue.
                  current: 50
                  limit: 50
                  available: 0
                properties:
                  error:
                    type: string
                    description: Fixed error label
                    enum:
                      - Payment Required
                  message:
                    type: string
                    description: Explanation including usage and limit
                  current:
                    type: integer
                    description: Current usage for this quota
                  limit:
                    type: integer
                    description: Maximum allowed on the current plan
                  available:
                    type: integer
                    description: Remaining quota (0 when blocked)
                required:
                  - error
                  - message
                  - current
                  - limit
                  - available
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                example:
                  code: PROMPT_NOT_FOUND
                  message: Prompt not found or access denied
                properties:
                  code:
                    type: string
                    description: Error code indicating the type of error
                    enum:
                      - PROMPT_NOT_FOUND
                      - PROMPT_KEYWORDS_REQUIRED
                      - PROMPT_CLASSIFICATION_FAILED
                      - PROMPT_INVALID_MOVE_LANGUAGE
                      - MONITOR_NOT_FOUND
                      - PROJECT_NOT_FOUND
                      - PERSONA_NOT_FOUND
                      - INTERNAL_ERROR
                    example: PROMPT_NOT_FOUND
                  message:
                    type: string
                    description: Human-readable error message
                    example: Prompt not found or access denied
                required:
                  - code
                  - message
                additionalProperties: false
              examples:
                example1:
                  value:
                    code: PROMPT_NOT_FOUND
                    message: Prompt not found or access denied
                example2:
                  value:
                    code: PROMPT_KEYWORDS_REQUIRED
                    message: Keywords are required for keywords generation type
                example3:
                  value:
                    code: PROMPT_CLASSIFICATION_FAILED
                    message: All prompt classifications failed
                example4:
                  value:
                    code: INTERNAL_ERROR
                    message: An unexpected error occurred
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                example:
                  code: PROMPT_NOT_FOUND
                  message: Prompt not found or access denied
                properties:
                  code:
                    type: string
                    description: Error code indicating the type of error
                    enum:
                      - PROMPT_NOT_FOUND
                      - PROMPT_KEYWORDS_REQUIRED
                      - PROMPT_CLASSIFICATION_FAILED
                      - PROMPT_INVALID_MOVE_LANGUAGE
                      - MONITOR_NOT_FOUND
                      - PROJECT_NOT_FOUND
                      - PERSONA_NOT_FOUND
                      - INTERNAL_ERROR
                    example: PROMPT_NOT_FOUND
                  message:
                    type: string
                    description: Human-readable error message
                    example: Prompt not found or access denied
                required:
                  - code
                  - message
                additionalProperties: false
              examples:
                example1:
                  value:
                    code: PROMPT_NOT_FOUND
                    message: Prompt not found or access denied
                example2:
                  value:
                    code: PROMPT_KEYWORDS_REQUIRED
                    message: Keywords are required for keywords generation type
                example3:
                  value:
                    code: PROMPT_CLASSIFICATION_FAILED
                    message: All prompt classifications failed
                example4:
                  value:
                    code: INTERNAL_ERROR
                    message: An unexpected error occurred
      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.

````