Lists every spend limit an automation has — at most one per window.
Shortest window first. Empty for an automation nobody has set a limit on: automations get none by default, unlike agents. The whole set is one page.
Authorization
Bearer JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.
In: header
Path Parameters
The automation (trigger) identifier.
uuidThe tenant identifier
Query Parameters
The maximum number of items to return per page
int32int32Opaque pagination token returned by an external service. Pass it back unchanged rather than interpreting it as an offset.
Response Body
curl -X GET "https://api.fruxon.com/v1/tenants/string/triggers/497f6eca-6276-4993-bfeb-53cbbbba6f08/budget/all"{
"items": [
{
"automationId": "00000000-0000-0000-0000-000000000000",
"amount": 0,
"period": "DAILY",
"thresholdRules": [],
"enforceLimit": false,
"currentPeriodCost": 0,
"usagePercent": 0,
"periodStart": 0,
"periodEnd": 0,
"createdAt": 0,
"modifiedAt": 0
}
],
"nextPageToken": "string",
"totalCount": 0
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}Gets one of an automation's spend limits, with what it has spent in the current window
An automation spends through several agents — the ones its stages run, the one that holds its questions as conversations, the one that writes its report — and each agent keeps its own limits. This limit is on the automation as a whole: every production run the automation caused counts, whichever agent made it, and only those. An agent's limits still apply beside it; a run has to fit under both. A `null` body means no limit is set for the window, not that the automation is free to spend: its agents' limits still bind. A 404 means the automation does not exist or the caller cannot reach its Application.
Removes one of an automation's spend limits
Any of an automation's limits can be removed; removing one that is not set does nothing. The automation's runs and what they cost are unaffected, and its agents' own limits still apply.