Skip to main content
GET
/
v1
/
agents
/
agents
/
{agentId}
/
costs
/
daily
Get daily cost breakdown for an agent
curl --request GET \
  --url https://api.devic.ai/v1/agents/agents/{agentId}/costs/daily \
  --header 'Authorization: Bearer <token>'
[
  {
    "date": "2023-12-25",
    "cost": 123,
    "currency": "<string>"
  }
]

Authorizations

Authorization
string
header
required

Use JWT token for 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)