# The key must not be in the URL (/errors/key-in-url)

**Status:** `400` · **Type:** `https://docs.ajour.dk/errors/key-in-url`

The query string has an API key (`ajr_live_...`). The API does not accept keys in the URL, because URLs are saved in logs, browser history and proxies.

## What to do [#what-to-do]

- Send the key only in the header: `Authorization: Bearer <key>`.
- Revoke the key in **Settings → API keys** and create a new one, because it can now be in logs.

See all [error types](/errors/).