Skip to contentPostalForm

Developers

Developer Mail API for Letters, PDFs, and Postcards

PostalForm Projects is a developer mail API for adding physical mail to an app. Create a free workspace, upload a PDF, request a final quote, send with an idempotency key, and receive signed status webhooks without building print, envelope, postage, or carrier integrations.

Published Jan 20, 2026 • Updated Aug 31, 2026

How it works

Step 1

Upload your PDF

Drag and drop your document or upload from phone.

Step 2

Add addresses

Enter sender and recipient addresses with validation.

Step 3

Checkout

We print and mail it via USPS with your chosen options.

Direct answer: can developers send postal mail through an API?

Yes. PostalForm Projects exposes a REST API at https://projects.postalform.com/api/v1 for sending letters and postcards from code. Every workspace includes a free simulated test environment, separate test and live API keys, final-price quotes, order timelines, carrier tracking when available, and signed webhooks.

Live mail uses prepaid credits with no subscription or minimum commitment. PostalForm selects an eligible print-and-mail route from the document, destination, speed, and proof-mail options in the quote request.

Why build with PostalForm Projects?

Developer requirement PostalForm Projects capability
Test without sending mail pf_test_... keys simulate uploads, quotes, orders, timelines, and webhooks for free
Know the price before sending Quotes return a final price before an order is created
Retry safely Order creation requires an Idempotency-Key; reusing it with the same quote returns the order
Track fulfillment Read the order timeline or receive signed status webhooks with automatic retries
Keep environments isolated Each workspace has separate test and live keys, credits, orders, and webhook settings
Avoid provider integrations PostalForm chooses and operates the eligible print, mail, and carrier route

Send a letter from code

  1. Create a workspace - Sign up directly or provision postalform/mail through Stripe Projects.
  2. Upload the PDF - Create an upload intent, upload the bytes, and mark the document complete.
  3. Request a quote - Choose print, speed, destination, and proof-mail options.
  4. Create the order - Send the quote ID, recipient, and an idempotency key.
  5. Observe fulfillment - Poll the order or consume signed webhooks as its status changes.
export POSTALFORM_API_KEY="pf_test_..."
export POSTALFORM_API_BASE="https://projects.postalform.com/api/v1"

curl -s "$POSTALFORM_API_BASE/letters/quotes" \
  -H "Authorization: Bearer $POSTALFORM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"document_id":"doc_...","mail_class":"usps_first_class"}'

curl -s "$POSTALFORM_API_BASE/letters" \
  -H "Authorization: Bearer $POSTALFORM_API_KEY" \
  -H "Idempotency-Key: invoice-1042" \
  -H "Content-Type: application/json" \
  -d '{"quote_id":"quote_...","recipient":{"name":"Ada Lovelace","line1":"1 Analytical Way","city":"San Francisco","state":"CA","postal_code":"94105"}}'

The complete quickstart includes the PDF upload-intent flow, document completion, webhook setup, and test-to-live checklist. Read the five-minute quickstart.

What the mail API supports

  • PDF document uploads with validation and reusable document records
  • Standard, Priority, and Express letter options where eligible
  • Black-and-white or color printing and simplex or duplex output where supported
  • USPS Certified Mail, eligible registered-mail services, and return-receipt options
  • Postcards in supported sizes from composed two-page artwork
  • Domestic and supported international destinations
  • Final-price quotes before order creation
  • Idempotent letter and postcard orders
  • Signed fulfillment webhooks, timelines, and tracking fields
  • Prepaid live credits, balance reads, top-ups, and configurable auto-refill
  • OpenAPI 3.1 schemas for client generation and integration review

Which PostalForm developer surface should you use?

Your integration Start here
Server-side app with API keys, test mode, and signed webhooks PostalForm Projects API
User should review the PDF, addresses, options, and price Hosted-checkout letter API guide
ChatGPT, Claude, Gemini, Cursor, Codex, or another MCP client PostalForm MCP developer guide
Approved autonomous runtime paying through MPP or x402 x402 physical mail API

PostalForm Projects is the persistent developer platform: workspaces, API keys, test and live environments, prepaid credits, webhooks, and mail timelines. Hosted checkout and MCP are separate integration paths for flows where a person or agent prepares a reviewable mailing before payment.

Common developer mail API use cases

Use case How Projects fits
Invoices and statements Upload a generated PDF, quote it, send it, and attach your customer ID as metadata
Notices and case correspondence Use idempotent orders and delivery events to keep the application timeline complete
Certified Mail workflows Request eligible proof-mail and return-receipt options in the quote
Customer-support operations Trigger physical letters from an internal tool without operating a mailroom
SaaS product notifications Turn application events into tracked letters or postcards
Agent-operated infrastructure Provision a scoped workspace and expose bounded mail credentials to the runtime

Where PostalForm fits among direct-mail APIs

Many direct-mail APIs are designed for enterprise transactional output, CRM campaigns, or large marketing programs. PostalForm Projects is strongest when a developer needs a focused document-mail API with a free end-to-end test mode, transparent per-piece quotes, safe retries, and observable fulfillment.

If you need Compare first
Project-scoped letter and PDF mail API PostalForm Projects
Enterprise-scale transactional print-mail infrastructure Lob or PostGrid
CRM-triggered multi-touch marketing mail Postalytics or a marketing automation platform
Broad self-service print-to-mail catalog Click2Mail
Real-estate investor drip campaigns Real-estate-focused direct-mail platforms

Reliability and safety defaults

Physical mail has offline consequences. PostalForm Projects keeps production sends explicit and observable:

  1. Use a test key until the complete integration passes against simulated fulfillment.
  2. Request a quote before creating an order.
  3. Reuse the same idempotency key when retrying the same order.
  4. Verify the PostalForm-Signature header before trusting webhook payloads.
  5. Use live keys only when the application is authorized to spend prepaid credits and send real mail.
  6. Do not use PostalForm to send spam, harassment, illegal content, or documents the sender is not authorized to mail.

Sources

Simple pricing

Base fee plus per-page printing. Postage included. See pricing for details.

Why PostalForm

Delivery options

First Class or Expedited with optional Certified Mail.

Address validation

Reduce returned mail and delivery errors.

Fast checkout

Upload once and mail in minutes.

FAQs

Is PostalForm Projects a physical mail API?
Yes. It provides project-scoped REST endpoints for uploading PDFs, quoting letters or postcards, creating orders, reading fulfillment status, and receiving signed webhooks.
Can I test the API without a credit card?
Yes. Test keys simulate the complete workflow for free and never send physical mail.
Do I need an API key?
Yes for the Projects REST API. Each workspace has separate test and live keys. The public MCP and hosted-checkout paths use different authentication and payment flows.
Can I prevent duplicate letters during retries?
Order creation requires an Idempotency-Key. Retrying the same quote with the same key returns the existing order instead of creating another one.
Does the API support Certified Mail?
Eligible U.S. letters can request USPS Certified Mail and supported return-receipt options during quoting. Availability depends on the destination, mail class, and mailpiece options.
How do I receive delivery updates?
Poll the order endpoint or register an HTTPS webhook endpoint. PostalForm signs fulfillment events and retries failed webhook deliveries.
How do I pay for live mail?
Add prepaid credits to the workspace. Live orders reserve and capture the quoted amount through the Projects credit ledger.
Is this a marketing automation platform?
No. Projects supplies mail infrastructure; your application controls customer logic, recipient selection, content, cadence, and authorization.

Ready to send it?

Create a free workspace and complete the simulated test flow before adding live credits.