Skip to main content
GET
Get a mandate's remaining budget (ALPHA)

Authorizations

x-api-key
string
header
required

Path Parameters

mandate_id
string
required

Response

The mandate's budget as of as_of.

A mandate's remaining spend budget at a point in time. Advisory: nothing here reserves budget, and the mandate gate remains the authority at fire time.

mandate_id
string
required
version
integer
required

The version whose caps these figures are metered against. Amending a mandate changes the caps but NOT the spend — usage accrues to the mandate, so a raised limit leaves the window's consumption intact and a lowered one can leave zero remaining rather than a negative balance.

as_of
integer<int64>
required

Unix time the windows were derived and the sums taken. Budget is a function of time — a MONTHLY bucket empties at the rollover — so the figures below are only interpretable against this instant.

window
string
required

The rule's window verbatim (NONE, DAILY, WEEKLY, MONTHLY) — the period each bucket spans and the cadence at which budget resets. NONE is a lifetime cap: one bucket, labelled lifetime, that never resets.

per_target
object[]
required

Per-payee lines, metered against max_amount_per_target_in_window and max_count_per_target_in_window. Every configured payee appears for the current window even if it has never been paid, so an empty budget is reported as zeros rather than as a missing line.

aggregate
object[]
required

One line per window bucket summing EVERY payee, metered against the agent-wide max_amount_in_window and max_count_in_window. This is the ceiling on the agent as a whole; honour it alongside per_target, never instead of it.