Get budget tree
curl -X GET "https://api.52-28-238-205.sslip.io/v1/budgets" \ -H "Cookie: <console session cookie>"Returns the organization, team and agent budgets as a tree with limit, reserved, spent and available amounts, plus confirmed spend per day for 30 days. Console session or API key with payment:read; team-scoped roles see their team only.
https://api.52-28-238-205.sslip.ioAuthorization
sessionCookie: <console session cookie>apiKeyAuthorization: Bearer sk_test_...
owner, admin, finance, approver (own team), developer, merchant_owner, merchant_developer, operator. The caller must hold this permission, or the call is refused with 403.uapg_session<token>Console session cookie (HttpOnly, SameSite=Lax)
Success.
application/json- response
tree*A budget tree node (org > team > agent). Budget fields are absent when the scope has no budget row.
daily*array<>[key: string]?anyPOSTSimulate mandate
Runs the same policy evaluation as live payments against draft fields, a mandate or an agent's mandate, and returns the decision, reason code and trace. Console session or API key with mandate:edit; nothing is reserved or sent.
POSTSet budget
Creates or sets the limit of an organization, team or agent budget. Console session or API key with budget:edit; a team or agent limit must fit under its parent.