Skip to main content

Slack and Discord

Post a message to a Slack or Discord channel when a link is created, deleted or clicked. LinkLane writes the message for you, for example:

Click on `spring-sale` ✦ unique — US, Mobile, via instagram.com

PlanPro and above

Connect a channel​

  1. Create an incoming webhook in your workspace:
    • Slack: add the Incoming Webhooks app to a channel. The URL starts with https://hooks.slack.com/.
    • Discord: open the channel's settings, then Integrations → Webhooks → New Webhook. The URL starts with https://discord.com/api/webhooks/.
  2. In LinkLane, open Integrations, pick Slack or Discord, paste the URL and choose events.
  3. Click Send test to post a sample click.

You can connect one Slack channel and one Discord channel. Saving again replaces the URL and events.

Events​

EventMessage
link.clickedThe code, country, device and referrer. Unique clicks are marked.
link.createdThe new code and its destination.
link.deletedThe deleted link's id.

Clicks on a busy link post one message each. For high-traffic links, consider a webhook to your own server instead.

When delivery fails​

After 10 failed posts in a row, LinkLane turns the integration off and sends you an in-app notification. Fix the URL, then turn it back on in Integrations.

Dashboard endpoints​

These need a dashboard session.

POST/api/integrations
Auth
Dashboard session only
Plan
Pro and above

Body parameters​

NameTypeRequiredDescription
typestringYesslack or discord.
urlstringYesThe incoming webhook URL.
eventsstring[]YesAt least one of link.clicked, link.created, link.deleted.
GET/api/integrations
Auth
Dashboard session only
Plan
Pro and above
PATCH/api/integrations/{integration_id}
Auth
Dashboard session only
Plan
Pro and above

Changes url, events or active. Turning it back on resets the failure count.

DELETE/api/integrations/{integration_id}
Auth
Dashboard session only
Plan
All plans
POST/api/integrations/{integration_id}/test
Auth
Dashboard session only
Plan
Pro and above

Posts a sample click in the background and returns { "ok": true } straight away.