We are planning to integrate HubSpot with our in-house application using a Private App token (server-to-server REST API calls).
Our current plan:
Create a HubSpot Developer Account and a Test Account (Sandbox) for exploration.
Create a Private App in the sandbox, define only the required scopes, and generate an access token.
Use the token in REST API calls to HubSpot from our backend application.
Optionally configure webhooks in the Private App for real-time updates.
Once confirmed, replicate the same setup in the production HubSpot account with minimal scopes.
Since HubSpot does not have an official Java SDK, we plan to make direct HTTP requests from Java (or use a community library).
Our questions:
Is this the correct approach for integrating our application with HubSpot using a Private App token?
Are there any additional best practices we should follow when setting this up in both sandbox and production?
Is there anything specific to watch out for when calling the API from Java without an official SDK?