Check all budgets for a session
PreviewOperate durable execution, schedules, sandbox infrastructure, budgets, payments and audit logs.
GET
/v1/sessions/{session_id}/budget-checkSee authentication for credentials and permissions.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”session_id
required
string
Prefixed public identifier
Responses
200Success
Success
Media typeapplication/json
Result of checking all budgets for a session.
object
action
required
Most restrictive action across all budgets.
string
balance
Remaining balance on the most restrictive budget.
number | null format: double
budget_id
Budget that triggered the action.
string | null
currency
Currency of the most restrictive budget.
string | null
error_code
Stable error code for user-facing budget failures.
string | null
error_fields
Structured interpolation fields for localized error rendering.
object | null
message
Human-readable message (set when action != “continue”).
string | null
Example generated
{ "action": "example", "balance": 1, "budget_id": "example", "currency": "example", "error_code": "example", "error_fields": "example", "message": "example"}