Skip to main content
GET
/
api
/
costs
/
by-agent
Get Cost By Agent
curl --request GET \
  --url http://localhost:8000/api/costs/by-agent
[
  {
    "agent_id": "<string>",
    "agent_name": "<string>",
    "total_cost": "<string>",
    "session_count": 123,
    "event_count": 123
  }
]

Headers

x-user-id
string | null

Response

Successful Response

agent_id
string
required
agent_name
string
required
total_cost
string
required
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
session_count
integer
required
event_count
integer
required