← Errors and troubleshooting

HTTP 429 · QUOTA_EXCEEDED

QUOTA_EXCEEDED: your account has used this month's requests

Every plan includes a number of requests per calendar month. When your account reaches it, every call answers 429 QUOTA_EXCEEDED until the month rolls over or the plan changes. Unlike a rate limit, waiting a minute does not help.

Updated · every example recorded from a real API call

HTTP status
429 Too Many Requests (same status as RATE_LIMITED - switch on error.code)
Retry?
Not in a loop. Retry-After gives the seconds until 00:00 UTC on the 1st of next month; upgrading lifts the limit on the next request.
Scope
Your whole account: all keys share one monthly count.
What counts
Successful (2xx) calls only. Refused (4xx, 429) and failed (5xx) calls are logged but never billed.

The response

A Free account after 1,000 successful calls this month:

json
{
  "request_id": "req_01M8RK47NA7FJWBGEP2PB88BPQ",
  "error": {
    "code": "QUOTA_EXCEEDED",
    "message": "Monthly quota of 1000 exhausted (1000/1000)",
    "details": {
      "used": 1000,
      "limit": 1000,
      "upgrade_url": "/dashboard/billing/plans"
    }
  }
}

details.used and details.limit are numbers you can show directly. details.upgrade_url is a path in the AstroNode dashboard (the same one PLAN_REQUIRED returns) - prefix the dashboard origin before showing it to a developer, and keep it away from your own end users. The headers say when the limit ends:

http
HTTP/1.1 429 Too Many Requests
x-request-id: req_01M8RK47NA7FJWBGEP2PB88BPQ
x-ratelimit-limit: 60
x-ratelimit-remaining: 59
x-ratelimit-reset: 1796121757
retry-after: 2639903

retry-after is the number of seconds until the quota resets at the start of next month (here about 30.6 days). Use it to show the user a date rather than to schedule a retry. The x-ratelimit-* headers describe the separate per-minute window - this key still had 59 of its 60 slots, because the quota, not the rate limit, refused the call.

Monthly request quota by plan
PlanRequests per month (per account)
Free1,000
Hobby10,000
Starter50,000
Pro250,000

Three things that surprise people

A new key does not reset it. The count is per account. We created a second key on the same Free account and called once more:

json
{
  "request_id": "req_01M8RK47QBG6FAVPVDQ9RAR9H4",
  "error": {
    "code": "QUOTA_EXCEEDED",
    "message": "Monthly quota of 1000 exhausted (1000/1000)",
    "details": {
      "used": 1000,
      "limit": 1000,
      "upgrade_url": "/dashboard/billing/plans"
    }
  }
}

Refusals are free. Note used: 1000, not 1001: the first refused call was logged in the account's usage history but not billed. Only calls that return 2xx consume quota; 400s, 401s, 403 PLAN_REQUIRED, 404s, 409s, 429s and 5xx failures are all logged and none of them is billed. In our test a Free key fired 62 requests in one second: 60 succeeded, 2 were rate-limited, and the month's billable count went up by 60. The dashboard's quota bar uses the same billable count.

The month is UTC. It starts at 00:00 UTC on the 1st, which is 05:30 IST - an Indian business still has five and a half hours of the old month left when the quota resets.

What to do

  • Stop calling: every further request is refused until the reset, and your users are better served by a cached answer or a clear message.
  • Cache by request body. Calculations are deterministic (see determinism), so a chart computed once never needs computing again for the same input.
  • Watch usage before it runs out: the dashboard shows the same billable per-account count the API enforces.
  • Upgrade if the volume is real - the new plan applies on the next request. Use pricing to size it.

The chat API's daily and hourly caps

POST /v1/chat/respond shares the monthly quota (it is one budget across both APIs) and adds message caps that reuse the same code. Tell them apart with details.kind:

A Free API key, sixth chat message of the UTC day:

json
{
  "success": false,
  "request_id": "req_01M8RK37DDQ6M7C3YGFAV8CAHK",
  "error": {
    "code": "QUOTA_EXCEEDED",
    "message": "Daily chat limit of 5 messages on the Free plan reached; it resets at 00:00 UTC. Upgrade your AstroNode plan to remove it.",
    "details": {
      "kind": "daily_chat_cap",
      "used": 5,
      "limit": 5,
      "resets_at": "2026-12-02T00:00:00.000Z",
      "upgrade_url": "/dashboard/billing/plans"
    }
  }
}
  • daily_chat_cap - Free plan, 5 messages per UTC day. resets_at is the next UTC midnight, and the retry-after header is the seconds until then (47936 in this run). The message and upgrade_url above are what an API key gets; the Astroniq consumer app's own sessions get consumer upgrade copy instead.
  • hourly_chat_cap - the Astroniq Plus plan, 20 messages per UTC hour. resets_at is the top of the next hour; retry-after again counts down to it.
  • Only answered messages count toward either cap. A second attempt after the daily cap still reported used: 5 - the refused message was not counted.
  • No kind - the shared monthly quota, the same body as above, upgrade_url included (Monthly quota of 10000 exhausted (10000/10000) on Hobby).

Questions

Does creating another API key give me more quota?
No. The monthly quota is counted per account across all of its keys; a new key on the same account sees the same count.
Do failed or refused requests count toward the AstroNode monthly quota?
No. Only successful (2xx) calls consume quota. Refused requests (400, 401, 403, 404, 409, 429) and server failures (5xx) appear in your usage history but are never billed.
When does the monthly quota reset?
At 00:00 UTC on the first day of each calendar month.