Skip to main content
POST
Create a Budget

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

checkfu-version
enum<string>
required
Available options:
2026-08-27
idempotency-key
string
Maximum string length: 255

Body

application/json
scope
object
required
metric
enum<string>
required
Available options:
model_tokens,
model_spend,
session_runtime_ms,
total_spend
window
object
required
hard_threshold
object
required
soft_threshold
object | null

Response

a session_lifetime window only on a session-scoped Budget

id
string
required
Pattern: ^bgt_[0-9a-f]{32}$
workspace_id
string
required
Pattern: ^wrkspc_[0-9a-f]{32}$
scope
object
required
metric
enum<string>
required
Available options:
model_tokens,
model_spend,
session_runtime_ms,
total_spend
window
object
required
soft_threshold
object | null
required
hard_threshold
object
required
state
enum<string>
required
Available options:
active,
paused
version
integer
required
Required range: x > 0
created_at
string
required
updated_at
string
required