Skip to main content
GET
Read the organization's spend budget

Authorizations

Authorization
string
header
required

MCPJam API key (sk_…). Create one at Settings → API keys. Guest sessions cannot use the API, and API keys cannot manage other API keys.

Path Parameters

organizationId
string
required

ID of the organization, from GET /organizations.

Response

The organization's spend budget.

An organization's ceiling on MCPJam-billed spend for the current billing window. Amounts appear in both USD and credits (1 credit = 1 cent); the credit figures are what the ledger actually stores.

capUsd
number | null
required

The ceiling in USD. null means uncapped.

capCredits
integer | null
required

The same ceiling as the ledger stores it.

alertPercents
integer[]
required

Whole percents of the cap that notify owners and admins. Reaching the cap always notifies, whether or not 100 is listed.

spentUsd
number
required

MCPJam-billed spend so far in this window, in USD.

spentCredits
integer
required

The same spend as the ledger counted it.

windowStartAt
integer
required

Start of the current billing window (epoch ms). Team and enterprise organizations run on their own subscription cycle; everyone else on the UTC month.

windowEndsAt
integer
required

When the window resets and the counter returns to zero (epoch ms).

alertedPercents
integer[]
required

Thresholds already announced this window. Each fires once per window.

capReachedAt
integer | null
required

When the cap was reached this window, or null.

updatedAt
integer | null
required

When the budget was last changed (epoch ms).

minCapUsd
number
required

The smallest budget the platform accepts.

maxCapUsd
number
required

The largest budget the platform accepts.

supported
boolean
required

False for a personal organization, which cannot have a budget.