Skip to Content
Docs

Report whether topic suggestions are available for an agent

GET
/api/drafter/topics/status

Whether Draft with DocsGPT suggests Insights topics for an agent from its conversations: Insights sorts them (on this server and for the agent) and it had enough in the last 30 days. Returns {"available", "conversations", "needed", "reason"}; reason is disabled (the drafter is off), off_on_this_instance or turned_off_for_this_agent (Insights is off), with conversations 0 and uncounted, else null. Needs edit access to the agent: the suggestions read its users' questions.

Not available to personal access tokens; call it from a signed-in session.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Query Parameters

agent_id?string

Agent id

Response Body

The agent's status

Example Request
curl -X GET 'http://localhost:7091/api/drafter/topics/status'
Example Response
Empty