Docs

GET /billing

Plan, usage against each published limit, and what the next tier changes.

Parameters

This operation takes no parameters.

Responses

  • 200 Success
  • 400 Validation error
  • 401 Missing API key
  • 403 Forbidden
  • 404 Not found
  • 409 Conflict
  • 429 Rate limited
  • 500 Internal server error

Response headers

  • ratelimit-limit — Messages this API key may spend in one 60-second window.
  • ratelimit-remaining — Messages left in the current window.
  • ratelimit-reset — Seconds until the current window resets and the budget refills.

200 body

FieldTypeRequiredNotes
currencystringyes
limitsarray<object>yes
limits[].at_limitstringyes
limits[].labelstringyes
limits[].limitinteger | nullyes
limits[].metric"emails_per_month" | "domains" | "seats" | "retention_days"yes
limits[].unitstringyes
limits[].usedintegeryes
next_tierobject | nullyes
overageobjectyes
overage.auto_chargesbooleanyes
overage.policystringyes
overage.textstringyes
paymentobjectyes
payment.textstringyes
payment.writes_enabledbooleanyes
periodobjectyes
period.daysintegeryes
period.resets_atstringyes
period.started_atstringyes
planobjectyes
plan.idstringyes
plan.included_emails_per_monthintegeryes
plan.max_domainsinteger | nullyes
plan.max_seatsintegeryes
plan.monthly_price_minorintegeryes
plan.namestringyes
plan.overage_minor_per_1000_emailsinteger | nullyes
plan.retention_daysintegeryes
pricing_document_versionintegeryes

Errors

Codes in the catalogue that answer with one of this operation’s error statuses. Every one of them carries a fix.