# Cannot grab credentials on create node

**URL:** <https://community.n8n.io/t/cannot-grab-credentials-on-create-node/19670>\
**Category:** Questions\
**Tags:** credentials, node, http-request, development, custom-node\
**Created:** [November 12, 2022, 6:34am UTC](https://community.n8n.io/t/cannot-grab-credentials-on-create-node/19670 "2022-11-12T06:34:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![afonsolopez](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/afonsolopez/32/19111_2.png) [@afonsolopez](https://community.n8n.io/u/afonsolopez)\
**Post date:** [November 12, 2022, 6:34am UTC](https://community.n8n.io/t/cannot-grab-credentials-on-create-node/19670/1 "2022-11-12T06:34:50Z")

</div>

Hey guys!

I successfully created a node that calls a 3rd service API, but I want to add a credential feature to that node. The thing is that I’m not getting how to properly grab the credential value to make a Basic auth.

 ![Screenshot from 2022-11-12 03-27-59](https://europe1.discourse-cdn.com/n8n/original/3X/e/7/e7f62d23901d9f8ec6f56e2289fa64f20967ddf1.png)

- **n8n version: 0.202.0**
- **Running n8n via npm**

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [November 12, 2022, 6:23pm UTC](https://community.n8n.io/t/cannot-grab-credentials-on-create-node/19670/2 "2022-11-12T18:23:40Z")

</div>

Welcome to the community @afonsolopez!

Did you have a look at the documentation [here](https://docs.n8n.io/integrations/creating-nodes/build/)? There it is described how it should work. It looks like you are currently mixing together two different things which should be in separate files (credential definition + node definition). I could write here what is exactly wrong and how it should look like but it would take quite a while to write and I would then just repeat what is already documented under the above URL.

Does the documentation above help?

---

<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:** [March 23, 2023, 8:42pm UTC](https://community.n8n.io/t/cannot-grab-credentials-on-create-node/19670/3 "2023-03-23T20:42:40Z")

</div>

Closed on March 23, 2023, 8:42pm UTC

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