Skip to main content

Obtain your credentials

The Email API client requires two values:
  • API key: a secret token that authenticates your requests
  • API host: the API endpoint URL, https://api.paubox.com/v1
Your API key is available in the Paubox dashboard under API Credentials. Set these in your shell or a .env file loaded by your application:
The SDK reads these automatically; no constructor arguments needed:

Constructor parameters

Pass credentials directly if you prefer not to use environment variables:
The SDK sets the Authorization header automatically on every request:

Forms client

PauboxFormsClient requires no credentials:

Security notes

  • Never hard-code credentials in source files.
  • The SDK does not log API keys or request bodies.