Hello, i created a private app, and can access almost all object i need ( contacts, companies, deal, products, quotes ), but i cant access the timeline events, the response is 401 unauthorized, but im using the same api key.
About the AppId i must use in the url, i know that it should be in the app dashboard but i cant see it , so i tried with both numbers you can see in browser when you are inside the app config.
To retrieve timeline events from your HubSpot account using the API, you need to have the necessary permissions to access the timeline data. To access the timeline data, you need to make a GET request to the following endpoint:
https://api.hubapi.com/crm/v3/timeline/events
Additionally, you need to include your API key in the request header as an Authorization header. The format should be as follows:
Authorization: Bearer <API_KEY>
Regarding the appId you are trying to use in the URL, it is likely that you are using the incorrect identifier. The appId is unique to each private app and is generated when you create a new private app. You can find your private app's appId by navigating to the app in your HubSpot account, and then clicking on the "App settings" button.
If you are still encountering a 401 Unauthorized error, it could be that your API key does not have the necessary permissions to access the timeline data. You can check the permissions for your API key in your HubSpot account by navigating to Integrations > APIs.