# HTTP Request Tool error using Oauth 2 API generic credential type

**URL:** <https://community.n8n.io/t/http-request-tool-error-using-oauth-2-api-generic-credential-type/73954>\
**Category:** Questions\
**Tags:** ai\
**Created:** [January 31, 2025, 12:27pm UTC](https://community.n8n.io/t/http-request-tool-error-using-oauth-2-api-generic-credential-type/73954 "2025-01-31T12:27:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anthony\_Brebion](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/anthony_brebion/32/38646_2.png) [@Anthony\_Brebion](https://community.n8n.io/u/Anthony_Brebion)\
**Post date:** [January 31, 2025, 12:27pm UTC](https://community.n8n.io/t/http-request-tool-error-using-oauth-2-api-generic-credential-type/73954/1 "2025-01-31T12:27:26Z")

</div>

Hi,  
Since, I’m not able to use the Predefined Salesforce Oauth 2 credential type because of a missing custom scope for the Pardot API (now Salesforce Account Engagement), I switched to the Oauth 2 API generic credential type.

It works fine with the required custom scope but only when using the classic HTTP Request node, not with the HTTP Request Tool of AI agents. I got an AI Tool error message saying “Credentials not found”.

Any idea ?

---

<div class="post-metadata">

**Author:** ![n8n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/n8n/32/196425_2.png) [@n8n](https://community.n8n.io/u/n8n)\
**Post date:** [January 31, 2025, 12:27pm UTC](https://community.n8n.io/t/http-request-tool-error-using-oauth-2-api-generic-credential-type/73954/2 "2025-01-31T12:27:27Z")

</div>

It looks like your topic is missing some important information. Could you provide the following if applicable.

- **n8n version:**
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**
- **Operating system:**

---

<div class="post-metadata">

**Author:** ![ria](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ria/32/99251_2.png) [@ria](https://community.n8n.io/u/ria)\
**Post date:** [February 7, 2025, 11:43am UTC](https://community.n8n.io/t/http-request-tool-error-using-oauth-2-api-generic-credential-type/73954/3 "2025-02-07T11:43:28Z")

</div>

Hi @Anthony_Brebion

It could be that the workflow running the AI Agent with the HTTP request tool does not have access to the actual credentials. Have you checked that the credentials are shared with that project/workflow?

---

<div class="post-metadata">

**Author:** ![Anthony\_Brebion](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/anthony_brebion/32/38646_2.png) [@Anthony\_Brebion](https://community.n8n.io/u/Anthony_Brebion)\
**Post date:** [February 7, 2025, 12:25pm UTC](https://community.n8n.io/t/http-request-tool-error-using-oauth-2-api-generic-credential-type/73954/4 "2025-02-07T12:25:46Z")

</div>

Humm… I defined the credentials in the http request tool directly, as I did when using the standard http request node. It works in the second use case, not in the first one.  
Same credentials setup for both as described here:

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/e/9/e98941191ef6c6c8dadb3450e474e473370028dd.png)

---

<div class="post-metadata">

**Author:** ![ria](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ria/32/99251_2.png) [@ria](https://community.n8n.io/u/ria)\
**Post date:** [February 7, 2025, 1:57pm UTC](https://community.n8n.io/t/http-request-tool-error-using-oauth-2-api-generic-credential-type/73954/5 "2025-02-07T13:57:36Z")

</div>

You can check the `Sharing` tab of the credential itself if it has been shared with the project / person that runs the workflow.

[https://docs.n8n.io/credentials/credential-sharing/](https://docs.n8n.io/credentials/credential-sharing/)

---

<div class="post-metadata">

**Author:** ![Anthony\_Brebion](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/anthony_brebion/32/38646_2.png) [@Anthony\_Brebion](https://community.n8n.io/u/Anthony_Brebion)\
**Post date:** [February 7, 2025, 2:40pm UTC](https://community.n8n.io/t/http-request-tool-error-using-oauth-2-api-generic-credential-type/73954/6 "2025-02-07T14:40:39Z")

</div>

I’m on self hosted n8n.  
The http request tool and the standard http request node that I am using for testing purposes are in the same workflow.

---

<div class="post-metadata">

**Author:** ![Anthony\_Brebion](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/anthony_brebion/32/38646_2.png) [@Anthony\_Brebion](https://community.n8n.io/u/Anthony_Brebion)\
**Post date:** [February 19, 2025, 8:09am UTC](https://community.n8n.io/t/http-request-tool-error-using-oauth-2-api-generic-credential-type/73954/7 "2025-02-19T08:09:02Z")

</div>

Hi,  
No updates in this?  
Thank you

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [May 20, 2025, 8:09am UTC](https://community.n8n.io/t/http-request-tool-error-using-oauth-2-api-generic-credential-type/73954/8 "2025-05-20T08:09:39Z")

</div>

Closed on May 20, 2025, 8:09am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
