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

# Create prompts in batch



## OpenAPI

````yaml /api/openapi.yaml post /ai-search/prompts
openapi: 3.1.0
info:
  title: Beeze API
  version: v1
  description: >
    External Beeze API for pricing intelligence, domain research, AI Search, and
    integrations.
servers:
  - url: https://api.beeze.io/v1
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: AI Search
    description: Results, visibility, sources, competitors, prompts, and tags
  - name: Domain research
    description: Pricing intelligence, backlinks, prospects, overview stats, and trends
  - name: Integrations
    description: Usage for connected third-party integrations
paths:
  /ai-search/prompts:
    post:
      tags:
        - AI Search
      summary: Create prompts in batch
      operationId: createAiSearchPrompts
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PromptCreateRequest'
      responses:
        '201':
          description: Prompts created
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Prompt'
                required:
                  - data
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
components:
  schemas:
    PromptCreateRequest:
      type: object
      properties:
        prompts:
          type: array
          minItems: 1
          maxItems: 100
          items:
            $ref: '#/components/schemas/PromptCreateItem'
      required:
        - prompts
    Prompt:
      type: object
      properties:
        id:
          type: string
          format: uuid
        promptText:
          type: string
        project:
          type: string
        location:
          type:
            - string
            - 'null'
        status:
          type: string
          enum:
            - active
            - inactive
            - suggested
        tags:
          type: array
          items:
            type: string
        createdAt:
          type: string
        updatedAt:
          type: string
        metrics:
          $ref: '#/components/schemas/PromptMetrics'
      required:
        - id
        - promptText
        - project
        - status
        - tags
        - createdAt
        - updatedAt
    PromptCreateItem:
      type: object
      properties:
        promptText:
          type: string
          minLength: 3
          maxLength: 1000
        project:
          type: string
        location:
          type:
            - string
            - 'null'
        status:
          type: string
          enum:
            - active
            - inactive
            - suggested
        tags:
          type: array
          items:
            type: string
      required:
        - promptText
        - project
    PromptMetrics:
      type: object
      properties:
        visibility:
          type: number
        position:
          type: number
        volume:
          type: number
        sentiment:
          type: number
        sentimentLabel:
          type: string
          enum:
            - positive
            - negative
            - neutral
    Problem:
      type: object
      properties:
        type:
          type: string
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
        code:
          type: string
        requestId:
          type: string
        instance:
          type: string
      required:
        - status
        - detail
        - code
  responses:
    BadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Problem'
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Problem'
    Forbidden:
      description: Missing plan access, feature access, or workspace access
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Problem'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key for external Beeze API access

````