Recent Campaigns


#1

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


#2

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.


#3

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.