Track link clicks

📘

Legacy Tracker Documentation

For the legacy tracker doc, check our guide here.

This endpoint allows you to send information about the link clicks. You can consult the sample cURL request below:

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": "[email protected]",
  "link": "abc.com/document.pdf",
  "properties": {
    "key": "value"
  }
}
'

Parameters are defined below:

AttributeDatatypeDescriptionValue
emailStringEmail address to identify the user[email protected]
linkStringLink to be trackedabc.com/document.pdf
propertiesObjectContains your custom fields. These user properties will populate your contact databaseSee example above

Response

Response codeMessageDescription
204Link has been tracked successfullyNo content is shown in message which shows link has been tracked
400Bad requestBad request due to invalid, missing or out_of_range parameters

What’s Next