CiteLadder Prompt Sets API

The prompt-sets API from CiteLadder — 8 operation(s) for prompt-sets.

Operations 8

POST /v1/projects/{project_id}/prompt-sets/{prompt_set_id}/generate Create projects by project id prompt sets by prompt set id generate #
GET /v1/projects/{project_id}/prompt-sets/{prompt_set_id} Get projects by project id prompt sets by prompt set id #
POST /v1/projects/{project_id}/prompt-sets/{prompt_set_id}/import Create projects by project id prompt sets by prompt set id import #
GET /v1/projects/{project_id}/prompt-sets/{prompt_set_id}/candidates Get projects by project id prompt sets by prompt set id candidates #
POST /v1/projects/{project_id}/prompt-sets/{prompt_set_id}/candidates/review Create projects by project id prompt sets by prompt set id candidates review #
GET /v1/projects/{project_id}/prompt-sets Get projects by project id prompt sets #
POST /v1/projects/{project_id}/prompt-sets/{prompt_set_id}/prompts Create projects by project id prompt sets by prompt set id prompts #
GET /v1/projects/{project_id}/prompt-sets/{prompt_set_id}/generation-runs Get projects by project id prompt sets by prompt set id generation runs #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/citeladder-com:citeladder-com-prompt-sets-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

citeladder-com-prompt-sets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: CiteLadder Prompt Sets API
  version: '1'
servers:
- url: https://api.citeladder.com
security:
- apiKey: []
tags:
- name: prompt-sets
paths:
  /v1/projects/{project_id}/prompt-sets/{prompt_set_id}/generate:
    post:
      tags:
      - prompt-sets
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PromptGenerateResponse'
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      - name: prompt_set_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      - name: Idempotency-Key
        in: header
        required: true
        schema:
          type: string
          minLength: 1
          maxLength: 255
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                count:
                  default: 10
                  type: integer
                  minimum: 1
                  maximum: 9007199254740991
                topic_ids:
                  default: []
                  type: array
                  items:
                    type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                topic_id:
                  anyOf:
                  - type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                  - type: 'null'
                cohort:
                  default: core
                  type: string
                  enum:
                  - core
                  - brand_diagnostic
                  - comparison
                run_context:
                  anyOf:
                  - type: string
                    maxLength: 280
                  - type: 'null'
                distribution:
                  anyOf:
                  - type: object
                    properties:
                      branded_share:
                        default: 0
                        type: number
                        minimum: 0
                        maximum: 1
                      comparison_share:
                        default: 0
                        type: number
                        minimum: 0
                        maximum: 1
                      intent_mix:
                        anyOf:
                        - type: object
                          properties:
                            informational:
                              type: number
                              minimum: 0
                              maximum: 100
                            commercial:
                              type: number
                              minimum: 0
                              maximum: 100
                            transactional:
                              type: number
                              minimum: 0
                              maximum: 100
                          required:
                          - informational
                          - commercial
                          - transactional
                        - type: 'null'
                      personas:
                        default: []
                        maxItems: 8
                        type: array
                        items:
                          type: string
                          minLength: 1
                          maxLength: 120
                  - type: 'null'
                seed_source:
                  anyOf:
                  - type: string
                    enum:
                    - search_console
                    - search_intelligence
                    - none
                  - type: 'null'
                seed_query_ids:
                  default: []
                  maxItems: 200
                  type: array
                  items:
                    type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      x-citeladder-scope: prompts:write
      summary: Create projects by project id prompt sets by prompt set id generate
      x-summary-source: derived
      operationId: postV1ProjectsByProjectIdPromptSetsByPromptSetIdGenerate
      x-operation-id-source: derived
  /v1/projects/{project_id}/prompt-sets/{prompt_set_id}:
    get:
      tags:
      - prompt-sets
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PromptSet'
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      - name: prompt_set_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      x-citeladder-scope: read
      summary: Get projects by project id prompt sets by prompt set id
      x-summary-source: derived
      operationId: getV1ProjectsByProjectIdPromptSetsByPromptSetId
      x-operation-id-source: derived
  /v1/projects/{project_id}/prompt-sets/{prompt_set_id}/import:
    post:
      tags:
      - prompt-sets
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PromptSet'
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      - name: prompt_set_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      - name: Idempotency-Key
        in: header
        required: true
        schema:
          type: string
          minLength: 1
          maxLength: 255
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                prompts:
                  maxItems: 500
                  type: array
                  items:
                    type: object
                    properties:
                      text:
                        type: string
                        maxLength: 300
                      theme:
                        default: ''
                        type: string
                        maxLength: 255
                      intent:
                        default: ''
                        type: string
                        maxLength: 64
                      buyer_stage:
                        default: ''
                        $ref: '#/components/schemas/BuyerStage'
                      persona:
                        default: ''
                        type: string
                        maxLength: 120
                      cohort:
                        $ref: '#/components/schemas/PromptCohort'
                      enabled:
                        default: true
                        type: boolean
                      topic:
                        default: ''
                        type: string
                        maxLength: 255
                    required:
                    - text
                    additionalProperties: false
              required:
              - prompts
              additionalProperties: false
      x-citeladder-scope: prompts:write
      summary: Create projects by project id prompt sets by prompt set id import
      x-summary-source: derived
      operationId: postV1ProjectsByProjectIdPromptSetsByPromptSetIdImport
      x-operation-id-source: derived
  /v1/projects/{project_id}/prompt-sets/{prompt_set_id}/candidates:
    get:
      tags:
      - prompt-sets
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PromptCandidate'
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      - name: prompt_set_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      x-citeladder-scope: read
      summary: Get projects by project id prompt sets by prompt set id candidates
      x-summary-source: derived
      operationId: getV1ProjectsByProjectIdPromptSetsByPromptSetIdCandidates
      x-operation-id-source: derived
  /v1/projects/{project_id}/prompt-sets/{prompt_set_id}/candidates/review:
    post:
      tags:
      - prompt-sets
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PromptCandidateReviewResponse'
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      - name: prompt_set_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      - name: Idempotency-Key
        in: header
        required: true
        schema:
          type: string
          minLength: 1
          maxLength: 255
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                accept_ids:
                  default: []
                  type: array
                  items:
                    type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                reject_ids:
                  default: []
                  type: array
                  items:
                    type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      x-citeladder-scope: prompts:write
      summary: Create projects by project id prompt sets by prompt set id candidates review
      x-summary-source: derived
      operationId: postV1ProjectsByProjectIdPromptSetsByPromptSetIdCandidatesReview
      x-operation-id-source: derived
  /v1/projects/{project_id}/prompt-sets:
    get:
      tags:
      - prompt-sets
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PromptSet'
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      x-citeladder-scope: read
      summary: Get projects by project id prompt sets
      x-summary-source: derived
      operationId: getV1ProjectsByProjectIdPromptSets
      x-operation-id-source: derived
  /v1/projects/{project_id}/prompt-sets/{prompt_set_id}/prompts:
    post:
      tags:
      - prompt-sets
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  prompts:
                    type: array
                    items:
                      $ref: '#/components/schemas/Prompt'
                required:
                - prompts
                additionalProperties: false
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      - name: prompt_set_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      - name: Idempotency-Key
        in: header
        required: true
        schema:
          type: string
          minLength: 1
          maxLength: 255
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                prompts:
                  minItems: 1
                  maxItems: 50
                  type: array
                  items:
                    type: object
                    properties:
                      text:
                        type: string
                        minLength: 1
                        maxLength: 300
                      theme:
                        default: ''
                        type: string
                        maxLength: 255
                      intent:
                        default: ''
                        type: string
                        maxLength: 64
                      buyer_stage:
                        default: ''
                        $ref: '#/components/schemas/BuyerStage'
                      persona:
                        default: ''
                        type: string
                        maxLength: 120
                      cohort:
                        $ref: '#/components/schemas/PromptCohort'
                      enabled:
                        default: true
                        type: boolean
                      topic_id:
                        anyOf:
                        - type: string
                          format: uuid
                          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                        - type: 'null'
                    required:
                    - text
                    additionalProperties: false
              required:
              - prompts
              additionalProperties: false
      x-citeladder-scope: prompts:write
      summary: Create projects by project id prompt sets by prompt set id prompts
      x-summary-source: derived
      operationId: postV1ProjectsByProjectIdPromptSetsByPromptSetIdPrompts
      x-operation-id-source: derived
  /v1/projects/{project_id}/prompt-sets/{prompt_set_id}/generation-runs:
    get:
      tags:
      - prompt-sets
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                        prompt_set_id:
                          type: string
                          format: uuid
                          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                        generator_version:
                          type: string
                        created_at:
                          type: string
                      required:
                      - id
                      - prompt_set_id
                      - generator_version
                      - created_at
                      additionalProperties: false
                  next_cursor:
                    type:
                    - string
                    - 'null'
                required:
                - items
                - next_cursor
                additionalProperties: false
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      - name: prompt_set_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      - name: cursor
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            maxLength: 512
          - type: 'null'
      - name: limit
        in: query
        required: false
        schema:
          default: 50
          type: integer
          minimum: 1
          maximum: 100
      x-citeladder-scope: read
      summary: Get projects by project id prompt sets by prompt set id generation runs
      x-summary-source: derived
      operationId: getV1ProjectsByProjectIdPromptSetsByPromptSetIdGenerationRuns
      x-operation-id-source: derived
components:
  schemas:
    PromptIntent:
      type: string
      enum:
      - ''
      - discovery
      - comparison
      - purchase
      - service
      - local
    PromptCandidate:
      type: object
      properties:
        id:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        run_id:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        prompt_set_id:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        topic_id:
          default: null
          anyOf:
          - type: string
            format: uuid
            pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          - type: 'null'
        text:
          type: string
        intent:
          default: ''
          type: string
        buyer_stage:
          default: ''
          $ref: '#/components/schemas/BuyerStage'
        prompt_intent:
          default: ''
          $ref: '#/components/schemas/PromptIntentDetail'
        cohort:
          $ref: '#/components/schemas/PromptCohort'
        created_at:
          type: string
        expires_at:
          type: string
        quality_status:
          default: not_judged
          type: string
          enum:
          - judged
          - 'off'
          - unavailable
          - not_judged
        quality_flags:
          default: []
          type: array
          items:
            type: string
        grounded:
          default: false
          type: boolean
      required:
      - id
      - run_id
      - prompt_set_id
      - topic_id
      - text
      - intent
      - buyer_stage
      - prompt_intent
      - cohort
      - created_at
      - expires_at
      - quality_status
      - quality_flags
      - grounded
      additionalProperties: false
    Topic:
      type: object
      properties:
        id:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        project_id:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        parent_id:
          default: null
          anyOf:
          - type: string
            format: uuid
            pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          - type: 'null'
        name:
          type: string
        description:
          type: string
        origin:
          type: string
          enum:
          - manual
          - generated
        active_count:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        created_at:
          type: string
        updated_at:
          type: string
      required:
      - id
      - project_id
      - parent_id
      - name
      - description
      - origin
      - active_count
      - created_at
      - updated_at
      additionalProperties: false
    PromptGenerateResponse:
      type: object
      properties:
        candidates:
          type: array
          items:
            $ref: '#/components/schemas/PromptCandidate'
        topics:
          type: array
          items:
            $ref: '#/components/schemas/Topic'
        dropped_duplicates:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        requested_count:
          default: 0
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        candidates_generated:
          default: 0
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        quality_gate:
          default: 'off'
          type: string
          enum:
          - 'off'
          - shadow
          - gate
          - unavailable
        quality_rejected:
          default: 0
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        admission_drops:
          default: {}
          type: object
          propertyNames:
            type: string
            enum:
            - unknown_topic
            - unplanned_slot
            - intent
            - stage
            - duplicate
            - length
            - too_many_words
            - placeholder
            - two_needs
            - observed_copy
            - off_topic
            - location_unplanned
            - branded_core
            - brand_missing
            - competitor_missing
            - near_duplicate
          additionalProperties:
            type: integer
            minimum: 0
            maximum: 9007199254740991
        shortfall_reason:
          default: null
          anyOf:
          - type: string
            enum:
            - deadline
            - model_error
          - type: 'null'
      required:
      - candidates
      - topics
      - dropped_duplicates
      - requested_count
      - candidates_generated
      - quality_gate
      - quality_rejected
      - admission_drops
      - shortfall_reason
      additionalProperties: false
    PromptStatus:
      type: string
      enum:
      - active
      - archived
    PromptCohort:
      type: string
      enum:
      - core
      - brand_diagnostic
      - comparison
      - commerce
    BuyerStage:
      type: string
      enum:
      - ''
      - awareness
      - consideration
      - decision
      - implementation
    Prompt:
      type: object
      properties:
        id:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        prompt_set_id:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        topic_id:
          anyOf:
          - type: string
            format: uuid
            pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          - type: 'null'
        text:
          type: string
        theme:
          type: string
        intent:
          $ref: '#/components/schemas/PromptIntent'
        buyer_stage:
          default: ''
          $ref: '#/components/schemas/BuyerStage'
        prompt_intent:
          default: ''
          $ref: '#/components/schemas/PromptIntentDetail'
        persona:
          default: ''
          type: string
        cohort:
          $ref: '#/components/schemas/PromptCohort'
        branded:
          type: boolean
        enabled:
          type: boolean
        status:
          $ref: '#/components/schemas/PromptStatus'
        origin:
          type: string
          enum:
          - manual
          - imported
          - generated
        over_plan_limit:
          type: boolean
        created_at:
          type: string
        updated_at:
          type: string
      required:
      - id
      - prompt_set_id
      - text
      - theme
      - intent
      - buyer_stage
      - prompt_intent
      - persona
      - cohort
      - branded
      - enabled
      - status
      - origin
      - over_plan_limit
      additionalProperties: false
    PromptIntentDetail:
      type: string
      enum:
      - ''
      - learn
      - solve
      - compare
      - recommend
      - validate
      - buy
      - implement
    PromptSet:
      type: object
      properties:
        id:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        project_id:
          type: string
          format: uuid
          pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        name:
          type: string
        description:
          type: string
        prompt_count:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        prompts:
          type: array
          items:
            $ref: '#/components/schemas/Prompt'
        created_at:
          type: string
        updated_at:
          type: string
      required:
      - id
      - project_id
      - name
      - prompts
      - created_at
      - updated_at
      additionalProperties: false
    PromptCandidateReviewResponse:
      type: object
      properties:
        accepted:
          type: array
          items:
            $ref: '#/components/schemas/Prompt'
        rejected_count:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        dropped_duplicates:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        unavailable_count:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
      required:
      - accepted
      - rejected_count
      - dropped_duplicates
      - unavailable_count
      additionalProperties: false
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: 'An API key created in Settings → API keys, sent as `Authorization: Bearer cl_live_…`.'