agent_desk
Update Agent Desk Overage
Set the payer org's overage credit allowance — the customer's opt-in to pay per credit past the plan's bundle (Billing page). Off by default.
Money fails closed, so three refusals guard the write:
- get_domain alone admits AGENCY-GRANT holders, and a grant never confers billing mutation (models.py) — the caller must BELONG to the domain's org (or be staff), the binding payments.py uses;
- a domain whose bills land on ANOTHER org (agency billing) cannot move the payer's allowance;
- a plan row with no metered Stripe price cannot ENABLE overage: the gate would serve credits nothing can bill. Disabling (0/null) always works.
Takes effect on the next ask: the serving gate reads the org row live.
patch/api/domains/{domain_id}/agent-desk/usage/overage
Request
- Base URLhttps://api-v1.unusual.ai (the document declares no server; this is the origin it was published from)
- AuthOAuth 2PasswordToken URL: /auth/login
Path parameters
domain_idstring required
Headers
x-view-asstring nullable
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.