Skip to main content
GET
/
partner
/
orgs
/
{orgId}
/
budgets
List spend budgets for an organization
curl --request GET \
  --url https://api.onecli.sh/v1/partner/orgs/{orgId}/budgets \
  --header 'Authorization: Bearer <token>'
[
  {
    "secretId": "<string>",
    "organizationId": "<string>",
    "limitCents": 500,
    "spentCents": 320
  }
]

Authorizations

Authorization
string
header
required

API key obtained from the dashboard or GET /user/api-key

Path Parameters

orgId
string
required

Response

List of budgets

secretId
string

The partner LLM key this budget caps.

organizationId
string
limitCents
integer

Spend ceiling in US cents (e.g. 500 = $5.00).

Example:

500

period
enum<string>
Available options:
monthly,
total
spentCents
integer

Spend so far this period, in US cents. Updates within a few seconds of usage.

Example:

320