POST with a JSON body.
Add an endpoint
The URL must be HTTPS and on the public internet. The response holds the signing secret once; keep it on your server.What you receive
user is your own identifier for the person, as you sent it. id is the same on every retry, so you can ignore one you have already handled.
A unit.used delivery looks like this:
type you do not know, and ignore fields you do not read.
Check the signature
Every delivery carrieswebhook-id, webhook-timestamp and webhook-signature, following the Standard Webhooks scheme. Check the signature on the raw body before you trust it.
<webhook-id>.<webhook-timestamp>.<body>, the key is the part of the secret after whsec_ decoded from base64, and the signature is v1, plus the base64 of the HMAC-SHA-256. Reject a timestamp more than five minutes from now.
Retries
Answer with any2xx within 10 seconds. Anything else, or no answer, counts as a failure and Lurk tries again after 10 seconds, 1 minute, 5 minutes, 30 minutes, 2 hours, 8 hours, 24 hours and 36 hours (about three days), then stops. Redirects are not followed.
An endpoint that fails 15 attempts in a row is switched off, and its status shows disabled with the reason failing.
Manage endpoints
GET /v1/webhook-endpointslists the project’s endpoints, newest first, with each one’sstatus(activeordisabled) and, when it is disabled,disabled_reason.POST /v1/webhook-endpoints/{id}/deletestops sending to an endpoint and removes its delivery history. It cannot be undone.- A project can have 25 active endpoints. Disabled ones do not count. Past 25, adding one is refused with
validation_failed. - A disabled endpoint gets nothing. The reason is
failing(15 failed attempts in a row) ormanual: the person who added it was removed from the team or made a viewer, so what they set up stopped with their access. Add a new endpoint if you still want one; a new endpoint has a new secret.