/v1/quotasAccount quotas
Every quota metric with its limit, current usage, and remaining balance, so an agent can check its allowance before it acts.
Responses
200Quota status for every metricquotasarray of QuotaResult requiredEvery quota metric this plan sets, with current usage.
metricstring requiredThe metric key. Stable; branch on this.
kindstring required`usage` = a counter over a period that resets, and exhausting it returns 429. `capacity` = a standing ceiling such as seats, and reaching it returns 402 because the fix is an upgrade rather than waiting.
periodstringThe window a usage metric counts over. Absent on a capacity metric, which has no window.
limitinteger requiredThe ceiling this plan allows. -1 means unlimited.
usedinteger requiredHow much has been consumed.
remaininginteger requiredWhat is left. Check this before starting expensive work rather than discovering the limit mid-run.
exceededboolean requiredTrue when the limit has been reached. Further calls against this metric are refused: 429 for a usage metric, 402 for a capacity one.
401No or invalid credentialcodestring requiredStable machine-readable error code. Branch on this, never on the numeric status.
bad_requestunauthorizedsignature_requiredpayment_requiredforbiddennot_foundconflictgonepayload_too_largeunprocessable_entitytoo_many_requestsinternal_errornot_implementedbilling_unavailablenot_contactablemailbox_link_unavailablemailbox_requiredmail_engine_unavailablewebhook_publisher_unavailabledatabase_unavailableclient_errormessagestring requiredHuman-readable explanation of the refusal.
statusinteger requiredThe HTTP status code, repeated in the body.
remedyobjectA self-serve path forward, when one exists (a 402 points at the credit top-up).
kindstring requiredWhat kind of remedy this is, so a client can route it: whether the caller can clear the condition through the API, or a person must act in the web app.
topupconnect_mailboxurlstring requiredWhere to go to clear the condition: an API path, or a web app page when only a person can.
403Missing required entitlementcodestring requiredStable machine-readable error code. Branch on this, never on the numeric status.
bad_requestunauthorizedsignature_requiredpayment_requiredforbiddennot_foundconflictgonepayload_too_largeunprocessable_entitytoo_many_requestsinternal_errornot_implementedbilling_unavailablenot_contactablemailbox_link_unavailablemailbox_requiredmail_engine_unavailablewebhook_publisher_unavailabledatabase_unavailableclient_errormessagestring requiredHuman-readable explanation of the refusal.
statusinteger requiredThe HTTP status code, repeated in the body.
remedyobjectA self-serve path forward, when one exists (a 402 points at the credit top-up).
kindstring requiredWhat kind of remedy this is, so a client can route it: whether the caller can clear the condition through the API, or a person must act in the web app.
topupconnect_mailboxurlstring requiredWhere to go to clear the condition: an API path, or a web app page when only a person can.