Events
| Event | Run status | When | Sent |
|---|---|---|---|
enrichment.queued | queued | A run your key started was accepted (the 202 from POST /v1/enrich). | At once. |
enrichment.started | running | The run is being worked on. | Within about 2 minutes. |
enrichment.completed | complete | The run finished; the vehicle's data is in the API. | Within about 2 minutes. |
enrichment.partial | partial | The run finished but some values weren't found; the vehicle is in the API with what was found. | Within about 2 minutes. |
enrichment.failed | failed | The run didn't finish. No enrichment credit is used. | Within about 2 minutes. |
Events cover runs started with your own keys, through POST /v1/enrich or POST /v0/enrich. The dashboard can also send a webhook.test event to check an endpoint.
The payload
Every event has the same envelope. data.object is the run, with the same fields and statuses as GET /v1/enrich/{run_id}, so one parser handles both.
POST https://your-app.example.com/webhooks/otoindexContent-Type: application/jsonOtoIndex-Event: enrichment.completedOtoIndex-Event-Id: evt_k57d2v1x9qkq7yb0m3f0e8c6sh7tq0aaOtoIndex-Signature: t=1794795990,v1=…{
"id": "evt_k57d2v1x9qkq7yb0m3f0e8c6sh7tq0aa",
"object": "event",
"type": "enrichment.completed",
"created": 1794795990,
"data": {
"object": {
"object": "enrichment_run",
"run_id": "ws7qheqs55qmne6arh5bsbd69h8jb8v2",
"vin": "5J6RW2H82KL000007",
"status": "complete",
"config_key": "…",
"started_at": "2026-11-16T02:17:02.000Z",
"updated_at": "2026-11-16T02:26:30.000Z",
"completed_at": "2026-11-16T02:26:30.000Z",
"error": null
}
}
}Check the signature
OtoIndex-Signature is t=<unix seconds>,v1=<hex>. v1 is the HMAC-SHA256 of <t>.<raw body>, keyed with your account's signing secret. One secret signs every endpoint. Set it on the dashboard's Webhooks page: generate one (whsec_…, shown once) or use your own (32 characters or more). Rolling it takes effect at once, retries included. Compute the signature over the body exactly as received, before parsing, compare in constant time, and reject a t more than a few minutes old.
import crypto from "node:crypto";
// rawBody: the request body exactly as received (before JSON.parse).
// header: the OtoIndex-Signature header, "t=<unix seconds>,v1=<hex>".
export function verifyOtoIndexSignature(rawBody, header, secret, toleranceSeconds = 300) {
const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
const t = Number(parts.t);
if (!t || Math.abs(Date.now() / 1000 - t) > toleranceSeconds) return false;
const expected = crypto.createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex");
const a = Buffer.from(expected);
const b = Buffer.from(parts.v1 ?? "");
return a.length === b.length && crypto.timingSafeEqual(a, b);
}import hmac, hashlib, time
def verify_otoindex_signature(raw_body: bytes, header: str, secret: str, tolerance: int = 300) -> bool:
parts = dict(p.split("=", 1) for p in header.split(","))
t = int(parts.get("t", "0"))
if not t or abs(time.time() - t) > tolerance:
return False
expected = hmac.new(secret.encode(), f"{t}.".encode() + raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, parts.get("v1", ""))Delivery and retries
- Answer fast. Return any 2xx within 10 seconds, then do the work. Anything else counts as a failure: another status, a timeout, a refused connection, or a redirect (redirects aren't followed).
- Retries. A failed delivery is tried again after 1 min, 5 min, 30 min, 2 h, 6 h, with the same event id and body.
- At least once, in any order. The same event can arrive twice, and a later event can arrive first. Dedupe on
id; readdata.object.statusrather than relying on order. - Switched off when failing. If the last 5 events to an endpoint all failed every attempt, it's switched off and the dashboard says so. Fix it, send a test event, and switch it back on.
- Polling still works.
GET /v1/enrich?run_id=…answers with the same run object, if you miss an event or want to check.
Endpoint rules
URLs must be https:// on the default port, with a public hostname: no IP addresses, no localhost or internal names, and no credentials in the URL. Up to 5 endpoints per account. Only the status code of your answer is kept; its body isn't read.
Manage endpoints, send test events and set the signing secret in your dashboard. The events are also in the OpenAPI spec under webhooks.