APIs & Integrations

IntegrationDev
Contributor

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?

 

Thanks!

0 Upvotes
1 Accepted solution
LMeert
Solution
Guide | Platinum Partner
Guide | Platinum Partner

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

SOLVE

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😞

"...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 🙂

Agence Mi4 - Data DrivenCTO @ Mi4
Hubspot Platinum Partner and Integration Expert

Passionate human, very curious about everything data and automation.

Any problem with Hubspot you need help solving ?

Let me know !

View solution in original post

0 Upvotes
2 Replies 2
LMeert
Solution
Guide | Platinum Partner
Guide | Platinum Partner

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

SOLVE

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😞

"...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 🙂

Agence Mi4 - Data DrivenCTO @ Mi4
Hubspot Platinum Partner and Integration Expert

Passionate human, very curious about everything data and automation.

Any problem with Hubspot you need help solving ?

Let me know !

0 Upvotes
IntegrationDev
Contributor

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

SOLVE

Thank you, @LMeert!