> The index of all pages is at https://docs.afffast.com/llms.txt.

# test_mode_only

This resource works only in test mode. Use a test key (sk_test_...).

HTTP status: **403**. Error type: `permission_error`.

This resource works only in test mode. Use a test key (sk*test*...).

## Example

```json
{
  "error": {
    "type": "permission_error",
    "code": "test_mode_only",
    "message": "This resource works only in test mode. Use a test key (sk_test_...).",
    "doc_url": "https://docs.afffast.com/errors/test-mode-only",
    "request_id": "req_3kQ9x7WmZpL2vNd8TfYb4A"
  }
}
```

## Causes

- The operation works only in test mode, and you used a live key. The test helpers (`/v1/test/...`) are an example.

## How to fix

- Use a test key (`sk_test_...`). See [Test mode](https://docs.afffast.com/docs/test-mode.md).
