FruxonDocs
AgentsRevisions

Gets agent revision cost split by environment.

At least one `environment` query parameter is required; repeat the param to compare multiple environments side-by-side (`?environment=production&environment=staging`). Unknown slugs (not present in the tenant's environments table) are rejected with 400 — silent-empty would mask FE typos that drift from real config.

GET
/v1/tenants/{tenant}/agents/{agent}/revisions/{revision}/environmentCostTimeseries
AuthorizationBearer <token>

JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.

In: header

Path Parameters

agent*string

Agent identifier.

revision*string

Revision number, or * for all revisions.

tenant*string

The tenant identifier

Query Parameters

environment?array<string>

One or more environment slugs to compare.

interval?string

Bucket granularity (hour, day, week). Defaults to day.

Value in"UNSPECIFIED" | "HOUR" | "DAY" | "WEEK"
from?integer

Window start as Unix milliseconds (inclusive). Defaults to 30 days before to.

Formatint64
to?integer

Window end as Unix milliseconds (exclusive). Defaults to now.

Formatint64
origin?string

Execution origin to roll up. Defaults to PRODUCTION. Pass TEST for developer test spend.

Value in"UNSPECIFIED" | "PRODUCTION" | "TEST"

Response Body

curl -X GET "https://api.fruxon.com/v1/tenants/string/agents/string/revisions/string/environmentCostTimeseries"
{
  "agentId": "string",
  "revision": 0,
  "interval": "HOUR",
  "window": {
    "fromMs": 0,
    "toMs": 0
  },
  "environments": [
    {
      "slug": "string",
      "cost": [],
      "executions": []
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
Empty
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}