Skip to main content
GET

Overview

Returns what one API key did over the last days days: how many tool calls it made, how many succeeded, its median latency, how much it spent, and the ten tools it called most. Each key is one agent’s identity in Danube, so this is the per-agent usage view. Only tool executions stamped with this key are counted. Synthetic probe calls are excluded. Auth: Requires authentication (JWT or API key). The key must belong to the caller.

Path Parameters

string
required
The API key UUID: the id from List API Keys, not the key value

Query Parameters

integer
default:"30"
Length of the window in days. Clamped to 1 through 90.

Response

object
integer
The window used, after clamping
integer
Tool calls in the window
integer
Calls with status success
number | null
successes / calls, rounded to four decimals. null when there were no calls.
number | null
Median execution time of successful calls, in seconds, rounded to three decimals. null when there were none.
integer
Calls that cost more than zero cents
integer
Total cost of the calls in the window, in cents
string | null
Earliest call in the window (ISO 8601). null when there were no calls.
string | null
Latest call in the window (ISO 8601). null when there were no calls.
array
Up to ten tools, most called first.

Errors

Example

The Python and TypeScript SDKs do not wrap this endpoint yet.