Skip to main content
POST
Create budget
Create a budget on an organization, group, member, service account or API key. Set entity_type and the IDs that entity type needs; any other ID returns 400. frequency is one of BUDGET_FREQUENCY_DAILY, BUDGET_FREQUENCY_WEEKLY, BUDGET_FREQUENCY_MONTHLY, BUDGET_FREQUENCY_QUARTERLY or BUDGET_FREQUENCY_FOREVER. amount is in USD, and 0 means no limit. An entity can have one budget per frequency, so creating a second one with the same frequency returns 409. To change a budget, use Update Budget Amount. Returns 201 with the new budget_id.
Creating budgets requires the Enterprise plan. Other plans get 403.
Budgets docs →

Authorizations

Authorization
string
header
required

API key for authentication

Body

application/json
entity_type
enum<string>
required

What a budget is set on. ORGANIZATION and GROUP limit the combined spend of everyone in them. ORGANIZATION_PER_MEMBER and GROUP_PER_MEMBER set the default limit for each member. ORGANIZATION_MEMBER and GROUP_MEMBER set one user's own limit, replacing the per-member default for that user. SERVICE_ACCOUNT and API_KEY limit one service account or API key.

Available options:
BUDGET_ENTITY_TYPE_ORGANIZATION,
BUDGET_ENTITY_TYPE_ORGANIZATION_PER_MEMBER,
BUDGET_ENTITY_TYPE_ORGANIZATION_MEMBER,
BUDGET_ENTITY_TYPE_GROUP,
BUDGET_ENTITY_TYPE_GROUP_PER_MEMBER,
BUDGET_ENTITY_TYPE_GROUP_MEMBER,
BUDGET_ENTITY_TYPE_SERVICE_ACCOUNT,
BUDGET_ENTITY_TYPE_API_KEY
frequency
enum<string>
required

How often the budget resets, in UTC: every day, every week starting Monday, every calendar month, every calendar quarter, or never (FOREVER counts all spend).

Available options:
BUDGET_FREQUENCY_DAILY,
BUDGET_FREQUENCY_WEEKLY,
BUDGET_FREQUENCY_MONTHLY,
BUDGET_FREQUENCY_QUARTERLY,
BUDGET_FREQUENCY_FOREVER
group_id
string<uuid>

Group ID. Required for GROUP, GROUP_PER_MEMBER and GROUP_MEMBER budgets.

api_key_id
string<uuid>

API key ID. Required for API_KEY budgets.

service_account_id
string<uuid>

Service account ID. Required for SERVICE_ACCOUNT budgets.

user_id
string

User ID of an organization member. Required for ORGANIZATION_MEMBER and GROUP_MEMBER budgets.

amount
number<double>

Budget amount in USD. 0 means no limit.

Required range: x >= 0
Example:

500

Response

Budget created successfully

budget_id
string<uuid>

ID of the new budget.

Last modified on December 3, 2026