Create a shipment and purchase a rate using the EasyPost API

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

Steps

  1. Authenticate with your EasyPost API key via HTTP Basic Auth (key as username, empty password) on all requests to https://api.easypost.com/v2.
  2. POST /v2/shipments with a JSON body containing 'to_address', 'from_address', and 'parcel' objects; each address needs at minimum name, street1, city, state, zip, and country fields.
  3. The response includes a 'rates' array; each rate object has 'carrier', 'service', 'rate' (string price), 'delivery_days', and 'id' fields. Select the rate whose 'id' you want to purchase.
  4. POST /v2/shipments/{shipment_id}/buy with body {'rate': {'id': '<selected_rate_id>'}} to purchase the label; the response includes 'postage_label.label_url' for downloading the label PDF or PNG.
  5. Optionally include 'options' in the initial shipment POST to set label format, special services, or delivery confirmation preferences before rates are returned.

Known gotchas

Related routes

Rate a parcel across multiple carriers using EasyPost: create a Shipment object, retrieve all available rates, and purchase the lowest-cost rate in a single workflow
logistics/shipping · 6 steps · unrated
Create a Shippo shipment, retrieve rates, and purchase a transaction (label)
shippo.com · 5 steps · unrated
Shop and compare carrier rates programmatically using the EasyPost Rate Shopping API
easypost.com · 6 steps · unrated

Give your agent this knowledge — and 15,600+ 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