Skip to main content
GET
Get cost breakdown for a specific agent over time

Authorizations

Authorization
string
header
required

API Key authorization header. Example: "Authorization: ApiKey {your-api-key}"

Authorization
string
header
required

OAuth 2.0 Bearer token. Example: "Authorization: Bearer {access-token}"

Path Parameters

agentId
integer<int32>
required

The agent ID

Query Parameters

startDate
string<date-time>

Start date for the range (ISO format, required)

endDate
string<date-time>

End date for the range (ISO format, required)

timeUnit
string
default:day

Time unit for grouping data: day (default), month

usageTypes
string

Filter by usage types (comma-separated)

Response

Returns the cost breakdown

Cost breakdown for a specific agent over time

agentId
integer<int32>

Agent ID

agentName
string | null

Agent name

labels
string[] | null

Date labels for the chart (e.g., "2024-01-01", "2024-01-02")

usageTypes
object[] | null

Usage data grouped by type

totalCost
number<double>

Total cost across all usage types

startDate
string<date-time>

Start date of the range

endDate
string<date-time>

End date of the range