> ## 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.

# TEST_MODE_NOT_ENABLED

> Test mode isn't turned on for your agency, so its test keys are refused.

`403 Forbidden` · type `permission`

**When it happens**

You used a test key (`bl_test_`), and test mode isn't enabled for your agency, or has been turned off. Bridgeline enables test mode agency by agency. An agency admin who tries to create a test key in the portal gets the same answer.

Test mode is enabled separately from live API access: this code is only ever about test keys, and your live keys keep working either way.

**What to do**

Ask your Bridgeline contact to enable test mode for your agency. See [test and live mode](/concepts/test-and-live-mode).

## Example

```json 403 Forbidden theme={null}
{
  "error": {
    "type": "permission",
    "code": "TEST_MODE_NOT_ENABLED",
    "message": "Test mode is not enabled for this agency. Contact Bridgeline.",
    "doc_url": "https://docs.bridgelinepf.com/errors#TEST_MODE_NOT_ENABLED",
    "request_id": "req_8fJ2kQ9xLm4TzW7nB3cY5pDv"
  }
}
```

See all [error codes](/errors), or how to [handle errors](/guides/errors).


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