Requirements for 'Get all campaign IDs for a portal' API to Return Campaign
SOLVE
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?
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 :
"...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 🙂
CTO @ Mi4 Hubspot Platinum Partner and Integration Expert
Passionate human, very curious about everything data and automation.
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 :
"...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 🙂
CTO @ Mi4 Hubspot Platinum Partner and Integration Expert
Passionate human, very curious about everything data and automation.