HubSpot supports API keys and OAuth as per the documentation. But the OAuth is a 3-legged OAuth and needs the user to complete the Auth process. This makes it not possible to initiate the OAuth from the backend.
We can complete the OAuth flow from the frontend and then pass the Auth token and refresh token to the backend. But the current Auth capability suggests that OAuth was made for frontend-based HubSpot integrations.
Can we use the API key from multiple users?
Wanted to clarify since the below is mentioned in the Auth document (ref : Accounts Dashboard | HubSpot
HubSpot's APIs allow two means of authentication: OAuth and API keys. While most endpoints support both methods (unless the documentation for a specific endpoint says otherwise), OAuth is generally recommended. API keys are good for rapid prototyping or integrations designed for single-account use, but any integration designed for multi-customer use or listing on the App Marketplace must be built as an app using HubSpot’s OAuth protocol.
Is this a recommendation or is it mandatory?