API help

Webhook delivery

Owners and admins configure public HTTPS endpoints in the dashboard. Endpoint allowances follow the workspace plan; creating or pausing an endpoint does not change your subscription.

Manage endpoints and delivery history

Supported events

link.created, link.updated, link.deleted, campaign.created and link.conversion. These events are recorded in the same PostgreSQL transaction as the saved resource change, across the website, API and MCP. Changes only to the click counter do not emit link.updated. link.conversion describes a persisted conversion record; it does not prove a sale or validate browser attribution. link.clicked and qr.created are unavailable in this release. Server-side /api/conv ingestion requires links:write and accepts a JSON body of at most 16 KiB.

An endpoint receives events committed while it is active, subscribed and the current plan permits webhooks. A zero-allowance plan cancels pending dispatch without deleting endpoint configuration. There is no historical backfill. Events can arrive out of order; reconcile each resource with its latest saved state. A queued test uses event test. Basic campaign counters and on-demand QR images have the definitions in the AI guide.

Verify the exact body

The JSON envelope contains id, event, schemaVersion (1), timestamp and data. X-Webhook-Id equals id; X-Webhook-Delivery identifies the endpoint delivery. The exact body stays the same across attempts. X-Webhook-Attempt counts processing attempts, including recovered leases.

Compute HMAC-SHA256 using your signing secret and the UTF-8 bytes of X-Webhook-Timestamp + a period + the raw request body. Compare the hexadecimal digest to X-Webhook-Signature using a constant-time comparison. Do this before parsing/re-serializing JSON. Reject timestamps outside your chosen clock-skew window, for example five minutes. A retry receives a fresh timestamp and signature.

Persist the event ID and apply its effects atomically once, then return a 2xx acknowledgement promptly. Process slow work from your own queue. Keep the signing secret private; LinkDevi does not send an API key to your endpoint.

Retries and replay

Delivery is at least once. A worker or acknowledgement failure can cause a duplicate even after your endpoint processed the event. Requests have a five-second HTTP deadline, do not follow redirects, and re-check/pin public DNS destinations on every attempt. Private networks, URL credentials and IP-literal endpoints are unavailable.

Network failures, HTTP 408, 425, 429 and 5xx are retried up to eight processing attempts. Backoff starts at 5 seconds, then 30 seconds, 2 minutes, 10 minutes, 30 minutes, 2 hours and 6 hours. Retry-After can extend a delay up to 24 hours. Other 4xx, redirects and blocked destinations fail without automatic retry.

After fixing a failed endpoint, use Retry failed delivery. It queues the same event and delivery IDs with a new cycle of up to eight attempts; total attempts and earlier recorded results remain visible. Only a failed delivery on the original active endpoint can be replayed. Pending, sending, delivered and cancelled deliveries are not replayable.

History and lifecycle

The dashboard shows delivery status and the latest eight recorded attempt results per delivery. A crashed attempt may have no result row; the processing attempt count is still retained. Tests return queued status (202); check history to establish delivery.

Pausing or changing an endpoint URL cancels pending work. An attempt already dispatched may finish at its original URL. Deleting an endpoint deletes its history. Terminal events are eligible for cleanup 30 days after the event; cleanup runs in bounded batches, so removal can occur later. Pending work is retained for recovery. Receiver response bodies are not stored.