Docs

GET /billing/subscription

Console: the signed-in account’s plan and subscription state.

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
billing_configuredbooleanyes
billing_term"month" | "year" | nullyes
entitlementsobjectyes
entitlements.included_emails_per_monthintegeryes
entitlements.max_domainsinteger | nullyes
entitlements.max_seatsintegeryes
entitlements.overage_minor_per_1000_emailsinteger | nullyes
entitlements.retention_daysintegeryes
entitlements.tier"none" | "starter" | "pro" | "scale"yes
needs_plan_selectionbooleanyes
plan_status"none" | "trialing" | "active" | "past_due" | "canceled"yes
plansarray<object>yes
plans[].featuredbooleanyes
plans[].included_emails_per_monthintegeryes
plans[].max_domainsinteger | nullyes
plans[].max_seatsintegeryes
plans[].namestringyes
plans[].pricesobjectyes
plans[].retention_daysintegeryes
plans[].tier"starter" | "pro" | "scale"yes
plans[].trial_eligiblebooleanyes
purchasablearray<object>yes
purchasable[].included_emails_per_monthintegeryes
purchasable[].monthly_price_minorintegeryes
purchasable[].tier"starter" | "pro" | "scale"yes
subscriptionobject | nullyes
terms_on_salearray<"month" | "year">yes
tier"none" | "starter" | "pro" | "scale"yes
trialobjectyes
trial.daysintegeryes
trial.days_leftinteger | nullyes
trial.eligiblebooleanyes
trial.email_capintegeryes
trial.emails_usedinteger | nullyes
trial.ends_atstring | nullyes
trial.started_atstring | nullyes
viewerobjectyes
viewer.can_purchasebooleanyes
viewer.can_start_trialbooleanyes
viewer.role"owner" | "admin" | "viewer" | nullyes

Errors

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