Send a PDF or plain text via USPS. Pay with Solana USDC.
No authentication required. All endpoints are public and rate-limited to 10 requests per minute per IP.
https://mailclaw.xyz/api/v1/health/api/v1/pricing/api/v1/previewRequest
{
"content": {
"text": "Dear Gabe, it has been 19 years. We just want to know: is Half-Life 3 coming or not? Please respond via certified mail. Sincerely, Everyone."
},
"service": "certified"
}Response
{
"pageCount": 1,
"pricing": {
"totalUsd": 9.4,
"totalUsdc": "9400000",
"breakdown": {
"basePrice": 9.4,
"extraPageCost": 0
}
}
}/api/v1/jobsRequest
{
"email": "impatient_gamer@example.com",
"to": {
"name": "Gabe Newell",
"address_line1": "10400 NE 4th St",
"address_city": "Bellevue",
"address_state": "WA",
"address_zip": "98004"
},
"from": {
"name": "Everyone",
"address_line1": "1 Internet Blvd",
"address_city": "The World",
"address_state": "CA",
"address_zip": "90210"
},
"content": {
"text": "Dear Gabe, it has been 19 years. We just want to know: is Half-Life 3 coming or not? Please respond via certified mail. Sincerely, Everyone."
},
"service": "certified"
}Response
{
"id": "job_abc123",
"status": "awaiting_payment",
"service": "certified",
"message": "Job created. Pay to send.",
"payment": {
"address": "SolanaAddress...",
"amount": "9400000",
"amountUsd": 9.4,
"network": "solana-mainnet",
"token": "USDC",
"expiresAt": "2026-02-15T12:30:00Z"
},
"pageCount": 1
}/api/v1/jobs/:id/api/v1/jobs/:id/document/api/v1/jobs/:id/cancelProvide one of the following in the content field:
content.pdfstringBase64-encoded PDF filecontent.textstringPlain text content (rendered to PDF for printing)Exactly one of pdf or text must be provided.
| Value | Description | Price |
|---|---|---|
first_class | USPS First Class (domestic) | $4.80 |
certified | Certified Mail (domestic, default) | $9.40 |
certified_return_receipt | Certified + Return Receipt | $16.00 |
international | International First Class | $9.45 |
All services include 3 pages. Additional pages are +$1.00 each.
awaiting_paymentCreated, waiting for USDC paymentpending_reviewPayment received, queued for printingprocessingBeing printed and preparedshippedMailed, tracking entered (if certified)deliveredConfirmed deliveredrejectedRejected, payment forfeitedcancelledCancelled by user before paymentexpiredPayment window expired (30 min)EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1vAll prices in USD, paid as USDC on Solana.
400BAD_REQUESTInvalid request parameters404NOT_FOUNDResource not found429RATE_LIMITRate limit exceeded500INTERNAL_ERRORServer error