API key
ntrp uses Bearer token authentication. Include the key in theAuthorization header:
Getting a key
An API key is generated on firstntrp-server serve:
Resetting a key
Storage
The server stores only a salted SHA-256 hash of the key — the plaintext is never persisted. The TUI client stores the plaintext in your OS keychain.Public endpoints
The/health endpoint is always public (no auth required). This allows Docker healthchecks and monitoring tools to work without credentials.
Webhook authentication
Webhook endpoints (/webhooks/email) use a separate NTRP_WEBHOOK_TOKEN for authentication, passed via X-Webhook-Token header or Bearer token.