Documentation Index
Fetch the complete documentation index at: https://docs.paubox.com/llms.txt
Use this file to discover all available pages before exploring further.
Obtain your credentials
The Email API service requires two credentials:- API key: a secret token that authenticates your requests
- Username: your Paubox API endpoint username (not your login email)
Option 1: Environment variables (recommended)
Create a.env file in your project root:
dotenv. Call the factory with no arguments:
Option 2: Direct configuration
Pass credentials explicitly to the factory:Authorization header automatically on every request:
Forms service
formService requires no credentials:
Security notes
- Add
.envto your.gitignore— never commit credentials to source control. - In production, prefer your platform’s secret management (environment variables injected by your hosting provider) over
.envfiles.