Skip to main content
POST
Approve the cut

Authorizations

Authorization
string
header
required

A workspace API key.

Body

application/json
{key}
any

Response

Failure. code is one of: invalid_request.

success
any
required
error
string
required

Human-readable. Copy may change between releases — do not match on it.

code
enum<string>
required

Stable machine-readable cause. Branch on this.

Available options:
invalid_request,
unauthorized,
forbidden,
origin_not_allowed,
not_found,
conflict,
payload_too_large,
insufficient_credits,
budget_capped,
rate_limited,
capability_unavailable,
upstream_unavailable,
upstream_error,
internal_error
details
any

Optional structured context, e.g. the credits shortfall.