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.
API key format
All Nippy keys use thenpk_live_ prefix followed by a random string:
businessId. The server resolves your business automatically from the key — you don’t need to pass it in SDK methods, but you do in direct REST API calls.
With the SDK
Pass it in the constructor once:With direct REST API calls
For administration endpoints (creating campaigns, rules, viewing logs) that don’t go through the SDK, include both headers:Authentication errors
| HTTP code | Cause | Fix |
|---|---|---|
401 Unauthorized | Key invalid, expired, or missing | Verify the key is correct and in the x-api-key header |
403 Forbidden | The key does not have access to the requested resource | Verify the businessId matches your key |
Best practices
- Store the key in environment variables (
NIPPY_API_KEY) - Rotate the key if you suspect it was compromised — contact us at support@nippy.la
- Use a single
NippyClientinstance per process; do not recreate it per request

