---
title: "Create a budget"
method: POST
path: "/orgs/{orgID}/budgets"
tags: ["Organizations and Projects"]
---

# Create a budget

`POST /orgs/{orgID}/budgets`

## Request

- Base URL: `https://api.omnara.com/v1`
- URL: `https://api.omnara.com/v1/orgs/{orgID}/budgets`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `__Host-omnara_session` and API key in header `X-Omnara-Csrf`

Sets a model spend budget for the organization, a project, an agent profile, or a top-level agent. Profile and agent budgets include subagents. Once spend in the current interval reaches the budget, new model calls in that scope stop until the budget is raised or removed, or the interval resets; calls already running finish. Each scope can have one budget per interval; duplicates return 409.

## Path parameters

- `orgID` string, required

## Request body

- CreateBudgetRequest
  - `scope` union, required
    - OrgBudgetScope
      - `type` 'org', required
    - ProjectBudgetScope
      - `type` 'project', required
      - `project_id` string, required: Project ID (proj_...).
    - AgentProfileBudgetScope: Counts the profile's top-level agents and their subagents.
      - `type` 'profile', required
      - `project_id` string, required: Project ID (proj_...).
      - `agent_profile_id` string, required
    - AgentBudgetScope: Counts a top-level agent and its subagents.
      - `type` 'agent', required
      - `project_id` string, required: Project ID (proj_...).
      - `agent_id` string, required
  - `interval` 'day' | 'week' | 'month' | 'lifetime', required: How often spend resets, in UTC: day at midnight, week on Monday, month on the 1st. lifetime never resets and counts spend recorded since budgets became available.
  - `amount_usd` string, required: Amount in USD as a positive decimal string.

## Response `201`

Budget created.

- Budget
  - `id` string, required
  - `org_id` string, required
  - `scope` union, required
    - OrgBudgetScope
      - `type` 'org', required
    - ProjectBudgetScope
      - `type` 'project', required
      - `project_id` string, required: Project ID (proj_...).
    - AgentProfileBudgetScope: Counts the profile's top-level agents and their subagents.
      - `type` 'profile', required
      - `project_id` string, required: Project ID (proj_...).
      - `agent_profile_id` string, required
    - AgentBudgetScope: Counts a top-level agent and its subagents.
      - `type` 'agent', required
      - `project_id` string, required: Project ID (proj_...).
      - `agent_id` string, required
  - `interval` 'day' | 'week' | 'month' | 'lifetime', required: How often spend resets, in UTC: day at midnight, week on Monday, month on the 1st. lifetime never resets and counts spend recorded since budgets became available.
  - `amount_usd` string, required: Amount in USD as a positive decimal string.
  - `usage` BudgetUsage: Spend in the current interval. Populated when the budget is returned by the list or get endpoint.
    - `amount_usd` string, required: Model spend in USD in the current interval. Each call counts the model's own pricing when set, otherwise the provider-reported cost, otherwise a list-price estimate. Calls that could not be priced contribute nothing.
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `400`: The request was invalid.
- `401`: Authentication is required or invalid.
- `403`: The authenticated principal is not authorized.
- `404`: The requested resource was not found or is not visible.
- `409`: The request conflicts with current resource state or idempotency history.
- `503`: The service dependency required to satisfy the request is unavailable.
- `4XX`: Any other client error. The body carries the shared Error envelope restricted to client error codes; statuses with a dedicated response above are documented precisely.
- `5XX`: Any other server error. The body carries the shared Error envelope restricted to server error codes.

## Changes

- **2026-11-24** `69f93619121b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/omnara/apis/omnara-api-2/changes/orgs/:orgID/budgets/post.md)

---

[API](https://skmtc.dev/omnara/apis/omnara-api-2.md) - [All operations](https://skmtc.dev/omnara/apis/omnara-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/omnara/apis/omnara-api-2/revisions/343aebb1dff1?raw)
