We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
May 25, 2022 10:23 PM
Hello,
I'm using the custom code option (Python) within a workflow and am trying to call the Hubspot API. I am able to successfully use the Hubspot python library, but I need to call the users endpoints, which are not contained in v4.0.4 of the Hubspot python client used in the workflow client.
When I try to use requests to call the /users endpoint, it seems like the workflow client automatically redacts my Hubspot token in the request and I get an auth error. Below is my error followed by the URL used in the GET request, hapikey was redacted by my client automatically
{'status': 'error', 'message': 'Authentication credentials not found. This API supports both API Key and OAuth 2.0 authentication and you can find more details at https://developers.hubspot.com/docs/methods/auth/oauth-overview', 'correlationId': '2f17cd2d-2fa1-4404-8f9d-85cbb96bd06f', 'category': 'INVALID_AUTHENTICATION'}
https://api.hubapi.com/settings/v3/users/43977603?hapikey=<REDACTED>
My end goal here is to get the email address associated with a particular user that was just assigned a deal to pass along to an outside report. I don't see a standard way of getting that in the properties, but if I missed something please let me know.
No one has replied to this post quite yet. Check back soon to see if someone has a solution, or submit your own reply if you know how to help! Karma is real.
Reply to postNeed help replying? Check out our Community Guidelines