DOCS

Create a topic

POST/topics

Adds a topic and writes its prompts in the background, in the brand’s answer language and markets, like “New topic” in the app. They’re tracked as far as the plan’s prompt limit allows. List them with GET /prompts?topic_id=… after a minute.

Changes data · Read & write keyUses 2 AI creditsAll plans

Request body (JSON)

brand_idstringoptionalThe brand to change. Optional when your key covers one brand.
namestringrequiredThe topic, 2 to 80 characters, for example a product category.

Response

The new topic object (fields as in List topics).

Errors

400invalid_requestname missing or too short.
401unauthorizedMissing or revoked API key.
402out_of_creditsNo AI credits left this month.
403read_only_keyThe key is read-only, or your role can’t make changes.
404not_foundNo brand with that id that this key can read.
409topic_existsThe brand already has a topic with that name.
429rate_limitedToo many requests; see Retry-After.