API reference navigation
GET /v1/quotas

Account quotas

Access
Authenticated (self)
Cost
Free
Rate limit
Unlimited
Quota
None

Every quota metric with its limit, current usage, and remaining balance, so an agent can check its allowance before it acts.

Responses

  • 200 Quota status for every metric
    • quotas array of QuotaResult required

      Every quota metric this plan sets, with current usage.

      • metric string required

        The metric key. Stable; branch on this.

      • kind string 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.

      • period string

        The window a usage metric counts over. Absent on a capacity metric, which has no window.

      • limit integer required

        The ceiling this plan allows. -1 means unlimited.

      • used integer required

        How much has been consumed.

      • remaining integer required

        What is left. Check this before starting expensive work rather than discovering the limit mid-run.

      • exceeded boolean required

        True when the limit has been reached. Further calls against this metric are refused: 429 for a usage metric, 402 for a capacity one.

  • 401 No or invalid credential
    • code string required

      Stable 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_error
    • message string required

      Human-readable explanation of the refusal.

    • status integer required

      The HTTP status code, repeated in the body.

    • remedy object

      A self-serve path forward, when one exists (a 402 points at the credit top-up).

      • kind string required

        What 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_mailbox
      • url string required

        Where to go to clear the condition: an API path, or a web app page when only a person can.

  • 403 Missing required entitlement
    • code string required

      Stable 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_error
    • message string required

      Human-readable explanation of the refusal.

    • status integer required

      The HTTP status code, repeated in the body.

    • remedy object

      A self-serve path forward, when one exists (a 402 points at the credit top-up).

      • kind string required

        What 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_mailbox
      • url string required

        Where to go to clear the condition: an API path, or a web app page when only a person can.