Coding agent documentation index Fetch the complete documentation index at: https://docs.worklittle.com/docs-agent-manifest.json Use this file to discover all available pages before exploring further.
Webhooks reliability
Verify signatures, dedupe at-least-once deliveries, acknowledge fast, and reconcile.
Payload
{
"id": "wh_01J9Z3K7Q4",
"type": "candidate.application_submitted",
"created_at": 1748948400,
"data": { }
}
Delivery is at-least-once and unordered. Failed deliveries retry with backoff. Manage endpoints with /webhooks or MCP create_webhook, rotate_webhook_secret, test_webhook, list_webhook_deliveries. Events: Webhooks.
Verify
| Header | Purpose | | --- | --- | | `Worklittle-Webhook-Id` | Dedupe key | | `Worklittle-Webhook-Timestamp` | Reject replays | | `Worklittle-Webhook-Signature` | `v1=<hmac>` over `timestamp.body` |
import crypto from "node:crypto";
function verify(sigHeader, timestamp, rawBody, secret) {
const expected = crypto
.createHmac("sha256", secret)
.update(`${timestamp}.${rawBody}`)
.digest("hex");
const received = sigHeader.replace(/^v1=/, "");
return crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(received));
}
Verify the raw body before parsing. Accept both secrets during rotation.
Handle
Dedupe on Worklittle-Webhook-Id with a unique constraint. On conflict, return 200. Write idempotently. "Set stage to onsite" is safe to repeat. "Advance one stage" is not. Ignore older events. Discard updates whose created_at is older than your state. Acknowledge fast. Verify, enqueue, return 2xx in under a second. Work in a background job. * Reconcile hourly. List records changed since your watermark and compare.