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.
Install the SDK
pip3 install paubox-python3
Set your credentials
Export your API key and endpoint host as environment variables:export PAUBOX_API_KEY="YOUR_API_KEY"
export PAUBOX_HOST="https://api.paubox.net/v1/YOUR_USERNAME"
Replace YOUR_USERNAME with your Paubox API endpoint username. To obtain credentials, see Authentication. Send your first email
Create send.py:from paubox import PauboxApiClient
from paubox.helpers.mail import Mail
client = PauboxApiClient()
mail = Mail(
from_ = 'sender@yourdomain.com',
subject = 'Your first Paubox email',
recipients = ['recipient@example.com'],
content = {'text/plain': 'This message was sent with the Paubox Python SDK.'}
)
response = client.send(mail.get())
print('Status:', response.status_code)
print('Response:', response.to_dict)
Run it:The response dict contains sourceTrackingId. Check delivery status
tracking_id = response.to_dict['sourceTrackingId']
disposition = client.get(tracking_id)
print(disposition.to_dict)
The response includes message_deliveries with per-recipient status.
Next steps