Skip to Content
Docs

Report an agent's gap summary

GET
/api/drafter/agent_gaps

An agent's gap summary from Insights for Draft with DocsGPT's improve screen: expected gaps per topic and gap type over the last 30 days, the most first, read from the decision model's labels (no model call). Returns {"available", "reason", "conversations", "needed", "days", "rows": [{"topic", "gap_type", "expected", "turns", "previous"}]}: at most 10 rows, each with at least half an expected gap, counts rounded as Insights shows them; topic is null for an agent without a topic question, previous null until the period before has labelled answers. reason is disabled (the drafter is off), off_on_this_instance, agent_off (Insights is off for the agent) or not_enough (fewer than needed analysed conversations; conversations counts them), else null. Needs edit access to the agent.

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 gap summary

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