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

# KEY_TYPE_NOT_ALLOWED

> This API key's type can't call this endpoint.

`403 Forbidden` · type `permission`

**When it happens**

This API key's type can't call this endpoint. Each endpoint takes one type of key, and the key you sent is a valid key of another type.

**What to do**

Use a key of the type the endpoint takes. Retrying with the same key won't succeed.

| Endpoints | Key type |
| - | - |
| Everything under `/v1/partner/` | A partner key |
| Every other endpoint | An agency key or a broker key |

The error's `message` says which type the endpoint takes. See [key types](https://docs.bridgelinepf.com/authentication.md#key-types) and [partner keys](https://docs.bridgelinepf.com/authentication.md#partner-keys).

## Example

```json 403 Forbidden theme={null}
{
  "error": {
    "type": "permission",
    "code": "KEY_TYPE_NOT_ALLOWED",
    "message": "This endpoint takes an agency API key.",
    "doc_url": "https://docs.bridgelinepf.com/errors#KEY_TYPE_NOT_ALLOWED",
    "request_id": "req_8fJ2kQ9xLm4TzW7nB3cY5pDv"
  }
}
```

See all [error codes](https://docs.bridgelinepf.com/errors.md), or how to [handle errors](https://docs.bridgelinepf.com/guides/errors.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.