# HTTP Request Authenticator Error 

**URL:** <https://community.n8n.io/t/http-request-authenticator-error/301005>\
**Category:** Questions\
**Created:** [June 25, 2026, 7:38pm UTC](https://community.n8n.io/t/http-request-authenticator-error/301005 "2026-06-25T19:38:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oluwatobi\_Ogunmesin](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/oluwatobi_ogunmesin/32/74789_2.png) [@Oluwatobi\_Ogunmesin](https://community.n8n.io/u/Oluwatobi_Ogunmesin)\
**Post date:** [June 25, 2026, 7:38pm UTC](https://community.n8n.io/t/http-request-authenticator-error/301005/1 "2026-06-25T19:38:27Z")

</div>

I’m trying to connect an external API using the HTTP Request node. I’ve verified the endpoint and API key, but I still receive a 401 Unauthorized error. What should I check next?

## Describe the problem/error/question

## What is the error message (if any)?

## Please share your workflow

```auto
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

```

## Share the output returned by the last node

## Information on your n8n setup

- **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:** ![achamm](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/achamm/32/143734_2.png) [@achamm](https://community.n8n.io/u/achamm)\
**Post date:** [June 25, 2026, 7:41pm UTC](https://community.n8n.io/t/http-request-authenticator-error/301005/2 "2026-06-25T19:41:47Z")

</div>

@Oluwatobi_Ogunmesin a 401 with a key you know is good is almost always the key going in the wrong spot rather than being wrong. how does the api expect it, a bearer token, a custom header like x-api-key, or a query param? and which auth option did you pick on the http request node? tell me those two and i can point you at the exact setup.

---

<div class="post-metadata">

**Author:** ![nguyenthieutoan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/nguyenthieutoan/32/120924_2.png) [@nguyenthieutoan](https://community.n8n.io/u/nguyenthieutoan)\
**Post date:** [June 27, 2026, 9:48am UTC](https://community.n8n.io/t/http-request-authenticator-error/301005/3 "2026-06-27T09:48:54Z")

</div>

Welcome @Oluwatobi_Ogunmesin!

A quick way to debug this while you gather the info @achamm asked for: temporarily swap the auth to “No Auth” and add a header manually under “Headers” - e.g., `Authorization: Bearer YOUR_KEY`. If that 401 goes away, the issue is in how n8n’s auth fields are mapping the key (wrong prefix, wrong header name). If it stays 401, the key itself or the endpoint is the problem. This isolates credential config vs. API config in one test run.

---

<div class="post-metadata">

**Author:** ![Merrill](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/merrill/32/174822_2.png) [@Merrill](https://community.n8n.io/u/Merrill)\
**Post date:** [June 27, 2026, 6:14pm UTC](https://community.n8n.io/t/http-request-authenticator-error/301005/4 "2026-06-27T18:14:43Z")

</div>

Hey @Oluwatobi_Ogunmesin, one more thing to check alongside the suggestions made

Watch for extra whitespace in your API key. It’s one of the most common causes of a 401 that “looks right” if you copied the key from a doc or email, there’s often a leading or trailing space that’s invisible in the n8n field but breaks authentication. Retype it manually or paste it into a plain text editor first to strip any hidden characters before pasting into n8n.

Also, some APIs are case-sensitive about the header name itself, Authorization vs authorization vs X-API-Key vs x-api-key. Check the API docs for the exact casing they expect.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/36532_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [September 25, 2026, 6:15pm UTC](https://community.n8n.io/t/http-request-authenticator-error/301005/5 "2026-09-25T18:15:32Z")

</div>

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