APIs & Integrations

NLacaria
Participant

JWT Token and Webhook for API

hello,

 

does Hubspot generate JWT tokens? We are creating a custom sign up form that will link together our application (web app, app.boardroominsiders.com) and want to verify the user in Hubspot. From what i have read, Hubspot does not natively generate the token (can it?) but can it verify a token via a webhook sent from the email? If we want to send out a custom URL in each email, what is the best way to authenticate that user back to Hubspot?

 

Or if i am overthinking this, let me know. We have the main list of contacts in Hubspot, and the main list of users in the app, and all users in the app are noted as lifecycle stage "other" in hubspot.

 

any ideas?

 

UPDATE: 

My initial thoughts:
  1. Send email from hubspot that contains URL (with token) to our app.
  2. In the app we validate token to confirm that email valid and that link still relevant

What would be best method to do this in Hubspot, verify and write a record back to hubspot once verification is done? Also, what would be best method to authenticate? JWT or something easier/else?

 

thanks

0 Upvotes
4 Replies 4
NLacaria
Participant

JWT Token and Webhook for API

It doesn't look like we can use any tokens (personalization) to verify a user and link from within hubspot. The app is hosted app.boardroominsiders.com technically internally since that domain lives in hubspot. Now I just need to automate the process instead of one by one via personalization. Confused. 

0 Upvotes
NLacaria
Participant

JWT Token and Webhook for API

0 Upvotes
Teun
Recognized Expert | Diamond Partner
Recognized Expert | Diamond Partner

JWT Token and Webhook for API

Hi @NLacaria ,

 

HubSpot currently does not generate or validate JWT tokens. You could however generate the token in your application and store it on a contact object. That way, you can pass that property to your email and use it as you want or use the Webhook action (enterprise) to validate the token.



Learn more about HubSpot by following me on LinkedIn or YouTube

Did my answer solve your issue? Help the community by marking it as the solution.


0 Upvotes
NLacaria
Participant

JWT Token and Webhook for API

Thanks. What if the list of contacts in Hubspot contains more people than in the app, how would I start the verification from hubspot?

0 Upvotes