Get current usage

GET/api/v1/billing/usage
Requires anorganization API keywith the scopeaccount:read

What your organization has sent this period, against its plan allowance and any purchased credits.

Request

GET/api/v1/billing/usage
curl -X GET 'https://app.mailyte.com/api/v1/billing/usage' \
  -H 'Authorization: Bearer mk_live_YOUR_API_KEY'
The key names its own organization, so no X-Organization-ID header is needed.

Response

Success.

  • dataobject
    • objectstringusage
    • mailboxesobject
      • free_usedinteger

        Free mailboxes in use.

      • free_limitinteger

        How many free mailboxes you may have: five, or more if you had more before the pricing change. Buying seats does not change it. Null means no limit.

      • seatsobject

        Paid seats, per tier.

        • standardobject

          Seats of the Standard tier.

        • proobject

          Seats of the Pro tier.

        • workplaceobject

          Seats of the Workplace tier.

    • send_creditsobject
      • balanceinteger

        Send credits left, counted in emails, not money. Null means unknown.

      • sourcestringenforcer | ledger

        Where balance came from. enforcer: the live count on the mail server. ledger: our own copy, used when the mail server could not be reached; it can be up to 15 minutes behind.

      • used_this_monthinteger

        Credits used this calendar month. Null means the mail server could not be reached; try again.

    • app_sendobject

      Email sent through the API and webmail, not through SMTP. If the mail server cannot be reached, every count here is null at once; try again rather than reading it as 0.

      • monthlyobject
        • includedinteger

          Emails included each month. 0 when your plan has no monthly allowance.

        • usedinteger

          Emails sent this month. Null means the mail server could not be reached.

      • dailyobject
        • includedinteger

          How many emails you may send today. This is the limit actually in force, so it can differ from the free daily emails on the pricing page: those apply only to accounts with no credits and no Send plan, and 0 here is then correct. Null means the mail server could not be reached.

        • usedinteger

          Emails sent today. Null means the mail server could not be reached.

    • checksobject

      Checks, where one check looks at one address to see whether its mailbox exists. They are used in this order: this month's plan checks, then bought checks, then older send credits. Every figure here counts checks. Null means they could not be read just now; try again.

      • plan_leftinteger

        This month's plan checks still left. Months are UTC months. 0 when your plan includes none, or all are used.

      • plan_limitinteger

        Checks your Marketing plan includes each UTC month. 0 when your plan includes none.

      • boughtinteger

        Checks you bought, or that we added for you. They never expire, and are used after this month's plan checks.

      • credit_fallbackinteger

        How many checks your send credits can still pay for, counted in checks. Only credits from before checks launched can pay, at 10 credits a check, and we always leave you at least 1 credit. Used last.

      • forecast_daysinteger

        About how many days your checks will last, at your rate over the last 7 days. Null when checks are not on yet, or you used none in the last 7 days.

      • ran_outboolean

        true when you have no checks left and a check could not be made for want of one this month (UTC). New contacts are then added and marked not_checked. Buying checks, or next month's plan checks, ends it.

      • protectionobject

        Your Bounce protection switch: whether each new contact is checked, using one check.

        • enabledboolean

          Whether the switch is on for your account.

        • is_defaultboolean

          true while you have not chosen: it is then on when your Marketing plan includes checks, and off otherwise.

      • upgradeobject

        A bigger Marketing plan that would have cost you less this month (UTC): you spent more on check packs than the next plan costs, and it includes more checks every month. Null when there is no such plan.

        • spent_minorinteger

          What you spent on check packs this month, in the currency's minor unit (kobo, cents).

        • currencystring

          ISO 4217 code of both amounts.

        • plan_keystring

          The suggested Marketing plan's product key.

        • plan_checksinteger

          Checks that plan includes each month.

        • price_difference_minorinteger

          What that plan costs a month on top of yours, in the minor unit.

Returned inside the standard envelope.

Errors

StatusWhen
401The API key is missing, unknown, revoked or expired. All four answer identically, on purpose: distinguishing them would confirm which keys exist.
403The key is valid but may not do this: it lacks the required scope, its IP allowlist does not include you, or this endpoint does not accept API keys.
404No such resource in this organization.
422The request was understood but the values were not acceptable.
429Too many requests, or the organization has spent its sending allowance. `Retry-After` says how long to wait.

Every status, with what causes it and what to do, is on the error reference.