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
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

