API reference
Billing
12 operations. Each page has the request, the response, the errors and examples in curl, TypeScript, Python and the CLI.
- GETGet the credit balance
/v1/orgs/{org_id}/billing/balance - GETBilling settings, credit standing, spend limits, auto-recharge and limits
/v1/orgs/{org_id}/billing/account - PATCHSet the low-balance alert threshold and spend limits (null clears)
/v1/orgs/{org_id}/billing/account - GETThe rate-limit level: per-minute limits in force and what reaches the next level
/v1/orgs/{org_id}/billing/rate-level - PATCHTurn auto-recharge on or off (threshold → target, monthly cap, saved card)
/v1/orgs/{org_id}/billing/auto-recharge - POSTStart a top-up: returns a payment with the checkout URL to send the customer to
/v1/orgs/{org_id}/billing/top-ups - GETPayment history (top-ups and auto-recharges) with receipt links
/v1/orgs/{org_id}/billing/payments - GETGet a payment (the console polls this after Checkout)
/v1/orgs/{org_id}/billing/payments/{payment_id} - GETSaved cards
/v1/orgs/{org_id}/billing/payment-methods - POSTRemove a saved card (turns off auto-recharge if it used this card)
/v1/orgs/{org_id}/billing/payment-methods/{payment_method_id}/detach - POSTRedeem a promo code for promotional credit
/v1/orgs/{org_id}/billing/promo-redemptions - GETBilling emails sent to the organization (low balance, out of credit, payments …)
/v1/orgs/{org_id}/billing/notices