Documentation Index
Fetch the complete documentation index at: https://docs.nippy.la/llms.txt
Use this file to discover all available pages before exploring further.
Authentication methods
The Nippy MCP server and REST endpoints support two authentication methods. Both resolve the tenant’sbusiness_id automatically — you never need to pass it explicitly in tool calls.
X-API-Key (recommended)
Include your Nippy API Key in theX-API-Key header of every request:
npk_* prefix are tenant keys. The server resolves them against the database to determine which business_id you’re authorized for, without exposing that ID in the request.
OAuth Bearer JWT
For clients implementing the full OAuth protocol, the server exposes a token exchange endpoint:access_token you can use as a Bearer:
For most Claude Desktop and Cursor integrations, use
X-API-Key directly. The OAuth flow is for MCP clients that implement the full authentication protocol.How to get your API key
API keys are generated from the Nippy Console:- Log in at https://console.nippy.la
- Go to Settings > API Keys
- Click Generate new key
- Copy the key (
npk_xxxxxxxxformat)
Multi-tenant isolation
Each API key is tied to exactly one business. The server guarantees that:- All tools filter data by the
business_idresolved from the key — you cannot query another business’s data even if you know its ID. - Analytics has a double security layer: the server ensures you only see your business’s data, regardless of how the query is formulated.
- Roulettes, Supply, Learning, Flows automatically filter by your business on every operation.
Authentication errors
| Code | Message | Cause |
|---|---|---|
401 | Unauthorized | X-API-Key header missing, invalid, or malformed |
403 | Forbidden | Valid key but without permissions for the requested resource |
400 | ValueError: MCP tools require tenant-bound auth (npk_* key or OAuth Bearer) | The key is not tied to a tenant (not an npk_* key) |
- The header is named
X-API-Key(notAuthorization, notx-api-keywithout dashes) - The key has the
npk_prefix - The key hasn’t expired or been revoked in the Console

