Project

Generate Topics

Changed on

Compose candidate topics for the project from its brand profile. Nothing is saved — review the returned names and create the ones you want with POST /topics. Composition already accounts for the project's existing topics, so it proposes only what fills a gap and can return an empty list when the set is already well covered. Rate limited per project; the x-ratelimit-* response headers report the remaining budget.

post/topics/generate

Request

  • Base URL
    https://api.peec.ai/customer/v1
  • URL
    https://api.peec.ai/customer/v1/topics/generate
  • Auth
    • API key in header X-API-Key
    • or API key in query parameter api_key
    • or HTTP bearer

Request body

project_idstring

Required if using a company api key

topic_countinteger

How many topics to compose. Defaults to the number the project's plan allows.

Example request

{
  "project_id": "or_f45b94ba-5e35-4982-93ed-285e72ee14eb"
}

Response

Success

Example response

{
  "data": [
    {
      "name": "Running shoes"
    }
  ]
}

Changes