Skip to main content
Prompts are the AI search queries Topify.ai tracks daily across all AI providers. Each prompt generates responses that are analyzed for brand visibility, sentiment, citations, and competitor mentions. The API supports creating, updating, and retrieving prompts. Prompt deletion is intentionally not exposed through the public API. API keys are issued by team admins.

List prompts

Returns all prompts in a project, ordered by creation date.

Path parameters

Response

Prompt fields


Generate suggested prompts

Creates placeholder prompts immediately and fills their content through a background Semrush, DataForSEO, and LLM pipeline. Generation usually takes 30-90 seconds.

Request body

This generation endpoint currently uses camelCase request and response fields.

Response

Poll GET /projects/{project_id}/prompts and filter for promptType=Suggested to watch the placeholders fill in.

Generate URL recommendations

Creates prompt recommendations for one to five target URLs. Existing-match checks and new candidate generation continue in the background after placeholders are returned.

Request body

Response

Poll the prompt list for promptType=UrlRecommended. Public prompt deletion and placeholder-cleanup operations are intentionally unavailable.

Get prompt

Returns a single prompt. Same fields as list.

Path parameters


Create prompts

Add one or more prompts to a project. Each prompt begins tracking immediately — Topify.ai will start collecting AI responses and calculating metrics in the background.
API keys are admin-created and currently have full-team access. Confirm the project and prompt text before creating prompts.

Path parameters

Request body

Response

Error responses


Update prompt

Update the content, country, topic, or type of an existing prompt.
API keys are admin-created and currently have full-team access. Confirm the project and fields before updating a prompt.

Path parameters

Request body

All fields are optional. Include only the fields you want to change.

Response

Returns the updated prompt with all fields (same shape as get prompt).

Error responses


Prompt analytics

Returns time-series visibility, position, and sentiment data grouped by date and AI provider.

Query parameters

Response

Response fields

ProviderMetric:

Prompt competitor metrics

Returns prompt-scoped metrics for every active competitor under a single prompt. Use this endpoint to export each brand’s visibility, sentiment, position, and share of voice for one prompt without opening the dashboard prompt detail page. The response is computed from raw AI responses for the selected prompt and date range.

Path parameters

Query parameters

Response

PromptCompetitorsResponse fields

PromptCompetitorMetricItem fields

With aggregate_over_time=true, date is null and each row covers the full period. With aggregate_over_time=false, items contains one row for each date and competitor. visibility is 0.0 when prompt responses exist but the competitor was not mentioned, and null when the prompt has no responses in that bucket. sentiment, position, and sov are null when there is no observation or denominator for that metric.

AI responses (chats)

Returns raw AI responses with brand mentions, sentiment, position, and citation references.

Query parameters

Same as analytics.

Response

ChatItem fields

BrandMention: ReferenceItem:

Domains

Returns domain-level citation breakdown, sorted by citation count descending.

Query parameters

Same as analytics.

Response

DomainItem fields

BrandInfo:

URLs

Returns URL-level citation data, sorted by mention count descending.

Query parameters

Same as analytics.

Response

UrlItem fields