v1

latestOpenAPI 3.1.02026-07-2295105298.6 KB
Basics

Delete Topic

Soft-deletes a topic. By default its prompts are kept: they stay active, keep their history, remain grouped under the deleted topic in the app, and can be re-categorized later. Pass delete_prompts=true to also soft-delete every active prompt in the topic (they stop generating responses). Reversible: creating a topic with the same name restores it and its prompt grouping.

delete/api/v1/topics/{topic_id}

Path parameters

topic_idstring uuid required

The topic to delete.

Query parameters

website_idstring uuid required

Website that owns the topic.

delete_prompts'true' | 'false'

When "true", also soft-deletes every active prompt in the topic. Defaults to "false" (prompts are kept).

Response

Topic deleted

successtrue required
namestring required

Name of the deleted topic.

deleted_prompt_countinteger required

Number of prompts soft-deleted alongside the topic (0 unless delete_prompts=true).