Billing
The plan, the credit balance and ledger, and invoices. Read only.
- The plan, this month's usage and the credit balanceGET
/v1/billingbilling.readThe figures are for the whole account that owns the key's workspace, never one workspace, and the month is the UTC calendar month.
billing_activesays whether a card is on file;scheduled_downgradeandlapseare null unless one is in progress. Billing is read-only over the API: to change the plan or the card, send a person to the pageGET /v1/billing/manage-urlreturns. - List payments and invoicesGET
/v1/billing/invoicesbilling.readEvery payment the payment provider holds for the account, newest first, 20 a page, failed ones included. Read
outcomefor what a payment came to;invoice_urlis set only where money moved. Passnext_cursorback ascursorfor the next page. - The credit balance and its ledgerGET
/v1/billing/creditsbilling.readcreditsis where the account stands now: the plan's monthly allowance used and remaining, the credits left, and when the allowance resets. Calls draw on the allowance first, then on credits; after both, a call is billed atcents_per_callwhen a card is on file, and calls stop when none is.grantsis the ledger of credits granted, newest first, 20 a page: passnext_cursorback ascursorfor the next. - The dashboard page for plan and payment changesGET
/v1/billing/manage-urlbilling.readThe API has no plan change, card update or credit purchase. This returns the dashboard's billing page for the key's workspace, where a signed-in person changes the plan, adds a card or buys credits.