APIs & Integrations

minhtong
Participant

Public API for voting system without authentication

Résolue

Hi there, In my site, I have public voting system for user who votes Up and Down. But I tried to access all Hubspot APIs but It required Oauth 2.0 or Private API key. Are there any solution for accesses API with the specify token or don't need permision ? 

0 Votes
1 Solution acceptée
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

Public API for voting system without authentication

Résolue

Welcome, @minhtong.

 

Almost all HubSpot API endpoints require either API key or OAuth authentication. Some notable exceptions include the form submission endpoints and tracking code API JavaScript methods. If you are seeking to interact with contact record objects, however, your integration will need to use one of these authentication methods.

 

Please note that your end users do not need to be authenticated by HubSpot. The API key and/or OAuth authentication only occurs between your back end server and HubSpot's APIs.

 

Said differently, anonymous visitors who upvote and downvote things on your site will not interact with the HubSpot API at all. Instead, these votes will be logged to your back end through whatever system you have in place. From there, you can send data from your back end server to your HubSpot CRM via the APIs. This is where HubSpot authentication comes into play. Thus, you only need one API key or OAuth token at a time for the integration between your server and HubSpot. Your end users do not need keys or tokens at all.

 

Please let me know if I can clarify further.

Isaac Takushi

Associate Certification Manager

Voir la solution dans l'envoi d'origine

4 Réponses
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

Public API for voting system without authentication

Résolue

Welcome, @minhtong.

 

Almost all HubSpot API endpoints require either API key or OAuth authentication. Some notable exceptions include the form submission endpoints and tracking code API JavaScript methods. If you are seeking to interact with contact record objects, however, your integration will need to use one of these authentication methods.

 

Please note that your end users do not need to be authenticated by HubSpot. The API key and/or OAuth authentication only occurs between your back end server and HubSpot's APIs.

 

Said differently, anonymous visitors who upvote and downvote things on your site will not interact with the HubSpot API at all. Instead, these votes will be logged to your back end through whatever system you have in place. From there, you can send data from your back end server to your HubSpot CRM via the APIs. This is where HubSpot authentication comes into play. Thus, you only need one API key or OAuth token at a time for the integration between your server and HubSpot. Your end users do not need keys or tokens at all.

 

Please let me know if I can clarify further.

Isaac Takushi

Associate Certification Manager
minhtong
Participant

Public API for voting system without authentication

Résolue

Hi Issac, one more question.
To be honest, my front end website built by Hubspot CMS. But no way to access the back end server for create the voting script.

Are there anyway to access the back end CMS ? ot Are there any way to create the new Hubspot server instance ?

0 Votes
IsaacTakushi
HubSpot Employee
HubSpot Employee

Public API for voting system without authentication

Résolue

Hi, @minhtong.

 

Happy to clarify.

 

At this time, HubSpot does not host or support back end scripts. Said differently, it's currently not possible to create a "HubSpot server instance."

 

If your site is built on the HubSpot CMS, you will have to communicate with your external server via AJAX or some other method.


Many HubSpot customers use Heroku and similar solutions to host back end applications.

 

I hope this helps!

Isaac Takushi

Associate Certification Manager
0 Votes
minhtong
Participant

Public API for voting system without authentication

Résolue

Hi Isaac,
Thank you for your answer.
Currently, I have no back end server, so I want to dirretly HubSpot API by Javascript. 
It's seem impossible, let me build my back end server.

0 Votes