Obtain your credentials
The Email API client requires two credentials:- API key: a secret token that authenticates your requests
- Username: your Paubox API endpoint username (not your login email)
Global configuration (recommended)
Set credentials once at application startup. AllPaubox::Client instances will use them automatically:
Per-client configuration
Override credentials for a specific client instance:Authorization header automatically on every request:
Forms client
Paubox::FormsClient requires no credentials:
Security notes
- Never hard-code credentials in source files — always read from environment variables.
- The SDK does not log API keys or request bodies.