APIs & Integrations

MickaelRANDRIAN
Member | Partner
Member | Partner

API

SOLVE

hello! this is a beginner question
How to use the endpoints of the hubspot api
thanks

0 Upvotes
1 Accepted solution
albertsg
Solution
Guide

API

SOLVE

Hi @MickaelRANDRIAN, first you need to get your API key by going to Settings --> Integrations --> API key.

 

Once you have the API key, you can create any script to connect with Hubspot's API and do whatever you want 🙂

 

I have an example in one of my GitHub repos that might be useful for you to get started and to understand a bit the process. Here's the link: https://github.com/albertsg/hubspot-api-scripts/blob/master/scripts/tag-update.js 

 

You can also do test calls from the API documentation website, see for example: https://developers.hubspot.com/docs/api/cms/blog-post 



Did my answer help you? Mark it as a solution

View solution in original post

3 Replies 3
albertsg
Solution
Guide

API

SOLVE

Hi @MickaelRANDRIAN, first you need to get your API key by going to Settings --> Integrations --> API key.

 

Once you have the API key, you can create any script to connect with Hubspot's API and do whatever you want 🙂

 

I have an example in one of my GitHub repos that might be useful for you to get started and to understand a bit the process. Here's the link: https://github.com/albertsg/hubspot-api-scripts/blob/master/scripts/tag-update.js 

 

You can also do test calls from the API documentation website, see for example: https://developers.hubspot.com/docs/api/cms/blog-post 



Did my answer help you? Mark it as a solution
dennisedson
HubSpot Product Team
HubSpot Product Team

API

SOLVE

Gonna have to go spy on the repo, @albertsg !


HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates.
Learn More.

albertsg
Guide

API

SOLVE

@dennisedson  Not much to see yet, just some scripts I use from time to time to automatize tasks or to achieve things I cannot do through Hubspot's UI, like updating the domain of several landing pages at once (the only "official" way to do this is updating landing pages one by one manually -- or changing the primary domain but this can only be used once and not very recommended) 😁

And since sharing is caring, I like to share code that might be useful for other Hubspot users.



Did my answer help you? Mark it as a solution