Hi, I want to get data about our landing pages using the API. We are unable to use OAuth in our application and cannot justify getting the Enterprise account in order to use the API Key in the analytics API. Is there any other way I can get that data via the API?
Hi @CarterChilds,
Thank you for reaching out to Community.
Would you be able to specify exactly which API you are trying to use? Here is the API Overview documentation. Please include the link to one of the pages so that the community can help you further.
Thank you,
Natsumi
Hi, @CarterChilds.
Unfortunately, no. HubSpot only supports two methods of authentication: OAuth tokens and API keys.
I totally understand if an Enterprise subscription is out of the question in order to use an API key with the Analytics API, but can you expand upon why you are unable to use OAuth?
We are using this data for a small app within our marketing team and do not want users to have to authenticate through Hubspot.
Hi, @CarterChilds.
A single user can authenticate the app for the entire account and all its users. As long as you have an automated process to refresh access tokens, no one will have to go through the auth flow again unless the app becomes disconnected.
Will that still not work?
I can defintiely give that a try, thank you.
Is there a guide on how to set up OAuth in this manner?
Hi, @CarterChilds.
All HubSpot apps use OAuth in this way, so the OAuth 2 Quickstart Guide is probably the best resource, as it walks through the entire process.
Once the backend process to request access and refresh tokens is completed, a user connecting the app to your account will complete these steps.