Get agent consumption data

Base URL
https://{kibana_url}
Auth

Returns paginated, per-conversation token consumption data for a given agent. Includes input/output token counts, round counts, LLM call counts, and warnings for conversations with high token usage. Requires the manageAgents privilege. To learn more about monitoring agent token usage, refer to the monitor usage documentation.

Required authorization

Privileges agentBuilder:manageAgents

Path parameters

space_id string optional

An identifier for the space. If space_id is not provided in the URL, the default space is used. Refer to Spaces for more information.

agent_id string required

The unique identifier of the agent.

Header parameters

kbn-xsrf string required

A required header to protect against CSRF attacks

Request body

has_warnings boolean

Filter to conversations with or without high-token warnings.

Free-text search filter on conversation title.

search_after object[] · max items: 10000

Cursor for pagination. Pass the search_after value from the previous response.

size number · min: 1 · max: 100 · default: 25

Number of results per page.

sort_field enum · default: updated_at

Field to sort results by.

Values: updated_at total_tokens round_count
sort_order enum · default: desc

Sort direction.

Values: asc desc
usernames string[] · max items: 10000

Filter results to conversations by these usernames.

Response

200

Indicates a successful response

application/json
Base URL
https://{kibana_url}