Skip to main content
GET
Get daily cost breakdown for an agent

Authorizations

Authorization
string
header
required

An API key from your Devic console, sent as Authorization: Bearer <key>. An embedded front end sends a tenant-session token instead, so no API key reaches the browser, and an OAuth integration sends its access token. Missing, invalid or expired credentials get a 401. See Authentication.

Path Parameters

agentId
string<uuid>
required

UUID of the agent whose daily costs should be retrieved

Query Parameters

days
integer<int32>
default:30

Number of days to include in the cost breakdown

Required range: 1 <= x <= 365

Response

Daily cost breakdown for the specified agent

date
string<date>

Date for this cost entry

cost
number<float>

Cost incurred on this date

currency
string

Currency code (e.g., USD, EUR)