Send HubSpot callback code as variable

Hello Developers,

I am developing full integration hubspot module for KrispCall(Cloud Telephony System). After successful integration, hubspot redirects me to the redirect_uri i had defined in my developer account.

Now my question is can we hide this code=456875458-899-557855 value into some varible like code=integration, or https://www.redirect_url?code=some_variable_name

i have attached SS also for more clarification here.

Thank you in Advance.


code=success

in above url i want to hide code into some variable, e.g. code=success or code=integration

Hi, @bsharad :waving_hand: Thanks for the interesting question! What you are referring to is part of the OAuth 2 spec and not something HubSpot created nor something we can affect.

You may know this, and I’ll add it anyway, this authorization ‘code’ is used by your app to get an access token and a refresh token. This is expected to be ‘code’ by both HubSpot and any client libraries or tools you might be using.

In this case, without having any supporting documentation from HubSpot, i.e. our Developer Docs on Working with OAuth, it’s safe to assume this is not possible.

If you have a documented case where you see this type of variable being used with the `code` parameter, please consider adding it here, so others can learn from it.

Best,

Jaycee