Skip to main content

Obtain your API key

The Email API client requires one credential:
  • API key: a secret token that authenticates your requests
It is available in the Paubox dashboard under API Credentials.

Create a .env file

Add your API key to a .env file at your project root:
The SDK reads these variables automatically on instantiation; no constructor arguments are needed:
The SDK sets the Authorization header on every request:

Forms client

Paubox\PauboxForms requires no credentials. Form submissions are associated with the form ID, not an API key.

Security notes

  • Never commit .env files to source control. Add .env to your .gitignore.
  • The SDK does not expose credentials in error messages or logs.