The Artery API is in draft and may change before launch. Build against the sandbox, and check back here for changes.
POST to your webhook endpoint for each event you subscribe to. You set up endpoints and choose events in your dashboard.
The envelope
X-Artery-Event header.
Events
The payload of each event is in the pages below.
Verifying the signature
Every request carries anX-Artery-Signature header:
- Take
t(a Unix timestamp) andv1from the header. - Compute HMAC-SHA256 of
t + "." + raw request body, using your endpoint’s secret. - Compare the hex result with
v1using a constant-time comparison. - Reject requests whose
tis more than a few minutes old.
Acknowledging and retries
Reply with any 2xx status within 15 seconds. Otherwise Artery retries up to 8 attempts in total, starting 30 seconds apart and doubling each time. One endpoint never receives the same event twice, but de-duplicate onid anyway.