Skip to content
Docs
Get started

API reference

Webhooks

Receive verification Results the moment they are issued, for every template and for damage claims, with signed webhook events, signature verification in Node.js and Python, and retries.

Webhooks tell your system when something happens to a Verification or a Claim, so you never poll. Each event is an HTTPS POST of a JSON object, signed with your endpoint's secret.

Events

A Verification made from any template but damage_claim sends verification.* events, with the Verification in data.object:

  • verification.link_issued: a Verification Link was issued, when the Verification was created or a new link was made.
  • verification.result_ready: the Verification Result is ready in data.object.result, with each step's Signal.
  • verification.link_expired: the link expired before the person finished. Make a new one if you still need it.
  • verification.processing_failed: the person finished but the evidence could not be processed after three tries. Make a new link.
  • verification.cancelled: the Verification was cancelled before a Result.

A damage claim sends claim.* events, with the Claim in data.object, whether you made it with POST /v1/claims or with the damage_claim template:

  • claim.link_issued: a Verification Link was issued, when the Claim was created or a new link was made.
  • claim.result_ready: the Verification Result is ready in data.object.result. This is the one most integrations act on.
  • claim.link_expired: the link expired before the customer finished. Make a new one if the claim is still open.
  • claim.processing_failed: the customer finished but the evidence could not be processed after three tries. Make a new link.
  • claim.cancelled: the Claim was cancelled before a Result.
  • claim.outcome_recorded: an Outcome was recorded.
  • claim.outcome_undone: a recorded Outcome was undone, within 24 hours of recording it.

An endpoint receives every event unless you list the ones it wants in events. Endpoints made before Verifications existed keep the list they were made with; add the verification.* events to one with POST /v1/webhook_endpoints/{id}.

The payload

JSON
{
  "id": "evt_7a6b5c4d3e2f41a09b8c7d6e5f4a3b2c",
  "object": "event",
  "type": "claim.result_ready",
  "livemode": true,
  "apiVersion": "2026-11-14",
  "createdAt": "2026-11-08T09:41:12Z",
  "data": {
    "object": {
      "id": "clm_4c1f0e9a2b7d4e5f8a6b3c2d1e0f9a8b",
      "object": "claim",
      "status": "result_ready",
      "reference": "RMA-1042",
      "order": { "id": "1042", "name": "#1042" },
      "result": {
        "state": "Verified",
        "explanation": {
          "strong": ["Shipping label barcode matches the tracking number for this order (1Z999AA10123456784)."],
          "weak": []
        },
        "subScores": { "captureIntegrity": 86, "orderMatch": 100, "shipmentMatch": 100, "productMatch": 92,
                       "physicalInteraction": 100, "damageVisibility": 100, "sessionAnomalyRisk": 0 }
      },
      "metadata": { "store": "oak-and-clay" }
    }
  }
}

data.object is the full Claim, or the full Verification for verification.* events, as it is when the event is sent. Headers also carry Verilo-Event-Id and Verilo-Event-Type.

Verifying signatures

Every delivery has a Verilo-Signature header:

Text
Verilo-Signature: t=1762594872,v1=5f2b0c...e91a

v1 is the hex HMAC-SHA256 of the string t, a full stop, and the raw request body, keyed with the endpoint's secret (whsec_...). Check it before you trust anything in the body, compare in constant time, and refuse a t more than five minutes from your clock so an old delivery cannot be replayed. Read the raw body: parsing and re-serialising the JSON changes the bytes.

import { createHmac, timingSafeEqual } from 'node:crypto';

export function verifyVerilo(rawBody, header, secret, toleranceSeconds = 300) {
  const t = /t=(\d+)/.exec(header ?? '')?.[1];
  if (!t || Math.abs(Date.now() / 1000 - Number(t)) > toleranceSeconds) return false;
  const want = createHmac('sha256', secret).update(`${t}.${rawBody}`).digest();
  return [...(header.matchAll(/v1=([0-9a-f]+)/g))].some(([, v]) => {
    const got = Buffer.from(v, 'hex');
    return got.length === want.length && timingSafeEqual(got, want);
  });
}

// Express: keep the raw body for this route.
app.post('/webhooks/verilo', express.raw({ type: 'application/json' }), (req, res) => {
  if (!verifyVerilo(req.body.toString('utf8'), req.get('Verilo-Signature'), process.env.VERILO_WEBHOOK_SECRET)) return res.sendStatus(400);
  const event = JSON.parse(req.body);
  res.sendStatus(200);           // answer first
  queue.add(event);              // then do the work
});

Retries and duplicates

Answer with any 2xx status within 10 seconds. Anything else, or no answer, is retried after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours, 12 hours, 24 hours and 24 hours: nine tries over about three days. The Developers page shows every delivery, its last answer and a Resend button.

Webhook endpoints on the Developers page: one endpoint receiving every event, with Send test event, Roll secret and Delete, and its delivery history: three deliveries delivered and one retrying after three tries that answered HTTP 503, each with Resend.

Delivery history for an endpoint: delivered, and retrying after three tries.

Deliveries can arrive more than once and out of order. Use the event id to drop a duplicate, and read data.object.status, or retrieve the Claim, for its current state rather than relying on order. If your endpoint was down for longer than the retries, catch up with GET /v1/events.

Endpoint rules

  • https only, on the public internet; addresses on private networks are refused when saved and on every delivery.
  • Up to 16 endpoints per mode. Test and live endpoints are separate.
  • Roll a secret with POST /v1/webhook_endpoints/{id}/roll_secret. Deliveries are signed with the new secret at once, so deploy it to your receiver first.
  • Pause an endpoint with "enabled": false. Events that happen while it is paused are not sent later; read them with GET /v1/events.