FruxonDocs
AgentsBudget

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

Returns PRODUCTION and TEST caps for all daily, weekly and monthly windows. Agent-wide entries have environment=null; environment-specific entries name their slug. Includes mandatory agent-wide caps. GET budget returns a single cap.

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
}