Report whether topic suggestions are available for an agent
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.
bearerAuthorizationBearer <token>A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).
agent_id?stringAgent id
The agent's status
curl -X GET 'http://localhost:7091/api/drafter/topics/status'Report whether the drafter is on for the caller, and its model GET
Whether Draft with DocsGPT is offered to the caller, and the model it runs on (the task model). Returns {"enabled", "model": {"id", "display_name"} | null, "reason": "disabled" | "no_model" | null}. Not available to [personal access tokens](/API/personal-access-tokens); call it from a signed-in session.
Stream one draft turn POST
Run one draft turn and stream it as server-sent events (data: <json>). Events: turn (first, {"id"}: the id POST /api/drafter/turns/<id>/cancel stops, the request's turn_id when it sent a valid one; absent when the server can't stop turns), status, read (what a read tool showed the model, {"kind": "questions", "items"}), message, questions, proposal, error, and end (always last). Refusals (disabled, no_model, rate_limited, quota, bad_request) arrive as an error event in a 200 stream; a bad_request carries reason: history (the conversation is refused: start a new one), too_long (the prompt is over the read cap, with limit), empty (the message is empty once cleaned) or invalid. Nothing is saved. Not available to [personal access tokens](/API/personal-access-tokens); call it from a signed-in session.