err:frontline:client:usage_exceeded429 Too Many Requests.
Example response
If you’re calling an API hosted on Unkey
Retrying won’t help until the owner adds credits or a scheduled refill runs. There’s noRetry-After header for this error. Contact the API owner with the request ID and ask about your quota.
If you own this API
Each request that passes a key-auth policy costs the policy’scredits value, or 1 if it isn’t set. Gateway traffic and your own keys.verifyKey calls spend from the same balance on the key. Common causes:
- The key used up its credits.
- A route that shouldn’t be metered is costing credits.
How to fix
- Add credits with
keys.updateCredits, set up a refill so the balance tops up on a schedule, or remove the credit limit from the key. - For a route that shouldn’t cost credits, set
credits: 0on its policy and create a new deployment.
credits value makes every matched request fail with invalid_configuration.
Related errors
err:frontline:client:rate_limited: a per-window request limit rather than a credit balance.err:frontline:config:invalid_configuration: the policy’s credit cost is negative.