La fonction de suggestion automatique permet d'affiner rapidement votre recherche en suggérant des correspondances possibles au fur et à mesure de la frappe.
API authentication in AWS Lambda function in Custom Workflow Action (public app)
Résolue
I am trying to build a custom workflow action for a public app. It will contain some some logic using an external AWS Lamdba function. Once the action is triggered the "ActionURL" will trigger the Lamdba function. In the Lambda function I want to assign an owner to a contact using the API. However, in the Lamdba function I do not have the API/Authentication available for the user. How can I handle? I like it to make a public app so I cannot store the API credentials in the secrets manager in API as it will be different for every user.
API authentication in AWS Lambda function in Custom Workflow Action (public app)
Résolue
Hello,
The way that you would want to do it is by storing the Oauth creditials first through a different flow, and then have the Lambda function pull from the Oauth credentials. You would want to do it through the following flow:
Verify the request came from HubSpot.
Identify the portalId from the payload.
Look up that portal’s stored refresh token.
Exchange the refresh token for an access token (if needed).
Call HubSpot APIs with that access token to assign an owner by updating hubspot_owner_id on the contact.
API authentication in AWS Lambda function in Custom Workflow Action (public app)
Résolue
Hello,
The way that you would want to do it is by storing the Oauth creditials first through a different flow, and then have the Lambda function pull from the Oauth credentials. You would want to do it through the following flow:
Verify the request came from HubSpot.
Identify the portalId from the payload.
Look up that portal’s stored refresh token.
Exchange the refresh token for an access token (if needed).
Call HubSpot APIs with that access token to assign an owner by updating hubspot_owner_id on the contact.
API authentication in AWS Lambda function in Custom Workflow Action (public app)
Résolue
Hi @siempeters Thank you for reaching out to the Community! I'd like to invite some community members who are subject matter experts to join this conversation. @GiantFocal@BrandonWoodruff@karstenkoehler - Would you be able to share any insights on this? Your expertise would be greatly appreciated. Best, Victor
Loop Marketing is a new four-stage approach that combines AI efficiency and human authenticity to drive growth. Learn More