Webhooks are under Vanity Links → Webhooks.
Add a webhook#
- Click New.
- Choose the Webhook Type: Custom Webhook, Slack, Discord, GitHub Webhooks or Stripe Events. A preset fills in the headers and the payload for you.
- Fill in the Webhook URL.
- Turn on Global Webhook to send it for every link, or choose one Vanity Link.
- Leave Active on and save.
Headers and payload#
Change Request Headers and Payload Template to fit the receiving system. The payload supports these placeholders:
| Placeholder | Value |
|---|---|
{slug} |
The vanity path |
{link_id} |
The ID of the link |
{timestamp} |
Time of the click |
{ip_address} |
IP address of the visitor |
{total_hits} |
Total clicks on the link |
{unique_hits} |
Unique visitors of the link |
Webhooks are sent through the queue, so the Paymenter queue worker must run.