⚙ Operations Hub

BRogers1
Member

Custom Code Not Allowing API Call to Hubspot

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.

0 Replies 0

0 Replies

No replies on this post just yet

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 post

Need help replying? Check out our Community Guidelines