Skip to main content
Resend Docs

Search documentation

Type to search this documentation.

On this pageOverview

email.clicked

Event triggered whenever the recipient clicks on an email link.

All webhook payloads follow a consistent top-level structure with event-specific data nested within the data object.

  • type (string) — The event type that triggered the webhook (e.g., email.clicked).

  • created_at (string) — ISO 8601 timestamp when the webhook event was created.

  • data (object) — Event-specific data containing detailed information about the event. The data object for the email.clicked event contains the following parameters:

object parameters
  • broadcast_id (string) — Unique identifier for the broadcast campaign (if applicable)
  • created_at (string) — ISO 8601 timestamp when the email was created
  • email_id (string) — Unique identifier for the specific email
  • message_id (string) — RFC Message-ID header value for the email
  • from (string) — Sender's email address. For sent events, this matches the value passed at send time and may include a display name (e.g., Name <email@domain.com>). For received events, this is the bare email address only; the display name from the original From: header is preserved in headers.from on the retrieve endpoint.
  • to (array) — Array of impacted recipient email addresses
  • subject (string) — Email subject line
  • template_id (string) — Unique identifier for the template used (if applicable)
  • tags (Record<string, string>) — Object of tag key-value pairs associated with the email.

Example:

JSON
{
  "category": "welcome",
  "user_id": "1234567890"
}
  • click (object) — Click tracking details
click object
  • ipAddress (string) — IP address of the user who clicked the link
  • link (string) — The URL that was clicked
  • timestamp (string) — ISO 8601 timestamp when the click occurred
  • userAgent (string) — User agent string of the browser that clicked the link
JSON
{
  "type": "email.clicked",
  "created_at": "2026-11-22T23:41:12.126Z",
  "data": {
    "broadcast_id": "8b146471-e88e-4322-86af-016cd36fd216",
    "created_at": "2026-11-22T23:41:11.894Z",
    "email_id": "56761188-7520-42d8-8898-ff6fc54ce618",
    "message_id": "<111-222-333@email.example.com>",
    "from": "Acme <onboarding@resend.dev>",
    "to": ["delivered@resend.dev"],
    "click": {
      "ipAddress": "122.115.53.11",
      "link": "https://resend.com",
      "timestamp": "2026-11-24T05:00:57.163Z",
      "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Safari/605.1.15"
    },
    "subject": "Sending this example",
    "template_id": "43f68331-0622-4e15-8202-246a0388854b",
    "tags": {
      "category": "confirm_email"
    }
  }
}
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu