Hi Community and Hubspot Dev/Support team,
Doing a integration for a Platform !
Does anybody know a way to store configuration and tokens in hubspot like Salesforce provides? is it possible ( any criteria like user counts or agreement need )?
Hi Community and Hubspot Dev/Support team,
Doing a integration for a Platform !
Does anybody know a way to store configuration and tokens in hubspot like Salesforce provides? is it possible ( any criteria like user counts or agreement need )?
Hey @ramkumar1021 and Happy Friday!
Great question, thanks for asking the HubSpot Community! ![]()
I’d recommend starting with these resources that should point you in the right direction:
I’d love to also hear from our Top Experts: Hi @Anton, @sylvain_tirreau and @SteveHTM do you have any tips or best practices to share with @ramkumar1021, please?
Thanks so much and have a brilliant weekend!
Bérangère
What about creating an App Settings page?
It mostly depends on what you’re trying to do. You might be able to use App Objects to store data:
Overview of app objects - HubSpot docs
Moderator note: While this solution may not address the original poster’s specific situation, it could be helpful for other community members facing similar challenges.
HubSpot provides Secrets, env variables, that are accessible via HubSpot’s serverless functions, custom code actions, and the HubSpot CLI.
Limitations
If you are trying to set up a public app that is configurable for your users, you can use a settings page as the UI, but any settings must be stored externally in your own dev system. The most straightforward way is to build it all and host it all externally.
@MichaelMa if you are doing like that please do change it. as the document states the data is available to your org. other integration and people also can able to fetch it if that ! it is not meant for security configs. seriously surprising to see hubspot is not that developer friendly in security means. : (
Hi @ramkumar1021 and thanks for sharing your valuable feedback!
I’d recommend sharing it via the Developer feedback form so that it reaches the right team! I can also submit it on your behalf if that’s easier, just let me know.
Thanks so much and have a lovely day!
Bérangère
Available to your organization does not mean available to everyone in the organization.
You do understand you can control who has access to the App Settings page via permissions (App Marketplace permission)? Which, presumably, is not available to everyone because you normally wouldn’t want your standard users to just install whatever apps they want.
The scopes available to apps do NOT include App Marketplace so no, other apps cannot access the app settings of other apps.
Yes, it would be great if HubSpot provided a way to set secrets for public apps or maybe enable sensitive/highly sensitive fields in App Settings to be even more secure but the App Settings is not available to every user in your hub.
Thanks @Berangere . If you may, please share it with developers.
![]()
. @MichaelMa that’s my suggestion that’s all. App object and Settings page is irrelevant and even so setting page’s data(configuration is also have to be store in out backed (doc said)). That’s can we drop this convo.
I complete agree that handling secrets securely in public apps requires extra care, especially since client-side exposure is a major risk.
​While HubSpot has specific architectural limits for public app configurations, following general API security best practices like using a secure backend proxy to handle authentication tokens rather than exposing them directly is crucial. For foundational guidelines on this, resources like Secure Coding Practices are great to reference, though you’ll need to adapt them to fit HubSpot’s OAuth flow and backend server requirements.