Requirements for 'Get all campaign IDs for a portal' API to Return Campaign

Hello,

In my HubSpot dev account, I’ve created a campaign under Marketing > Campaigns. However, when I use the v1 Get all campaign IDs for a portal API (GET /email/public/v1/campaigns/by-id), no campaigns are returned. Are there any special things I need to do/set on my campaign in order for information about it to be returned by this API?

Thanks!

Hi @IntegrationDev,

It looks like the documentation isn’t very clear about it but the endpoint you’re calling hits email campaigns, not the campaigns object where you can link assets :

Here’s an extract from a related endpoint (Get campaign data for a specific ID:disappointed_face:

“…each campaign represents a specific send of an email,…”

I’ve tested by running the API call on my account and the response I get contains email campaigns only.

Did a little bit of digging to make sure and I found this thread with recent replies but still no update from the dev team : there’s not Campaign API at the moment available to the public, so for now the only option left is to wait until they release a beta.

You could subscribe to that post so you get notifications whenever there’s an update to it.

Hope this helps !
If it does, please consider marking this answer as a solution :slightly_smiling_face:

Thank you, @LMeert!