Get started

Authentication

API keys, permissions and how to keep them safe.

Every request is authenticated with an API key sent as a bearer token.

Header
Authorization: Bearer nus_k3f9_xxxxxxxxxxxxxxxx

API keys

Keys look like nus_<prefix>_<secret>. Only a hash of the secret is stored, so a lost key cannot be recovered. Create a new one and revoke the old one instead.

Permissions

PermissionCan do
Full accessEvery endpoint: emails, domains, audiences, webhooks, keys and inbound mail.
Sending accessSend emails only. Optionally restricted to one domain.

Keep keys safe

  • Store keys in environment variables or a secrets manager, never in source control.
  • Use a sending-access key restricted to one domain for each app.
  • Never use a key in browser code. Call the API from your server.
  • Revoke a key from the dashboard if you suspect it leaked.