Skip to Content
Docs

Stored execution traces (span timelines) for one Logs row

GET
/api/traces

Stored execution traces (span timelines) for one Logs row. Pass exactly one of message_id, request_id, activity_id, workflow_run_id or id; api_key_id scopes to an agent you own.

Personal access token scope: analytics:read.

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

message_id?string

Assistant message id

request_id?string

Request id (chat turn, scheduled run)

activity_id?string

Agent activity id (webhook and system rows)

workflow_run_id?string

Workflow run id

id?string

Trace id

api_key_id?string

Agent id to scope to

Response Body

Success

Example Request
curl -X GET 'http://localhost:7091/api/traces'
Example Response200
Empty

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`.

POST /api/get_conversation_insights POST

Insights from the decision model's labels: per label and option the expected count and its rate with a 95% interval widened by the label's calibration error, each label's tier, the same per time bucket, label coverage and the language mix. answer_status rates are over requests (not over greetings). 'available' is the operator switch (DECISION_ANALYTICS_ENABLED with the model available); 'enabled' is that and the agent's own analytics switch. The sweep labels only the last 'backfill_days' (from 'labelling_from'), so coverage splits unlabelled answers into 'unlabelled_recent_turns' (still to be labelled) and 'unlabelled_older_turns' (never labelled without a backfill). For an agent, 'one_pick' lists the options of its topic question (empty when it asks none) and 'overlapping' its topics that can overlap; each one's totals are under 'tag:&lt;id>'. Topics ('topic_effective') are reported for an agent only: each agent has its own list. 'series' is in 'bucket_unit': the filter's own unit while its buckets average 10 analyzed answers, else the next coarser one (minute to hour, hour to day, day to week). A week is named by its first day in the window and carries its last as 'bucket_end'. 'previous' holds answer_status, reaction and sentiment totals over the period of the same length just before the window. [Personal access token](/API/personal-access-tokens) scope: `analytics:read`.