APIs & Integrations

AlbertMuñoz
Membro

Get all Timeline from an account

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.

 

https://api.hubapi.com/crm/v3/timeline/{appid}/event-templates

 

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.

 

https://app-eu1.hubspot.com/private-apps/26091250/1424168

 

I tried with  26091250 and 1424168  with no luck.

 

So, what is the right way to get all timeline event from an account?

 

Thank you

 

0 Avaliação positiva
2 Respostas 2
AlbertMuñoz
Membro

Get all Timeline from an account

hello,  i tried the endpoint you gave, but seems it doesnt support GET ,

 

https://api.hubapi.com/crm/v3/timeline/events

 

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?

 

Thanks

0 Avaliação positiva
himanshurauthan
Autoridade no assunto | Parceiro Elite
Autoridade no assunto | Parceiro Elite

Get all Timeline from an account

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.

Thanks & Regards
Himanshu Rauthan

Digital Marketing & Inbound Expert In Growth Hacking Technology
0 Avaliação positiva