Webhooks
Get told when something happens in a creator's account.
Each app has one webhook URL. Set it on the app's page in the developer portal, or through the API with a personal API key (below). It must be https on a public host. The signing secret is shown once.
Your endpoint receives an event only for creators who connected your app and granted the scope the event needs:
Event | Needs |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| none: the creator disconnected your app |
| none: the creator's sign-in account changed or was deleted |
Managing the webhook through the API
These operations need a personal API key (Dashboard → Developers → API keys) with apps:write, or apps:read for GET. OAuth access tokens cannot call them. {appId} is an app you registered; any other id answers 404.
Call | Does |
|---|---|
| Body |
|
|
| Removes it. Deliveries stop. |
|
|
| Sends one signed |
url follows the same rule as the dashboard: https, no user name or password, and no localhost, private or link-local address. An unknown event name is refused with 400. Answers 501 not_implemented if the signing service does not offer rotation or test sends yet. Try again later.
curl -X PUT "$LINKHUB_URL/api/v3/apps/$APP_ID/webhook" \
-H "Authorization: Bearer $LINKHUB_API_KEY" -H "content-type: application/json" \
-d '{"url":"https://example.com/api/webhooks/linkyhub","events":["order.paid","product.updated","grant.revoked"]}'The envelope
Every delivery is one JSON object:
{
"id": "evt_…",
"type": "order.paid",
"timestamp": 1764115200000,
"creator": { "id": "user_…" },
"data": { "orderId": "…", "amountCents": 2500, "currency": "usd", "creator": { "id": "user_…" } }
}idis the same on every retry, and it is also thewebhook-idheader.typeis the event.creator.idnames the creator the event is about. It equals thesubclaim of the access token your app holds for that creator, so you can match the delivery to a stored connection without another call. It is on every event type, includinggrant.revokedanduser.*, and isnullonly when no creator is involved, as onwebhook.test.datais the event's payload. For Linky Hub's own events (order.*,product.updated,inventory.low,subscriber.created,event.registration) it carries ids rather than full records, and alsodata.creatorwith the same id.grant.revokedanduser.*carrydata.user_id.
Read creator.id. If a delivery has no top-level creator, fall back to data.creator.id, or data.user_id for grant.revoked and user.*. All three hold the same value.
Verifying
Deliveries are signed with the Standard Webhooks headers webhook-id, webhook-timestamp and webhook-signature. Verify the signature with your signing secret before trusting the body, and reject a timestamp more than five minutes old. Any Standard Webhooks library does both. During a secret rotation webhook-signature carries two v1, entries, and a library accepts either one.
Delivery
Answer with a 2xx within a few seconds and do the work afterwards. A failed delivery is retried with backoff. Deliveries can arrive more than once and out of order: use webhook-id to skip duplicates, and fetch the current state from the API when order matters.