Authentication

Posthawk uses API keys to authenticate requests. Include your API key in the X-API-Key header with every request.

All API endpoints that send or manage emails require authentication via an API key.

Create API keys from the dashboard under Settings → API Keys. Each key can be scoped to "test" or "live" environments.

Include the key in every request header:

X-API-Key: your_api_key_here

API keys are hashed before storage — the full key is only shown once at creation time. Keep it secure.