Email link click tracking for AI agents

Updated 2 December 2026

Short answer: the agent swaps each link in the email for a tracked address that records the click and then redirects to the original page. A person's click in a browser counts as opened, even when the recipient's mail app blocked or hid the tracking image. Clicks by security software are labeled and not counted. The destination of a link is never stored.

Click tracking is the second signal next to the pixel. Like the pixel, it applies to every email the agent sends for you. Links are wrapped by default, and you can tell the agent to track opens without tracking links.

How a link is tracked

  1. The agent creates the tracked message as usual (POST /v1/messages, or the didtheyopen_track_email MCP tool, which takes the links in the same call).
  2. It sends the link addresses from the email's HTML, in order, to POST /v1/messages/<id>/links, up to 50 per call.
  3. Each address comes back with a tracked_url. The agent puts it in the href and leaves the visible link text alone.
  4. When someone clicks, the tracker records the click and answers with a redirect to the original page.

Some links are never tracked and come back with tracked_url: null: mailto and anything else that is not a web address, unsubscribe and opt-out links, addresses that carry credentials, and addresses over 2,048 characters. Links in the plain-text part are left alone.

Which clicks count

Who fetched the link What happens
A person, in an ordinary browser Labelled opened. Counts as an open and as a click.
Security software, a scanner or a crawler Labelled prefetch_likely. Not counted.
Apple's relay or another mail proxy Labelled prefetch_likely. Not counted.
An Apple or Google network, with a normal browser Labelled unknown. Not counted.
A link checker or preview that only asks for headers Redirected, never recorded.

Timing is never used to decide. A person can click within seconds of delivery. For the image-load labels, see How accurate is email open tracking?.

What you hear back

A person's first click is worth telling. If the email was already opened, the agent says so, for example "Dana opened it and clicked the link." If the click is the first sign, because images were blocked or Apple Mail hid the open, the click is reported as the first open. In the API, insight.clicks counts clicks labelled opened, and each event carries kind (open or click) and the position of the link.

What is stored, and what is not

Links never break

A valid tracked link always redirects, even after the tracked message is paused, expired or deleted. Only the recording stops. A link that has been altered answers "This link is not valid" and never redirects anywhere, so a tracked link cannot be bent to point at another site.

Limits to know

Turn it on

Link tracking comes with the normal setup. Paste the prompt, and the agent wraps links by default on every email it sends for you:

Developers can call the endpoint directly: see Email open tracking API for AI agents and the API docs.

25 tracked emails are free, with no card. Then Personal is $9/month (up to 300 tracked emails a day) or Developer is $29/month (up to 2,000 a day). No recipient addresses, subjects, content or IP addresses are stored. A tracked message and its opens are deleted after 30 days by default, or sooner if you set a shorter expiry, from when the message is created.

Questions

Does a link click count as an open?

Yes, when a person clicks in an ordinary browser. Someone who clicked a link had the email open, so the click is labelled opened even if the tracking image never loaded. Clicks by security software, mail proxies and link checkers are not counted.

Do you store the link destinations?

No. The destination address is never stored or logged. It is encrypted inside the tracked link itself, and the tracker decrypts it only to answer the click with a redirect.

Will tracked links break after the tracked message expires?

No. A valid tracked link always redirects to the original page, even after the message is paused, expired or deleted. Only the recording stops.

Are unsubscribe links tracked?

No. Unsubscribe and opt-out links, mailto links, addresses that carry credentials and addresses over 2,048 characters are never tracked.

Do security scanners that click every link count as clicks?

No, when they can be recognised. Scanners, crawlers and Microsoft's link scanner are labelled prefetch_likely and not counted. A security tool that clicks from an ordinary network with a real browser can still look like a person.

Related guides