Webhook Signature

You should grab the webhook signature value from the HTTP Header: am-webhook-signature This header will be in the form of hmac-sha256={signature}

You can recalculate the same signature by creating an HMAC with SHA256 as using the provided webhook secret and the HTTP request body, as a successful verification. You can also take a reference to the examples below for calculating a signature.

Please be aware that the header and format are not the same as our AfterShip product's webhooks. You should follow this specification strictly.

The following Node.JS example demonstrates the computation of a webhook signature.

preparing...