APIs & Integrations

mpm
Member

Recent Campaigns

Hi,

When I use the following url to get my campaigns with recent activity (30 days) I seem to be getting all my email campaigns…even some more than 1 year old with no evidence of recent activity.

What could I be missing?

https://api.hubapi.com/email/public/v1/campaigns?hapikey=" + APIKey + (campaignsOffset != “” ? “&offset=” + campaignsOffset : “”)

Thanks.

API documentation: https://developers.hubspot.com/docs/methods/email/get_campaigns

0 Upvotes
2 Replies 2
mpm
Member

Recent Campaigns

Thank you for the information.

It would be great if there was an endpoint to return only campaigns with recent activity. However, until then I will check the lastUpdatedTime property during my processing.

Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Recent Campaigns

Hi @mpm,

After investigating that endpoint, it appears that it will return all campaigns, sorted by most recent activity. I’ll work on updating the docs now.

0 Upvotes