Authentication
Verifying the identity of the system or user making an API call. Methods include API keys, OAuth tokens, Basic Auth, and JWT. Poor authentication handling is the #1 cause of integration security vulnerabilities.
Expert insight
Most integration failures blamed on "the API being down" are actually authentication failures: an expired OAuth token, a rotated API key nobody updated in the workflow, or a session that timed out. Before assuming an external service is broken, check the actual HTTP status code, a 401 means it's your credentials, not their uptime.
In a real workflow
A workflow connects to Google Sheets with OAuth and to an internal API with a bearer token, both stored as credentials rather than in the workflow itself.
Common mistakes
- Using a personal login for business-critical automations, which breaks when that person leaves.
- Not monitoring expiring credentials until workflows start failing.
Complexity level
Requires some familiarity with automation concepts.
Related terms
OAuth (Open Authorisation)
An authentication standard that lets users grant third-party apps access to thei…
API Key
A secret token that authenticates your automation with a third-party service. Tr…
JWT (JSON Web Token)
A compact, self-contained authentication token used by many APIs. JWTs expire an…
See it in action
Want Authentication built into your automation?
Book a free audit and we'll show you exactly how this applies to your business.
Get my free automation plan →Who we build for
Run a firm, an agency or an online store? We automate the work behind it.
Done-for-you n8n workflows and Claude AI agents, fixed price, maintained for you.
- Professional firms Onboarding, documents, billing and reporting run on their own. See what we automate →
- Agencies and SaaS teams Custom n8n and Claude builds, client reporting and internal tools. See what we automate →
- E-commerce brands Orders, support, returns and stock handled without the busywork. See what we automate →
More in Security
Keep exploring
Environment variable
A configuration value stored outside your workflow code API keys, pass…
JWT (JSON Web Token)
A compact, self-contained authentication token used by many APIs. JWTs…
OAuth (Open Authorisation)
An authentication standard that lets users grant third-party apps acce…
Token (API)
A credential string used to authenticate API requests. Tokens are eith…
Webhook security
Verifying that incoming webhooks are genuinely from the expected sourc…
Access token
A short-lived credential issued after OAuth authentication that grants…
Go deeper
Guides that cover Authentication
n8n HTTP Request Authentication: API Keys, Bearer Tokens and OAuth2
How to send API keys and tokens from n8n without pasting them into the URL: predefined vs generic credentials, which generic type matches each API, and how to read 401 and 403 errors.
$env and Credentials in the n8n Code Node: What Works and What Doesn't
The n8n Code node can read environment variables and custom variables, but never stored credentials. What to use instead, and how to fix "access to env vars denied".
Fix n8n "The requested webhook is not registered" (Test and Production)
The 404 "webhook is not registered" error almost always means the URL and the workflow state do not match. Five causes and the exact fix for each, test and production.