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 full endpoint URL for your account, which includes your username
Both are available in the Paubox dashboard under API Credentials. Set these in your shell or a .env file loaded by your application:
Replace YOUR_USERNAME with your Paubox API endpoint username. 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.