LifeAstroAPILifeAstroAPI

← Troubleshooting

How to fix insufficient_credits (HTTP 402)

A pay-as-you-go or paid account does not have enough credits for this call.

What the API returns

{
  "error": {
    "code": "insufficient_credits",
    "message": "your credit balance is too low for this call — top up to continue",
    "request_id": "770372810e5f2a70"
  }
}

Why it happens

  • The plan quota and the wallet balance together are less than the cost of this call.

How to fix it

  1. Dashboard → Billing → top up the wallet.
  2. Alert on the X-Credits-Remaining response header in your logs well before it reaches zero.

Should your code retry?

Not automatically. Retrying will return the same error until credits are available; surface it to whoever manages the account.

See all codes on the troubleshooting index and the error envelope on Errors. Still stuck? Email [email protected] with the request_id.