GET /api/analytics/topics
Every topic an agent's conversations are labelled with, sorted by name, each with the Logs 'label' filter that selects it: topic:<name> for a topic that doesn't overlap (its own topics and source folders), tag:<id> for one that can. Needs the agent's logs; an agent the caller can't see gives an empty list.
Personal access token scope: analytics:read.
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
Success
curl -X GET 'http://localhost:7091/api/analytics/topics'Update a folder PUT
Update a folder. [Personal access token](/API/personal-access-tokens) scope: `agents:write`.
GET /api/analytics/topic_folders GET
The folders of an agent's sources, largest first: one per documentation section, described by up to five page titles. They fill the agent's topic question after its own topics; the settings list them so the owner can hide or edit them. Needs edit access to the agent. [Personal access token](/API/personal-access-tokens) scope: `agents:read`.