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

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.