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 indata.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 indata.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
{
"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:
Verilo-Signature: t=1762594872,v1=5f2b0c...e91av1 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
});import hashlib, hmac, time
def verify_verilo(raw_body: bytes, header: str, secret: str, tolerance: int = 300) -> bool:
parts = dict(p.split("=", 1) for p in header.split(",") if "=" in p)
t = parts.get("t", "")
if not t.isdigit() or abs(time.time() - int(t)) > tolerance:
return False
want = hmac.new(secret.encode(), f"{t}.".encode() + raw_body, hashlib.sha256).hexdigest()
return any(hmac.compare_digest(want, v) for k, v in
(p.split("=", 1) for p in header.split(",")) if k == "v1")
# Flask
@app.post("/webhooks/verilo")
def verilo():
if not verify_verilo(request.get_data(), request.headers.get("Verilo-Signature", ""), SECRET):
abort(400)
event = request.get_json()
return "", 200Retries 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.
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 withGET /v1/events.