Skip to main content
The Artery API is in draft and may change before launch. Build against the sandbox, and check back here for changes.
Artery sends a POST to your webhook endpoint for each event you subscribe to. You set up endpoints and choose events in your dashboard.

The envelope

The event type is also in the X-Artery-Event header.

Events

The payload of each event is in the pages below.

Verifying the signature

Every request carries an X-Artery-Signature header:
To verify it:
  1. Take t (a Unix timestamp) and v1 from the header.
  2. Compute HMAC-SHA256 of t + "." + raw request body, using your endpoint’s secret.
  3. Compare the hex result with v1 using a constant-time comparison.
  4. Reject requests whose t is 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 on id anyway.