You have a workflow that connects to Google, Slack, or an external API. Where do you paste the key so it doesn't sit in plain text in a node and leak with your workflow export?
The answer: in Credentials. Four things to get right:
- What a credential is: a separate, stored object with your access data (API key, username and password, OAuth2 token). The node only points to which one to use, so the secret never sits in its fields.
- Where you create it: in the node, in the Credential to connect with field (Create new credential), or in the Credentials menu. One credential can be attached to many workflows.
- HTTP Request: in the Authentication field choose Generic Credential Type and e.g. Header Auth, instead of typing the key into a header by hand.
- OAuth2: instead of copying tokens, you sign in through the browser in the credential window, and n8n refreshes access for you.
Watch out for:
- A key pasted straight into a URL or node header ends up in the JSON export and in screenshots. A credential is not exported together with its secret.
- One credential “for everything”: when you change or revoke it, you break every workflow that uses it. Keep separate ones for testing and production.
- A name like “Google account 3” will tell you nothing a month from now. Name the credential so it's clear what it's for.
Rule of thumb: a secret has one home — Credentials — and the workflow keeps only its name.
Upcoming meetups and workshops are listed in the Events section.