Skip to main content
Add an endpoint and pick the events you want. Lurk sends each one as a 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:
Lurk adds event types over time. End your handler with a branch that ignores a type you do not know, and ignore fields you do not read.

Check the signature

Every delivery carries webhook-id, webhook-timestamp and webhook-signature, following the Standard Webhooks scheme. Check the signature on the raw body before you trust it.
In Python:
Without an SDK: the signed text is <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 any 2xx 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-endpoints lists the project’s endpoints, newest first, with each one’s status (active or disabled) and, when it is disabled, disabled_reason.
  • POST /v1/webhook-endpoints/{id}/delete stops 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) or manual: 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.