insufficient_balance

HTTP status 402. This account has no credit left to send an SMS.

Fix

Ask the account owner to top up in the dashboard under Billing, or use an at_test_ key, which is free and sends nothing.

More

Billing is prepaid. Each SMS sent with a live key takes 10c from the account's balance, and a live send with no credit is refused before anything is sent. Only the account owner can add credit, in the dashboard under Billing. Test keys are never refused for credit.

What it looks like

{
  "error": {
    "type": "insufficient_balance",
    "message": "This account has no credit left to send an SMS.",
    "fix": "Ask the account owner to top up in the dashboard under Billing, or use an at_test_ key, which is free and sends nothing.",
    "docs_url": "https://authtext.com.au/docs/errors/insufficient_balance.md",
    "request_id": "req_01JD3XA7Q2M7Q8R5T6V1W0XYZA"
  }
}

The message and fix can be more specific than shown here. type never changes, so branch on that. Quote the request_id if you ask for help.

All errors: errors.

This page as markdown, for an AI agent: /docs/errors/insufficient_balance.md