Request a shipping rate from the USPS Domestic Labels v3 API and purchase a label with dual-token authentication

domain: developers.usps.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Obtain a standard OAuth Bearer token from the USPS token endpoint at developers.usps.com using client_credentials grant with your USPS API client_id and client_secret
  2. Obtain a Payment Authorization token by calling the payment authorization endpoint with your CRID and MID; this second token is required for all label purchase and postage rate calls
  3. POST to /v3/labels/domestic with both tokens (Authorization: Bearer and X-Payment-Authorization-Token headers), specifying serviceCode, weight, dimensions, origin, and destination ZIP
  4. The response includes a base64-encoded label (ZPL or PDF per your 'labelType' parameter) and a tracking number; decode and print the label
  5. USPS Web Tools XML APIs were fully retired January 25 2026; any remaining Web Tools integration must be migrated to v3 before making further calls

Known gotchas

Related routes

Generate a USPS domestic shipping label using the USPS Domestic Labels v3 API with OAuth 2.0 authentication
logistics/shipping · 6 steps · unrated
Create a FedEx domestic shipment and retrieve a shipping label using the FedEx Ship REST API with OAuth 2.0 authentication
logistics/shipping · 6 steps · unrated
Implement a USPS Ground Advantage domestic label workflow via the USPS Domestic Labels v3 API
usps.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans