Feb 7, 2023 1:44 PM - edited Feb 7, 2023 1:45 PM
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.
I tried with 26091250 and 1424168 with no luck.
So, what is the right way to get all timeline event from an account?
Feb 8, 2023 1:34 PM
hello, i tried the endpoint you gave, but seems it doesnt support GET ,
the response is 405 Method not allowed.
I have opened all menus of private app, and i cant see the AppId, perhaps, could you send a pic where it should be located?
Feb 8, 2023 3:05 AM
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:
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.
Thanks & Regards