Subscribe to EasyPost webhooks and validate HMAC signatures

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

Steps

  1. Create a webhook endpoint in your application to receive POST requests from EasyPost; the endpoint must respond with HTTP 2xx within a few seconds.
  2. Register the endpoint with EasyPost via POST /v2/webhooks with body: {url: 'https://your-domain.com/easypost-webhook'} — optionally include webhook_secret for HMAC signing.
  3. When a webhook is received, extract the X-Hmac-Signature header value and compute your own HMAC-SHA256 of the raw request body using your webhook secret; compare the values using a constant-time comparison to validate authenticity.
  4. Parse the event object from the JSON body; the result.object field identifies the event type (e.g., Tracker, Shipment, Insurance) and result.status or result.description describes what changed.
  5. Acknowledge receipt immediately with HTTP 200 before performing any slow processing; use a queue to handle the event asynchronously to avoid timeout retries from EasyPost.

Known gotchas

Related routes

Verify EasyPost webhook signatures using the current HMAC header
docs.easypost.com · 6 steps · unrated
Subscribe to Lodgify webhooks and verify inbound event payloads using HMAC signature validation
docs.lodgify.com · 5 steps · unrated
receive docusign connect webhooks and verify hmac signatures
docusign.com · 5 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