Skip to Content
📘 Infrabox developer docs — API reference for mailbox & domain infrastructure.
API ReferenceBilling & Account

Billing & Account

Account info, subscription/plan, and wallet (prepaid credit balance used for domains, mailboxes, and warmup).

Account

MethodPathDescription
GET/v1/api/accountGet account details — credits, plan, webhook URL
PUT/v1/api/account/webhookUpdate your team’s webhook URL
curl https://api.infrabox.software/v1/api/account \ -H "Authorization: Bearer YOUR_API_KEY"

Response includes credits_remaining, credits_per_domain, credits_per_google_mailbox, the current plan, and auto-topup configuration — useful to check before a large bulk-provisioning call so it doesn’t fail partway through on insufficient credits.

Billing

MethodPathDescription
GET/v1/api/billing/pricing-plansList available plans
GET/v1/api/billing/subscriptionGet current subscription
POST/v1/api/billing/subscription/changeChange plan
POST/v1/api/billing/subscription/cancelCancel subscription
GET/v1/api/billing/walletGet wallet balance
POST/v1/api/billing/walletAdd credits to the wallet
GET/v1/api/billing/wallet/statusGet top-up session status
GET/v1/api/billing/wallet/logsWallet transaction history
POST/v1/api/billing/auto-topupConfigure automatic top-up
GET/v1/api/billing/manageGet a link to the billing portal (invoices, payment method)

Errors

StatusMeaning
400Invalid body
401Missing/invalid API key
402Insufficient credits/wallet balance for the requested action
500Internal error
Last updated on