Can't activate Custom App integration(I need it for webhook)

Hello Hubspot team,

We have Hubspot standard account(The one for storing contacts/lists/forms, it named MSTP, you can see it in screen with ID=7081797), and also I have created second developer account(the first one in screen ID=7281358) I have created an custom APP (App ID=214492 and Client ID=“a3cb094d-ffef-4e0f-ad68-e1bd2ecb1798”) under developer account for using webhook(I already configured webhook endpoint and subscribed to correspoding contact properties and activated each subscription).
We want to add/use this app as App integration from developer account for standard Hubspot account, so that we can catch(be notified by webhook API) contacts subscribe/unsubscribe events in our external custom product. I followed official descriptions how to create/activate App Integration and webhook, but after providing permission by following the endpoint of OAuth2 authorization the app didn’t get activated, Here are the documentations I followed:

Here is the Url I use for OAuth authorization and also I’m logged in in my browser to Hubspot standard account:
https://app.hubspot.com/oauth/authorize?client_id=a3cb094d-ffef-4e0f-ad68-e1bd2ecb1798&scope=contacts%20automation&redirect_uri=https://www.example.com/
after confirmation it redirecting to URL with format Example Domain , so that this mean everything gone ok(as described in App Integration activation docummentation)
But the fact is that App didn’t getting activated, webhook didn’t work and there are no any apps listed in standart Hubspot account Settings->Integrations->Connected apps page,
Please have a look and let me know what is the issue, I have already talked to online Support guy and he forwarded me here into community forumn to ask/find solutions for the problem,
Thank You!
This is screen of both Developer and Standard Hubspot accounts(this is actually the screen it shows when I open OAuth2 authorization URL, and I’m chosing second(the standard contact/lists) account to approve/activate app integration)

Hi @tigran-muradyan

To confirm, looking at your post, it appears your integration process stops once you retrieve the code, as per the comment:

after confirmation it redirecting to URL with format https://www.example.com/?code=xxxx , so that this mean everything gone ok(as described in App Integration activation docummentation)

This is not the final step, this code is part of the final request to gain your Access and Refresh tokens that are used to finalise the OAuth handshake. You’ll see here in the documentation linked, the final call that must be made:

This request will consist of the code as well as the Client ID, Client Secret and Redirect_URI, with the data looking like this:

grant_type=authorization_code&client_id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&client_secret=yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy&redirect_uri=https://www.example.com/&code=zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz

Once this call is made, the App will be integrated and the Access Token will be confirmation of the access with the Refresh Token being used to refresh the access of the App to the Portal.

I hope this helps!

Hi Willson,

Thank you for your support and detailed explainaton. That fixed the issue.

Thanks

I created an account just to upvote your solution. You’re awesome, thank you!.