Skip to main content

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)
Both are available in the Paubox dashboard under API Credentials. Set credentials once at application startup. All Paubox::Client instances will use them automatically:

Per-client configuration

Override credentials for a specific client instance:
The SDK sets the 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.