I am trying to use the API to pull down a list of Campaigns that a contact has been sent and what links inside that email they’ve clicked.
Your documentation isn’t super clear so I’ve been watching the API calls made from your website when I load a contact.
When I call the /activities route, I get back a huge data set that includes things like Campaigns, Messages, CampaignMessages, Links and LinkData.
Can you explain the differences in these objects and how I can use them to get what a contact has been sent and clicked on?
Thank you,
Aaron
Hi @certifiedangusbeef1
Thank you for writing into our community channel. 
Here’s a brief explanation of the objects you mentioned from the /activities
route:
• Campaigns : Represents the email campaigns sent to contacts. It includes details like the campaign name, type, and status.
• Messages : Refers to the individual messages within a campaign. Each campaign can have multiple messages.
• CampaignMessages : Links campaigns to their messages, providing a way to track which messages belong to which campaigns.
• Links : Represents the links included in the email messages. It includes details about the URL and any associated tracking information.
• LinkData : Provides additional data about the links, such as click statistics and other engagement metrics.To get the list of campaigns a contact has been sent and the links they’ve clicked, you can use the /activities
endpoint to filter and extract the relevant data from these objects.
If you need further assistance with specific API calls, feel free to ask!
-Katie
Principal CX
Thank you for your assistance.
Can you point me to your documentation on the /activities endpoint?
The only reason I knew about it was that I was monitoring the traffic on your site and seeing how you were getting the Campaign & Link Activity for a user.
Perhaps I should make sure I’m not using the wrong endpoint.
Is the /activities the right end point to get Campaigns sent and links clicked on by the Contact?
When I call it, I only get 2 campaigns.
When I load the Contact in the web site, it lists out more Campaigns.