# 401 - Authentication credentials not found - which permissions needed for webhook?

**URL:** <https://community.hubspot.com/t/401-authentication-credentials-not-found-which-permissions-needed-for-webhook/73262>\
**Category:** APIs & Integrations\
**Tags:** webhooks\
**Created:** [January 19, 2023, 9:41am UTC](https://community.hubspot.com/t/401-authentication-credentials-not-found-which-permissions-needed-for-webhook/73262 "2023-01-19T09:41:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RDoorn](https://avatars.discourse-cdn.com/v4/letter/r/eada6e/32.png) [@RDoorn](https://community.hubspot.com/u/RDoorn)\
**Post date:** [January 19, 2023, 9:41am UTC](https://community.hubspot.com/t/401-authentication-credentials-not-found-which-permissions-needed-for-webhook/73262/1 "2023-01-19T09:41:00Z")

</div>

Hi,  
Building my own app in Hubspot to connect with a custum connector in Power Automate, using Oauth. Works fine!

Now I’m registering for a webhook from PA to Hubspot, setting up goes fine. Webhook is triggered, but then getting a error:

**Header** : “x-hubspot-auth-failure”: “401 Unauthorized”,

**Body** : {  
“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 [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/methods/auth/oauth-overview)”,  
“correlationId”: “xxx”,  
“category”: “INVALID\_AUTHENTICATION”  
}  
Is there any special permission/authorization required for the usage of the webhooks?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [January 19, 2023, 11:17pm UTC](https://community.hubspot.com/t/401-authentication-credentials-not-found-which-permissions-needed-for-webhook/73262/2 "2023-01-19T23:17:59Z")

</div>

Hi, @RDoorn 👋 Thanks for reaching out. Can you post an example of what your request looks like? It’s not possible to give a definitive answer, but in other posts with the same error, a common culprit was sending the authorization in the URL.

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![RDoorn](https://avatars.discourse-cdn.com/v4/letter/r/eada6e/32.png) [@RDoorn](https://community.hubspot.com/u/RDoorn)\
**Post date:** [January 20, 2023, 8:31am UTC](https://community.hubspot.com/t/401-authentication-credentials-not-found-which-permissions-needed-for-webhook/73262/3 "2023-01-20T08:31:04Z")

</div>

Hi [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074) , thanks. This is a sample  
Method = put

{  
“Authorization”: “Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJS…”  
}

{  
“throttling”: {  
“period”: “SECONDLY”,  
“maxConcurrentRequests”: 10  
}  
}  
TargetURL is added dynamicaly.
