# api_key_limit_reached (/errors/api_key_limit_reached)

| HTTP status | Type | Code |
| --- | --- | --- |
| 409 | `conflict_error` | `api_key_limit_reached` |

## What it means [#what-it-means]

Each workspace can hold a limited number of unexpired API keys. Revoke a key you no longer use in the console (Settings → Developers), then create the new one.

## How to handle it [#how-to-handle-it]

Fetch the resource again to see its current state, then decide whether to retry.

## Example response [#example-response]

```json
{
  "detail": "This workspace already has the maximum number of active API keys.",
  "error": {
    "type": "conflict_error",
    "code": "api_key_limit_reached",
    "message": "This workspace already has the maximum number of active API keys.",
    "param": null,
    "docUrl": "https://docs.callmitra.ai/errors/api_key_limit_reached",
    "requestId": "req_3f9c2a7d1b8e4c6a9f0e2d4b6a8c0e1f"
  }
}
```

Branch on `error.code`; it never changes once published. The `message` text can change. See [Errors](/errors) for the envelope.

## Returned by [#returned-by]

Any endpoint can return this code.