> ## Documentation Index
> Fetch the complete documentation index at: https://docs.avatcado.com/llms.txt
> Use this file to discover all available pages before exploring further.

# key_limit_reached

> Error: maximum number of API keys reached for this account

# key\_limit\_reached

<Info>HTTP Status: **403 Forbidden**</Info>

## Example response

```json theme={null}
{
  "error": {
    "code": "key_limit_reached",
    "message": "Maximum number of API keys reached for this tier",
    "docs_url": "https://docs.avatcado.com/errors/key_limit_reached"
  },
  "meta": {
    "request_id": "550e8400-e29b-41d4-a716-446655440000"
  }
}
```

## What happened?

You tried to create a new API key but your account has already reached the maximum number of keys allowed for your current tier.

## How to fix

1. **Revoke unused keys**. If you have keys you no longer need, revoke them in the [Avatcado dashboard](https://avatcado.com) to free up a slot.
2. **Upgrade your plan**. Higher tiers allow more API keys. Visit the dashboard to upgrade.

## Catching this error with the SDKs

<CodeGroup>
  ```typescript @avatcado/node theme={null}
  import Avatcado, { AvatcadoError } from '@avatcado/node';

  const avatcado = new Avatcado('avat_live_your_api_key');
  const { data, error } = await avatcado.vat.validate({ vatNumber: '...' });

  if (error instanceof AvatcadoError) {
    console.log(`${error.code}: ${error.message}`);
    console.log(error.docsUrl);
  }
  ```

  ```python Python theme={null}
  from avatcado import Avatcado, AvatcadoError

  avatcado = Avatcado("avat_live_your_api_key")

  try:
      result = avatcado.vat.validate("...")
  except AvatcadoError as e:
      print(f"{e.code}: {e.message}")
      print(e.docs_url)
  ```
</CodeGroup>

## Related errors

* [`unauthorized`](/errors/unauthorized): API key is missing or invalid
* [`tier_insufficient`](/errors/tier_insufficient): Feature requires a higher tier
