Webhooks
A webhook reverses the direction: instead of asking whether something has happened, you are told. We send POST to your address, signed, with retries — and with a boundary that matters more here than everything else.
The boundary first
An endpoint belongs to your project's legacy access, not to an OAuth grant. It therefore carries the consent of no organisation and no team. This leads to the rule the entire event list depends on:
No OAuth, no product data. Not even via the detour of a webhook.
That is why there are two classes of events:
| Class | What is in the payload | Example |
|---|---|---|
| Full | The complete operation — it is your own data. | unit.state.changed, key.revoked, quota.exceeded |
| Signal | Resource, identifier, action. No name, no amount, no field. | mc.members.changed, connection.unlinked |
A signal never tells you more than you would learn by polling anyway — it only saves you the polling. You then fetch what changed with your OAuth token via the API, with the same scope as always.
What you can subscribe to
Under Webhooks, the console shows exactly the events your project can have: API enabled, event enabled. The groups:
| Group | Class | What it covers |
|---|---|---|
| API Keys | full | Created, rotated, revoked, expired — and found in public. |
| OAuth Clients | full | Created, secret rotated, disabled. |
| Sandboxes | full | Created, reset, deleted. |
| Project & quota | full | API on or off, quota at 80 %, quota exhausted, access changed. |
| Team | full | Invitation, role change, removal. |
| Platform | full | Status page incidents and deprecations of API versions. |
| Delivery | full | An endpoint was disabled after too many failures. |
| Connection to the product | Signal | Account linked, link removed, approval changed, refresh failed. |
| Change signals | Signal | One per product API: mc.members.changed, sb.servers.changed and so on. |
connection.unlinked is the event that makes the whole effort worthwhile: until now, an integration only notices that an approval was revoked at the next 401 — with a webhook, the moment it happens.
The envelope
Every payload looks the same. Whatever the operation brings along is under data.
{
"id": "evt_9f2c81ab7d3e4405",
"type": "unit.state.changed",
"created_at": "2026-08-18T09:14:22.481Z",
"environment": "production",
"data": { "unit": "u_4471", "state": "wartung", "reason": "Drehmoment" }
}
A signal carries the same envelope and a sparse data:
{
"id": "evt_2b90ce41d78a6612",
"type": "mc.members.changed",
"created_at": "2026-08-18T09:15:03.117Z",
"environment": "production",
"data": {
"api": "methacore-members",
"owner": "6654994a1f2b3c4d5e6f7a8b",
"resource": "mc.members.profile",
"id": "66bcfadc0a1b2c3d4e5f6071",
"action": "update"
}
}
No name, no address, no date of birth. For the data: GET /v1/members/66bcfadc… with your token.
Verify the signature
Every request carries headers:
| Header | Content |
|---|---|
X-Artim-Event | The event name, e.g. unit.state.changed |
X-Artim-Delivery | The delivery identifier — the same as id in the body |
X-Artim-Webhook-Id | Which of your endpoints is meant |
X-Artim-Environment | production or sandbox |
X-Artim-Signature | t=<sekunden>,v1=<hmac> |
The signed text is "<sekunden>." + raw body, using HMAC-SHA256 and your signing secret. The timestamp is part of the signed text: otherwise a captured call could be replayed later. We reject signatures older than five minutes — do the same.
import crypto from "node:crypto";
export function verify(rawBody, header, secret) {
const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
const age = Math.abs(Math.floor(Date.now() / 1000) - Number(parts.t));
if (!Number.isFinite(age) || age > 300) return false;
const expected = crypto
.createHmac("sha256", secret)
.update(`${parts.t}.` + rawBody)
.digest("hex");
return crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1));
}
What matters is raw: the body as it arrived, byte for byte. If you parse the JSON first and then serialise it again, you are verifying the signature of a different string.
We generate the secret on creation and show it exactly once. It starts with whsec_live_ or whsec_sbx_ — so you can tell which environment a payload comes from before you even read it.
Content type
Two encodings, same content:
application/json— the body is the JSON.application/x-www-form-urlencoded— the body ispayload=<json>, for receivers that only understand forms.
In both cases the raw body is signed, not the JSON inside it.
Retries
An attempt has ten seconds. Accept the payload, respond with 2xx and do the work afterwards — if your handler calculates half the accounting, it will run into the timeout.
If your endpoint does not respond with 2xx, we try again: after one minute, after five, after thirty, after two hours, after six. After that, the delivery is logged as failed and can be resent manually in the console.
Twenty failed deliveries in a row disable the endpoint. You find out via webhook.endpoint.disabled — delivered to your other endpoints, because the disabled one is exactly the one that is not responding.
The same identifier can arrive twice: a retry after a timeout, even though your service had already recorded it. Remember id and discard what you already know.
SSL verification
By default we verify your endpoint's certificate. You can switch this off for your own test receivers — with the consequence that anyone on the line can read and modify the payload. The signature then still protects authenticity, not confidentiality.
The address must be https and reachable from the internet: we reject endpoints pointing to internal addresses when they are created.
Try it out
A newly created endpoint immediately receives a ping — if you built the signature check wrong, you notice within the same minute. Later at any time via Send test in the row menu. ping cannot be subscribed to; it always comes.
The delivery log shows the status, the duration and your server's error text for each attempt — truncated to two kilobytes, but enough to recognise your own stack trace.