---
title: "Email link clicked"
method: POST
path: "email.link_clicked"
tags: ["Webhook Events"]
---

# Email link clicked

`POST email.link_clicked` (webhook)

A recipient followed a link of a message sent with `trackLinks: true`. Every http(s) link in the html was rewritten to a Zernio redirect that records the click and sends the reader on to `click.url`.

Security scanners in corporate mail gateways sometimes follow links on delivery, which reports as a click.

## Payload

- WebhookPayloadEmailLinkClicked: Webhook payload for email.link_clicked.
  - `id` string, required
  - `profiles` object[]: The profiles this event belongs to, each with the externalId you set on it (null when none is set). Use it to route the event to your tenant without storing Zernio profile ids. Present on every event tied to a profile, absent on events that belong to none. Events spanning several profiles (a post published to accounts of different profiles) list each once.
    - `id` string, required
    - `externalId` string, nullable, required
  - `test` boolean: Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
  - `event` 'email.link_clicked', required
  - `account` object, required
    - `accountId` string
    - `profileId` string
    - `platform` string
    - `username` string
    - `displayName` string, nullable
  - `email` WebhookEmailTrackedMessage, required: The tracked message an email.* event is about. `messageId` and `threadId` are the provider ids (read the message with `GET /v1/email/messages/{messageId}`); `metadata` is what you sent with it.
    - `messageId` string
    - `threadId` string
    - `trackingId` string: Also returned as `data.trackingId` by the send.
    - `metadata` object, nullable
  - `click` object, required
    - `url` string: The original link target the recipient was redirected to.
    - `linkIndex` integer: Position of the link in the html, from 0.
    - `clickedAt` string, date-time
    - `count` integer: Clicks on any link of the message so far.
  - `timestamp` string, date-time, required

## Acknowledgement `200`

Webhook received successfully

---

[API](https://skmtc.dev/zernio/apis/zernio-api.md) - [All operations](https://skmtc.dev/zernio/apis/zernio-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zernio/apis/zernio-api/revisions/a79c233ebf22?raw)
