# api_key_route_forbidden (/errors/api_key_route_forbidden)

| HTTP status | Type | Code |
| --- | --- | --- |
| 403 | `permission_error` | `api_key_route_forbidden` |

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

Some endpoints (for example account, billing, and key management) are only available from a signed-in dashboard session. Use the dashboard for this action.

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

The key or user is valid but not allowed to do this. Check the key’s access level and resources (read-only keys can only send `GET`), or ask a workspace manager.

## Example response [#example-response]

```json
{
  "detail": "This endpoint cannot be called with an API key.",
  "error": {
    "type": "permission_error",
    "code": "api_key_route_forbidden",
    "message": "This endpoint cannot be called with an API key.",
    "param": null,
    "docUrl": "https://docs.callmitra.ai/errors/api_key_route_forbidden",
    "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.