Skip to main content
POST
Create a budget

Authorizations

Authorization
string
header
required

An opaque Omnara personal or organization bearer token.

Path Parameters

orgID
string
required
Pattern: ^org_[a-z2-7]{26}$

Body

application/json
scope
object
required
interval
enum<string>
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.

Available options:
day,
week,
month,
lifetime
amount_usd
string
required

Amount in USD as a positive decimal string.

Pattern: ^(0|[1-9][0-9]{0,14})(\.[0-9]{1,15})?$

Response

Budget created.

id
string
required
Pattern: ^bdg_[a-z2-7]{26}$
org_id
string
required
Pattern: ^org_[a-z2-7]{26}$
scope
object
required
interval
enum<string>
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.

Available options:
day,
week,
month,
lifetime
amount_usd
string
required

Amount in USD as a positive decimal string.

Pattern: ^(0|[1-9][0-9]{0,14})(\.[0-9]{1,15})?$
created_at
string<date-time>
required
updated_at
string<date-time>
required
usage
object

Spend in the current interval. Populated when the budget is returned by the list or get endpoint.