Welcome! This comprehensive guide will walk you through mailing PDF documents physically to any destination address. With a single API request, you can upload your document, specify sender and recipient details, and trigger physical mailing—all in one step!
Important: About Sandbox vs Production
This article uses Sandbox environment for all examples and testing. The Sandbox allows you to test the complete workflow without processing real payments or mailing actual documents.
Your API Key will be displayed (hidden with dots for security)
Click the eye icon to reveal it, or click the copy icon to copy it directly
Save this key securely - you'll need it for every API request
Security Warning: Keep your API key secure and never share it publicly. If you generate a new API key, your current key will be automatically revoked.
Task 2: Set Your Connection Headers
Before making any request, you must add these 3 headers in your API tool (like Postman). Without these, our system cannot verify your account:
Content-Type:application/json
Accept:application/json
Authorization:Bearer YOUR_API_TOKEN_HERE (Use the API Key from Task 1)
Step 1: Get Available Shipping Options (Optional)
Before sending your document, you can retrieve the list of available shipping methods and their costs. This helps you choose the appropriate shipping type ID.
Note: We are using the mail checks shipping endpoint. This may be subject to change for document mailing.
Action: Note down the shippingTypeId you want to use (e.g., 3 for First Class with Tracking).
Step 2: Send Document for Mailing
Now you can send your document with all details in a single request! This endpoint handles document upload, sender/recipient creation, and triggers physical mailing—all at once.
Important PDF Page Limits:
First Class Shipping (IDs: 1, 14, 17): Maximum 7 pages per PDF
All Other Shipping Methods: Maximum 40 pages per PDF
If your PDF exceeds these limits, you'll receive an error message. For larger documents, contact customer support for assistance.
How to structure your request:
In your API tool, change the Body format to form-data
Add all required fields as shown below
For the file field, change type from Text to File and select your PDF
Here are the status codes you'll see when tracking your document:
Status Code
Status Name
Description
0
New
Document mail request created
1
Pending
Processing and preparing for printing
2
Printed
Document has been printed
3
Envelope Printed
Envelope has been printed and prepared
4
Mail Sent
Document has been mailed and is in transit
8
Refunded
Mailing cancelled and refunded
Done! Your document has been submitted for physical mailing. Our facility will process the document, print it, envelope it, and mail it to the destination address. You can track progress using the tracking endpoint or webhook notifications.