Prompts

The questions we run against AI models on the account's configured tracking schedule, and the execution records each run produces.

GET/dimensions/prompts

Lists prompts in a project.

Params:
  • project_idrequired
  • modelonly prompts with at least one execution on that model, of any outcome or date
  • collection_id
  • promptprompt ID
  • country_code
  • language_code
  • from
  • to
  • page
  • per_page≤100

Both from and to filter by prompt creation date.

GET/dimensions/prompt_executions

Lists prompt executions in a project.

Params:
  • project_idrequired
  • model
  • collection_id
  • promptprompt ID
  • country_code
  • language_code
  • prompt_type
  • brand_kind
  • from
  • to
  • page
  • per_page
  • mention_filter
  • citation_filter
  • competitorsthe two-axis matrix described under GET /answers

GET/dimensions/query_fan_outs

The sub-queries a model actually issued when answering your tracked prompts, useful for finding the phrasing models search for rather than the phrasing you wrote. view=query (default) returns one row per distinct sub-query with its count and share of all occurrences; view=prompt returns one row per prompt with how many distinct sub-queries it produced. Fan-out is reported mainly by ChatGPT, so an empty result usually means the models in scope do not expose it.

Params:
  • project_idrequired
  • viewquery or prompt
  • querysubstring on the sub-query text
  • order
  • direction
  • model
  • collection_id
  • prompt
  • country_code
  • language_code
  • prompt_type
  • brand_kind
  • range
  • from
  • to
  • page
  • per_page
  • output

GET/suggested_prompts

The Suggested prompts queue, the same list as the app's Suggested Prompts tab: the suggestions of every generator, oldest first, pending by default.

Params:
  • project_idrequired
  • sourcewebsite, magic, topic, reddit, paa, reputational, translate, gsc or catalog
  • statuspending, accepted, rejected or all
  • page
  • per_page≤100, default 50

GET/prompt_generations/:id

Poll a suggestion run until its status is completed (with the suggestions it saved) or failed (with an error code and message). Most runs finish within a minute. Runs are kept for 24 hours; their suggestions stay in the queue.

Params:
  • project_idrequired
  • :idthe run id, in URL

POST/prompts

Create up to 100 prompts per request. Existing prompts (same text + locale) are skipped.

Body (JSON):
  • project_idrequired
  • promptsarray, required, max 100
  • country_coderequired
  • language_coderequired

POST/prompts/import

The app's CSV import as JSON. Each row carries its own country, language and tags. Missing tags are created, and duplicates are skipped but still get the row's tags; when the new prompts would exceed the plan nothing is imported. A row is skipped and comes back in row_errors when its country or language is unknown, when it would give a prompt more than 50 tags (rows repeating a prompt add up) or when its tags would take the request past 500 new tags. A team member needs create access to Tags to create a tag (without it, a row that needs a new tag is skipped and comes back in row_errors) and update access to Prompts to tag a prompt that already existed (without it, the row adds no tags to that prompt and comes back in row_errors when it would have added one). Requires a writable API key and, for team members, create access to Prompts.

  • Body (JSON): project_id (required), rows (required array, max 500) of prompt (required), country_code, language_code (codes or names, default the project's) and tags (array of names).

POST/prompt_generations

Start a prompt suggestion run with one of the generators behind the app's Add prompts wizards. The run answers 202 and works in the background; its suggestions land in the Suggested prompts queue, and nothing is tracked until you accept them. Requires a writable API key.

  • Body (JSON): project_id (required), source (required: website, keyword, topic, reddit, paa, reputational, translate or search_console), country_code and language_code (default the project's). Per source: query (keyword optional; topic and reddit required), count (keyword and topic, 1-100, default 20), competitor_id (keyword), search_type (reddit: topic or brand), keywords (paa, up to 5), source_country_code and source_language_code (translate), min_words and all_countries (search_console, Growth plan or above).

POST /suggested_prompts/accept + /reject

Accept pending suggestions to track them as prompts, each in its own locale and optionally in one tag, or reject them so they leave the pending list. When the new prompts would exceed the plan's prompt limit, nothing is accepted (ERR_LIMIT_REACHED). Requires a writable API key.

Body (JSON):
  • project_idrequired
  • idsrequired array, max 100

Accept also takes one tag through tag_ids or tag_names, and create_missing (bool).

PATCH/prompts/:id

Set a prompt's search intent (prompt_type) and/or brand focus (brand_kind) by hand, exactly like editing its badges on the prompt page. The prompt is marked as manually categorized (categorization_source becomes manual), so automatic categorization no longer changes it; the prompt page can revert it to automatic. Not available from a white-label portal (ERR_INTEGRATION_UNAVAILABLE). Requires a writable API key and, for team members, update permission on Prompts. Also available as the MCP tool update_prompt_categorization.

Path:
  • :idprompt id

Body (JSON): project_id (required), prompt_type (informational|navigational|commercial|transactional), brand_kind (brand|brand_other|non_brand); at least one of the two. Any other field, or an unknown value, returns ERR_INVALID_PARAM.

DELETE/prompts/:id

Delete a prompt. Irreversible; the prompt disappears immediately, frees a prompt slot, and its history (executions, mentions, citations, sentiment) is purged by a background job. Requires a writable API key.

Params:
  • project_idrequired
  • :idin URL

Returns ERR_NOT_FOUND for prompts outside the project.