Regarding the new Marketplace install flow.

Hi HubSpot Team,

We have a WordPress plugin that integrates with HubSpot. We have a technical question about implementing the new seamless install flow.

The Challenge:

When a user installs from HubSpot Marketplace:

  1. HubSpot sends code + returnUrl to my server
  2. We exchange the code for OAuth tokens
  3. User stays in HubSpot ✓

Problem: We don’t know which WordPress site to deliver the tokens to.

Unlike SaaS apps where users have accounts on our system, our WordPress plugin users don’t have accounts with us. Each user has their own independent WordPress installation, and we have no way to identify their site during the Marketplace install flow.

Question:

1. What’s the recommended approach for WordPress/CMS plugin developers to handle this?

2. How do other WordPress plugin integrations solve the token delivery problem when the install originates from HubSpot instead of the user’s WordPress site?

Any guidance would be appreciated.

Thanks!

Hi @MSharifMiah and welcome, we are delighted to have you here! :confetti_ball:
Thanks for asking the HubSpot Community!
Let’s invite our Top Experts to join this discussion: Hi @Anton, @d-lupo and @Christensen do you have recommendations to help @MSharifMiah, please?
Thanks so much and have a wonderful day!
Bérangère

Hey @MSharifMiah,

To my knowledge HubSpot’s seamless install flow assumes a central app account, which doesn’t map cleanly to standalone WordPress sites. HubSpot can’t tell you which WP site to deliver tokens to.

The supported pattern is to complete OAuth first, store tokens keyed by HubSpot portal ID, then add a post-install linking step in the WordPress plugin to associate that portal with the correct site.

There’s no fully automatic HubSpot-first solution without this extra handshake as I know.

Best Regards,