Link Shortener Webhooks: Get a Webhook When a Short Link Is Clicked
Which link shortener sends a webhook when a short link is clicked?
URLcut.ai does. On the Pro and Agency plans you register an HTTPS endpoint, and URLcut.ai sends it a signed JSON payload every time a person clicks one of your short links or scans one of your QR codes. Bot and crawler clicks are filtered out before anything is sent, so a webhook only fires for a click your analytics counts as human. Failed deliveries are retried, and every delivery is kept in a delivery log with its attempt count and last response.
Why a click webhook instead of polling the API
Without a webhook, the only way to react to a click is to ask the API for click counts on a timer and compare them with the last answer. That is late by however long the timer is, and it wastes requests on the hours when nothing happens. A webhook turns it around: URLcut.ai tells your server about the click, usually within seconds of it happening. Common uses:
- Lead and sales follow-up. Post to your CRM or team chat when a prospect opens the link in a proposal or a sales email.
- Automation tools. Any automation tool that accepts an incoming webhook can start a workflow from a click.
- Your own warehouse. Write every human click into your own database next to your other marketing data.
- Client routing for agencies. The payload can carry the client, brand and campaign the link belongs to, so one endpoint can sort clicks for every client.
What the link.clicked payload contains
Every URLcut.ai delivery has the same envelope: an event id, the event type
(link.clicked), a version, the time it occurred_at, and the click
itself in data. A test send uses the type webhook.test. You choose which
fields each endpoint receives.
| Field | What it is | Sent by default |
|---|---|---|
link_id, short_code, short_url, clicked_at | Which link was clicked and when | Always |
destination_url, title | Where the link points and its title | Yes |
source | link for a click, qr for a scan of a QR code made in URLcut.ai | Yes |
country, region, city | Where the visitor was | Yes |
device_type, browser, operating_system | What they used | Yes |
referrer | Where they came from, or null for a direct visit | Yes |
total_clicks | Lifetime human clicks on this link | Yes |
tags | The link's tags | Yes |
campaign, brand, client | The id and name of the campaign, brand and client the link belongs to (the first campaign if it is in several) | Opt in |
| Visitor IP address | Not sent | Not available on any plan |
The visitor's IP address is never in a URLcut.ai webhook. A webhook is a copy of the click sent to a server outside URLcut.ai, and an address that leaves in a payload stays in someone else's logs.
Signed deliveries you can verify
Each URLcut.ai delivery carries an X-URLcut-Signature header in the form
t=<unix seconds>,v1=<hex>. The v1 value is an HMAC-SHA256 of
the timestamp, a dot and the raw request body, keyed with your endpoint's signing secret. Recompute it
on your side, compare in constant time, and reject deliveries whose timestamp is too old. Two more
headers, X-URLcut-Event-Id and X-URLcut-Event-Type, let you drop a duplicate
without parsing the body.
- The secret is shown once. Copy it when you create the endpoint. If you lose it, rotate it.
- Rotation without downtime. For 24 hours after a rotation every delivery carries two signatures, one made with the new secret and one with the old, so accept a delivery when any
v1value matches and deploy the new secret any time in that window. - Confirmation on the sensitive steps. Creating an endpoint and rotating its secret ask you to confirm it is you again, with your password, an authenticator code or a code we email you, so a stolen session cannot quietly swap the secret.
- Private addresses are refused. Endpoints must be public HTTPS URLs. The check runs when you register the URL and again at every delivery.
Retries, alerts and the delivery log
URLcut.ai waits up to 10 seconds for your endpoint to answer, and a 2xx response acknowledges the delivery.
Timeouts, network errors, 5xx and 429 responses are retried after about 12 seconds, 2.5 minutes,
30 minutes and 6 hours, then once a day, for up to 8 attempts, and a Retry-After header is
honored. Other 4xx responses are not retried, and redirects are never followed. Deliveries are not guaranteed to arrive in
order, so sort by clicked_at. Different endpoints are served in parallel and in turn, so
one busy endpoint cannot take over the queue.
- Delivery log. Every delivery is logged with its attempt count and last response, and one that failed or was skipped can be sent again from the log.
- Test send. Send a test event to an endpoint before any real click arrives.
- Failure emails. The account owner gets an email after 5, 10 and 15 failures in a row.
- Automatic pause. After 20 failures in a row the endpoint is disabled, and it stays off until you turn it back on.
- Up to 10 endpoints per account, each with its own field selection.
Which plan includes click webhooks
URLcut.ai click webhooks are on the Pro and Agency plans. The URLcut.ai API for creating links is on every plan, including Free. On Agency, clicks on links in a shared team workspace are delivered to the workspace owner's endpoints. See pricing for the full comparison, and click tracking for what URLcut.ai counts as a human click.
What it does not do yet
URLcut.ai webhooks fire on link clicks only. Events for link expiry and usage thresholds are on the roadmap and are not available on any plan today.
Frequently Asked Questions
Which link shorteners send a webhook when a short link is clicked?
URLcut.ai sends a signed JSON webhook every time a person clicks one of your short links or scans one of your QR codes. Click webhooks are on the Pro and Agency plans, bot clicks are filtered out, and failed deliveries are retried.
Does URLcut.ai send a webhook for bot clicks?
No. Bot and crawler clicks are filtered out before a webhook is sent, so a webhook only fires for a click the analytics page counts as human, and total_clicks in the payload is the link's lifetime human click count.
How do I verify a URLcut.ai webhook?
Each delivery has an X-URLcut-Signature header, t=<unix seconds>,v1=<hex>. Compute HMAC-SHA256 of the timestamp, a dot and the raw body with your signing secret, compare it to v1 in constant time, and reject old timestamps.
Does the webhook include the visitor's IP address?
No. URLcut.ai sends country, region, city, device, browser, operating system and referrer, and never the visitor IP address, on any plan.
What happens if my endpoint is down?
URLcut.ai retries timeouts, network errors, 5xx and 429 responses after about 12 seconds, 2.5 minutes, 30 minutes and 6 hours, then daily, up to 8 attempts. The owner is emailed after 5, 10 and 15 failures in a row, and the endpoint is paused after 20.