FruxonDocs
AgentsBudget

Lists every budget cap for an agent — one per (origin, environment, period).

One round-trip for the studio budget panel: returns Production and Test budgets, agent-wide and per-environment, across all windows (daily/weekly/monthly), in a single array. Agent-wide rows carry `environment: null`; environment-scoped rows name their slug. Always includes the mandatory agent-wide daily, weekly, and monthly caps on each bucket. The single-bucket M:Fruxon.Server.Controllers.AgentBudgetController.Get(System.String,Fruxon.Model.AgentSessions.ExecutionOrigin,System.String,Fruxon.Model.AgentBudgets.BudgetPeriod) endpoint is still the right call when you only care about one cap; this one is for rendering the full configuration UI.

GET
/v1/tenants/{tenant}/agents/{agent}/budget/all
AuthorizationBearer <token>

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

In: header

Path Parameters

agent*string

The agent ID.

tenant*string

The tenant identifier

Response Body

curl -X GET "https://api.fruxon.com/v1/tenants/string/agents/string/budget/all"
[
  {
    "agentId": "string",
    "origin": "PRODUCTION",
    "environment": "string",
    "amount": 0,
    "period": "DAILY",
    "thresholdRules": [
      {
        "percent": 0
      }
    ],
    "enforceLimit": false,
    "currentPeriodCost": 0,
    "usagePercent": 0,
    "periodStart": 0,
    "periodEnd": 0,
    "createdAt": 0,
    "modifiedAt": 0
  }
]
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}