Budgets
GET/v1/budgets

Get budget tree

View as .md
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.

Server URLhttps://api.52-28-238-205.sslip.io
GET/v1/budgetsBase URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
  • apiKeyAuthorization: Bearer sk_test_...
Requires permissionpayment:read
Held by 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.

Authorization

cookieuapg_session<token>

Console session cookie (HttpOnly, SameSite=Lax)

Response Body

Success.

application/json
  1. response
tree*

A budget tree node (org > team > agent). Budget fields are absent when the scope has no budget row.

daily*array<>
[key: string]?any