APIs & Integrations

TSantos10
Miembro

Get marketing emails by email campaign ID

resolver

Hello,

 

I am trying to use the GET /marketing-emails/v1/emails API to fetch a marketing email based on the campaignID. It seems like "campaign" is no longer returned in the API response and has been replaced by "allEmailCampaignIds".

 

Is there a way to pass a query filter on  "allEmailCampaignIds". When I tried it out, the API responded with:

"Invalid query Filtering by \"all_email_campaign_ids eq\" is not allowed"

2 Soluciones aceptadas
GRajput
Solución
Experto reconocido | Partner nivel Gold
Experto reconocido | Partner nivel Gold

Get marketing emails by email campaign ID

resolver

Hi @TSantos10 

 

Use this API to get marketing emails and then you can filter it out marketing campaign name property.

https://developers.hubspot.com/docs/api/marketing/marketing-email

 

GRajput_0-1726151915446.png

 

I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member.
Thanks!

 

 




Gaurav Rajput
Director, MarTech( Growth Natives)

Book a meeting


Ver la solución en mensaje original publicado

GRajput
Solución
Experto reconocido | Partner nivel Gold
Experto reconocido | Partner nivel Gold

Get marketing emails by email campaign ID

resolver

Hi @TSantos10 

 

You can get details about the campaign using this API.

 

GET  /marketing/v3/campaigns/{campaignId}

 

I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member.
Thanks!

 




Gaurav Rajput
Director, MarTech( Growth Natives)

Book a meeting


Ver la solución en mensaje original publicado

3 Respuestas 3
GRajput
Solución
Experto reconocido | Partner nivel Gold
Experto reconocido | Partner nivel Gold

Get marketing emails by email campaign ID

resolver

Hi @TSantos10 

 

Use this API to get marketing emails and then you can filter it out marketing campaign name property.

https://developers.hubspot.com/docs/api/marketing/marketing-email

 

GRajput_0-1726151915446.png

 

I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member.
Thanks!

 

 




Gaurav Rajput
Director, MarTech( Growth Natives)

Book a meeting


TSantos10
Miembro

Get marketing emails by email campaign ID

resolver

Hi @Gau, unfortunately I only have the emailCampaignID and I need the ability to filter using it.

GRajput
Solución
Experto reconocido | Partner nivel Gold
Experto reconocido | Partner nivel Gold

Get marketing emails by email campaign ID

resolver

Hi @TSantos10 

 

You can get details about the campaign using this API.

 

GET  /marketing/v3/campaigns/{campaignId}

 

I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member.
Thanks!

 




Gaurav Rajput
Director, MarTech( Growth Natives)

Book a meeting