How can I get email details from a campaign id?

Hi,

I’ve got a requirement to extract some content from an email whenever a campaign has been created. I’m using the Get campaign IDs with recent activity for a portal endpoint to identify the campaigns and believe I need to use the marketing emails API to be able to get the html. Unfortunately, I can’t work out how to link between the campaigns api and the marketing emails api…the Get all marketing emails endpoint suggests I can use the campaign querystring parameter as a filter but whenever I do that it returns zero results (even though I can see the campaign id in the allEmailCampaignIds collection for an email. Does anyone know the correct way to get email data for a campaign?

Hey, @MYoungSS :waving_hand: Thanks for reaching out!

To help make sure we’re all on the same page and to give the community more context, I have a few questions:

  • Can you share an example of the request you’re making when trying to use the campaign query string parameter with the Get all marketing emails endpoint?
  • Are you getting any error messages returned with your requests? If so, can you share them?
  • Have you tried making these requests outside your code or app? In Postman, for example?

Thank you for the additional information! — Jaycee