Skip to navigation

Track link clicks

View as Markdown
Legacy Tracker Documentation

For the legacy tracker doc, check our guide here.

This endpoint sends information about link clicks.

Track a link click by email

curl --request POST \
--url https://in-automate.brevo.com/api/v2/trackLink \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'ma-key: YOUR_MA_KEY' \
--data '
{
"email": "abc@email.com",
"link": "abc.com/document.pdf",
"properties": {
"key": "value"
}
}
'

Track a link click by external ID (no email required)

curl --request POST \
--url https://in-automate.brevo.com/api/v2/trackLink \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'ma-key: YOUR_MA_KEY' \
--data '
{
"identifiers": {
"ext_id": "customer_98765"
},
"link": "abc.com/document.pdf",
"properties": {
"key": "value"
}
}
'

Parameters

AttributeDatatypeDescription
emailStringEmail used to identify the user. Required unless identifiers is provided.
identifiersObjectContact identifiers. At least one key required if email is omitted. See supported identifiers.
linkStringLink to track
propertiesObjectCustom fields. These user properties populate your contact database.

Response

Response codeMessageDescription
204Link has been tracked successfullyNo content in the response — the link has been tracked.
400Bad requestInvalid, missing, or out-of-range parameters.