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

# API_KEY_MISSING

> HTTP 401 — Authentication required

**HTTP status:** 401 · **Title:** "Authentication required"

## When it fires

An endpoint that requires authentication received a request with no `X-API-Key` header.

## Why it happens

* The request was sent without the header (most common on a first integration).
* A reverse proxy or HTTP client stripped the header.
* The wrong base URL. The documented endpoints live under `/v1/*`.

## How to fix

```http theme={null}
GET /v1/portfolio HTTP/1.1
Host: api.kash.bot
X-API-Key: kash_live_<your-key-here>
```

* Send the key on every authenticated request. Keys are issued from the Kash web app (Settings → API Keys).
* The full key is shown once, at issuance. If you have lost it, revoke it and issue a new one.

See [Authentication](https://docs.kash.bot/developer-docs/rest-api/authentication.md).

## Related codes

* [`API_KEY_MALFORMED`](https://docs.kash.bot/developer-docs/api-errors/API_KEY_MALFORMED) — header present but not in the `kash_(live|test)_*` shape
* [`API_KEY_INVALID`](https://docs.kash.bot/developer-docs/api-errors/API_KEY_INVALID) — header well formed but unknown


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