Webhooks
ProRequires a Pro or Builder plan
What are Webhooks?
Webhooks let AWSYS.CO push real-time event data to any URL you control — your server, a Zapier endpoint, or a serverless function. Every time a defined event occurs (a link is clicked, created, updated, deleted, expired, or hits a limit), AWSYS.CO sends an HTTP POST request to your endpoint containing a JSON payload with full event details. This enables integrations with CRMs, analytics pipelines, Slack bots, and more without polling the API.
Requirements
Webhooks require a Pro or Builder plan. Pro accounts can create up to 2 webhooks; Builder accounts up to 10. Your endpoint must return a 2xx HTTP status code within 5 seconds, or the delivery counts as failed. Failed deliveries are not retried.
Step-by-step: Create a webhook
- Go to Settings → Webhooks and click New Webhook.
- Enter the Endpoint URL — the URL that will receive the POST request. Both HTTPS and HTTP URLs are accepted; HTTPS is recommended.
- Choose which events to subscribe to. Available events:
link.click,link.created,link.updated,link.deleted,link.expired,link.limit_reached,link.geo_blocked. You can subscribe to multiple events per webhook. - Copy the Signing Secret shown. AWSYS.CO signs every payload with this secret (HMAC-SHA256, header
X-Webhook-Signature) so your server can verify the request came from us. - Click Save. Use the Send Test Event button to fire a sample payload to your endpoint and confirm it is receiving correctly.
- Check the list under Settings → Webhooks: each webhook shows whether it is Active or Disabled and when it was last triggered.
Configuration reference
| Event name | Triggered when |
|---|---|
link.click | A visitor clicks the short link (one event per click) |
link.created | A new short link is created |
link.updated | An existing link's settings are changed |
link.deleted | A link is permanently deleted |
link.expired | A link's expiry date is reached |
link.limit_reached | A link's maximum click count is reached |
link.geo_blocked | A visitor from a geo-blocked country attempts to access the link |
Common questions
What happens if my endpoint is down?
AWSYS.CO does not retry failed deliveries. A delivery fails on a non-2xx status, a connection error, or no answer within 5 seconds, and that event is not sent again. After 10 failed deliveries in a row the webhook is disabled and shows as Disabled in Settings → Webhooks; a successful delivery before that resets the count. To resume, create a new webhook (delete the disabled one first if you are at your plan's webhook limit).
How do I verify the webhook signature?
Compute HMAC-SHA256 of the raw request body using your signing secret, then compare with the value in the X-Webhook-Signature header. Reject requests where they don't match. See the Developer Docs for a Node.js example.
Can I use short event names like "click" instead of "link.click"?
No. You must use the full prefixed event names (e.g., link.click). Using short names returns an INVALID_EVENTS error when creating or updating a webhook.
Can I create webhooks via the API?
Yes. Send POST /api/v1/webhooks with your API key and a JSON body containing url, events (an array of full event names) and, optionally, secret (your own signing secret). The 201 response contains the webhook's id, url, name, events, createdAt, lastDeliveryAt and lastStatus. It does not include the signing secret, so send your own secret when you create the webhook, or open the webhook in Settings → Webhooks to copy the one AWSYS.CO generated.