API

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

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 :slightly_smiling_face:

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: hubspot-api-scripts/scripts/tag-update.js at master · albertsg/hubspot-api-scripts · GitHub

You can also do test calls from the API documentation website, see for example: Accounts Dashboard | HubSpot

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

@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) :grin:
And since sharing is caring, I like to share code that might be useful for other Hubspot users.