Sample documentation page (fictional product, used by the DocsChat demo)
Authentication
Every API request must include an API key in the Authorization header as a Bearer token.
Authorization: Bearer nmb_live_xxxxxxxxxxxxxxxx
Key types
- Live keys start with
nmb_live_and act on production data. - Test keys start with
nmb_test_. Events sent with a test key are delivered only to endpoints marked as test endpoints and never count toward your plan quota. - Restricted keys can be limited to specific permissions, for example
events:writeonly. Create them under API keys → Restricted.
Rotating keys
Create the new key first, deploy it, then delete the old one. A deleted key stops working immediately and cannot be restored. Keys that are unused for 180 days are flagged in the dashboard.
Never expose keys
Keep API keys on your server. Do not put them in browser code, mobile apps or public repositories. If a key leaks, delete it right away and create a new one.