APIs & Integrations

TSantos10
Member

Get marketing emails by email campaign ID

SOLVE

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 Accepted solutions
GRajput
Solution
Recognized Expert | Platinum Partner
Recognized Expert | Platinum Partner

Get marketing emails by email campaign ID

SOLVE

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


View solution in original post

GRajput
Solution
Recognized Expert | Platinum Partner
Recognized Expert | Platinum Partner

Get marketing emails by email campaign ID

SOLVE

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


View solution in original post

3 Replies 3
GRajput
Solution
Recognized Expert | Platinum Partner
Recognized Expert | Platinum Partner

Get marketing emails by email campaign ID

SOLVE

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
Member

Get marketing emails by email campaign ID

SOLVE

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

GRajput
Solution
Recognized Expert | Platinum Partner
Recognized Expert | Platinum Partner

Get marketing emails by email campaign ID

SOLVE

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