Levain LabsLevain Labs
API ReferenceAnalytics

Platform Agents Rollup

Platform-agent activity for the period, grouped by agent.

Groups the runs Levain dispatched on the workspace's behalf by platform agent, with total cost and the customer agents those runs operated on (when any).

GET
/api/v1/analytics/platform-agents

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Query Parameters

start?|null
end?|null

Header Parameters

X-API-Key?string|null

Response Body

application/json

application/json

curl -X GET "https://api.levainlabs.com/api/v1/analytics/platform-agents"
[
  {
    "platform_agent_id": "string",
    "platform_agent_slug": "string",
    "platform_agent_name": "string",
    "run_count": 0,
    "cost_usd": 0,
    "billed_usd": 0,
    "tokens_in": 0,
    "tokens_out": 0,
    "targets": []
  }
]
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}