Webhooks
A webhook is a POST we send to a URL of yours when something happens, so you do not have to keep asking the API.
Getting access
Register endpoints at /my-profile/webhooks. Network and Admin users can do it at once.
Advertiser and affiliate users first ask the Network on that same page; the Network approves the account and chooses which events it receives.
Events
| Event | When | Network | Affiliate | Advertiser |
|---|---|---|---|---|
conversion.created | Fired when a conversion row lands (any status). | all | own data | own data |
conversion.approved | Fired when a conversion moves to approved. | all | own data | own data |
conversion.rejected | Fired when a conversion moves to rejected. | all | own data | own data |
click.blocked | Fired when the fraud score blocks a click. | all | no | no |
click.flagged | Fired when the fraud score flags a click (not blocked). | all | no | no |
affiliate.signup.created | Fired on a new affiliate self-signup. | all | no | no |
advertiser.signup.created | Fired on a new advertiser self-signup. | all | no | no |
payout.generated | Fired when the invoice generator closes a payout period. Not sent yet. | all | no | no |
Own data means: an affiliate only receives conversions of its own affiliate account, and never the revenue field;
an advertiser only receives conversions on its own offers, and never the payout field.
If your access is narrowed or revoked, deliveries still waiting in the queue are dropped as well.
What we send
POST https://your-site.example.com/webhooks/linknetik
Content-Type: application/json
User-Agent: Linknetik-Webhooks/1.0
X-Webhook-Event: conversion.created
X-Webhook-Delivery: 1842
X-Webhook-Timestamp: 1794912000
X-Webhook-Signature: sha256=3f5a…
{
"event": "conversion.created",
"created_at": "2026-11-18T10:12:00+00:00",
"payload": {
"conversion_id": 9912,
"offer_id": 5,
"affiliate_id": 32,
"click_id": "c_8f2…",
"tx_id": "ORDER-1001",
"status": "pending",
"revenue": 10.0,
"payout": 6.0,
"currency_id": 1
}
}
The example is what a Network endpoint receives. Fields inside payload depend on the event.
Checking the signature
Each endpoint has its own secret, shown once when you create it. Compute
HMAC-SHA256(timestamp + "." + raw body, secret), prefix it with sha256= and compare it with
X-Webhook-Signature. Use the raw body exactly as received, before any JSON parsing.
Reject a request whose X-Webhook-Timestamp is more than 5 minutes away from your clock.
// PHP
$body = file_get_contents('php://input');
$ts = $_SERVER['HTTP_X_WEBHOOK_TIMESTAMP'] ?? '';
$want = 'sha256=' . hash_hmac('sha256', $ts . '.' . $body, $secret);
if (!hash_equals($want, $_SERVER['HTTP_X_WEBHOOK_SIGNATURE'] ?? '') || abs(time() - (int) $ts) > 300) {
http_response_code(401);
exit;
}
Answering, retries and duplicates
Answer with any 2xx within 10 seconds. Anything else, or no answer, counts as a failure and we try again
after 1 minute, 5 minutes, 30 minutes and 2 hours: 5 attempts in all, then the delivery is marked dead.
You can see your latest deliveries, and send one again, at /my-profile/webhooks/deliveries.
The same delivery can reach you more than once (a retry after a slow answer). X-Webhook-Delivery is the same on every attempt of one delivery:
store it and ignore one you have already handled. Redirects are not followed.