HTTP status: 401 · Title: “Authentication required”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.
When it fires
TheX-API-Key header is present but does not match the expected kash_(live|test)_<base64url> shape.
Why it happens
- A leading or trailing whitespace character (e.g., from a copy-paste with a trailing newline).
- The wrong env var was substituted (e.g., a Privy token or a bare UUID instead of a Kash API key).
- Truncation by a logging or proxy layer that capped header values.
How to fix
- The format is
kash_<env>_<43-char base64url>. The<env>segment isliveortest. livekeys hit production;testkeys hit staging. Don’t mix.- If you stored the key in an env var, double-check the substitution:
echo $KASH_API_KEY | head -c 16should printkash_live_…orkash_test_….
Related codes
API_KEY_MISSING— no header at allAPI_KEY_INVALID— well-formed but unknown