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 client requires two credentials:- API key: a secret token that authenticates your requests
- Username: your Paubox API endpoint username (not your login email)
Option 1: Constructor parameters
Pass credentials directly — useful for console apps or when managing secrets via environment variables:Option 2: IConfiguration (recommended for ASP.NET Core)
Add your credentials toappsettings.json:
IConfiguration and pass it to the constructor:
APIKey and APIUser from the configuration and sets the Authorization header automatically on every request:
Forms client
FormsLibrary requires no credentials. Instantiate it with no arguments:
IFormsLibrary in ASP.NET Core for dependency injection and testability:
Security notes
- Never hard-code credentials in source files. Use
appsettings.jsonwith user secrets or environment variables. - Use .NET user secrets during development to keep credentials out of source control.