Authenticate with the Sendar email API

Keep your API key on the server and authenticate each request with a Bearer token.

Create a key

Create an API key in your Sendar dashboard. Store it as SENDAR_API_KEY in your server environment. Never place it in a browser bundle, public repository, or NEXT_PUBLIC variable.

Send the header

Send Authorization: Bearer followed by your key. A 401 response means the request was not authenticated. Replace a revoked key in your server configuration before retrying.

Authorization: Bearer YOUR_SENDAR_API_KEY

Sendar pricing ยท Integration guides