Webhooks

This is a

How do Webhooks work?

Webhooks in LinkCentral allow you to send data to external services after a link is clicked. This enables powerful integrations with platforms such as Zapier, Make.com, n8n, or any custom endpoint that supports incoming webhook requests.

Webhooks are sent asynchronously, meaning they do not delay the redirect process for the user. The payload is sent as JSON in the request body, with the header: Content-Type: application/json

Enabling Webhooks

To enable and configure webhooks:

  • Go to LinkCentral Settings > Plugin > Additional Features.
  • Enable the Webhooks toggle.
  • Click Configure to access the webhook settings.

Configuration Options

  • Webhook URL: The endpoint URL that will receive the request.
  • HTTP Method: The HTTP method used to send data. Supported methods: POST, PUT, PATCH, DELETE.
  • Delivery Method: Choose how webhooks are delivered.
    • Immediate: Webhooks are sent synchronously during the redirect process. The user will only be redirected after the webhook request completes*. This ensures webhook delivery but may slow down redirects if your webhook endpoint is slow.
      * The webhook timeout is max 5 seconds.
    • Asynchronous: Webhooks are scheduled to be sent 1 second after the redirect. The user is redirected immediately without waiting for webhook delivery. This provides faster user experience but webhook delivery depends on your WordPress cron running properly (on average, it takes 3 to 60 seconds).
      The webhook timeout is max 10 seconds.
  • Payload Data: Choose which data points to include in the webhook payload. Options are:
    • Link ID
    • Slug
    • Link Title
    • Destination URL
    • User Agent
    • Unique Visitor ID
    • Country
    • Referring URL
    • Click Date/Time
    • User ID (if logged in)

Note:

  • If an enabled value is unavailable (e.g., country cannot be detected), a null value will be sent.

Example Payload

{
"link_id": 1,
"slug": "my-affiliate-link",
"title": "My Affiliate Product",
"redirection_url": "https://example.com/product",
"user_agent": "Mozilla/5.0…",
"unique_visitor_id" : "12345-abcde",
"country": "UK",
"referring_url": "https://mysite.com/blog-post",
"click_datetime”: "2025-01-15 14:30:25",
"user_id": 123
}

Example use cases

Here are some example use cases to inspire you on how to leverage webhooks and LinkCentral’s dynamic redirects with external tools like Zapier, Make.com, n8n, IFTTT, and others:

  • Log all link clicks into a Google Sheet
  • Send a Slack or email alert when a specific link is clicked
  • Track geographic performance by country in Airtable
  • Trigger a Make.com scenario to update campaign performance dashboards
  • Send targeted emails to signed-in users after they click a link
Contents