Skip to main content
GET
/
v1
/
agents
/
agents
/
{agentId}
/
costs
/
monthly
Get monthly cost breakdown for an agent
curl --request GET \
  --url https://api.devic.ai/v1/agents/agents/{agentId}/costs/monthly \
  --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 monthly costs should be retrieved

Query Parameters

months
integer<int32>
default:12

Number of months to include in the cost breakdown

Required range: 1 <= x <= 60

Response

Monthly 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)