Skip to main content
GET
Error

Authorizations

Authorization
string
header
required

A scoped AgentEye API key. Mint one in the dashboard under Settings → API keys, or with POST /v1/keys. Each endpoint names the permission it requires; a key without it gets 403 and a required_permission field naming what was missing.

Query Parameters

start_event_type
string
required

Required. The event type that opens a span, e.g. tool_use.

end_event_type
string
required

Required. The event type that closes it, e.g. tool_result. Must differ from start_event_type.

session_id
string

Comma-separated session ids.

agent_id
string

Comma-separated agent ids.

environment
string

Comma-separated environments.

ts_from
string

RFC 3339 lower bound. Omit to span back to the oldest matching event.

ts_to
string

RFC 3339 upper bound. Defaults to now.

bin_count
integer<int64>

Time bins on the X axis. Default 24, clamped to 1–168.

outcome
string

success, error, or all (the default, and the fallback for an unrecognized value).

model
string

Comma-separated exact model names. Applies to both legs of a pair.

tool_name
string

Comma-separated exact tool names. Applies to both legs of a pair.

hook_name
string

Comma-separated exact hook names. Applies to both legs of a pair.

trigger_event
string

Comma-separated exact trigger events. Selects pairs whose opening event carries one of them.

distribution_key_paths
string

Comma-separated payload keys to group the distribution by, first one present wins, e.g. tool_name,tool. Omit to skip the distribution.

pair_key_paths
string

Comma-separated payload keys used to match a start event to its end event, first one present wins. Defaults to tool_call_id,request_id,hook_id,id; events carrying none of them pair in order within their session.

payload_contains
string

Case-insensitive substring filter on a payload field, written <key>:<text>. Applies to both legs of a pair.

payload_sum_paths
string

Comma-separated <name>:<field> pairs adding totals under sums. Only duration_ms, input_tokens and output_tokens can be summed.

Response

The latency rollup: bounds, bins, heatmap, summary, events, and optionally distribution.