HTTP Request node works in Postman but returns 401 in n8n

HTTP Request node works in Postman but returns 401 in n8n

Describe the problem/error/question

I’m using exactly the same endpoint and API key that works in Postman, but n8n keeps returning 401 What else should I check

What is the error message (if any)?

Please share your workflow

(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:

Hey @Ajibade_Bright, while you wait for a response, here are some things that might help:

Suggested resources

Automatically matched to your question.

Docs:

Forum:

@achamm, @ianamaral, @rka - you’ve helped with similar issues before, can you take a look?

Automatically suggested by n8n’s community bot. It’s a pilot - please share feedback here.

Hi @Ajibade_Bright

If it works in Postman but not in n8n, it’s usually not the endpoint, it’s the request itself

Compare the headers from Postman with the ones n8n is sending. Authorization, Content-Type, Accept, and any custom headers all need to match

Also check whether Postman is automatically handling authentication or redirects behind the scenes. Exporting the Postman request as cURL is a good way to compare it against what n8n sends.

Easiest for us to help you is if you show us what is in postman and what is set in n8n. Without that we can only guess.

Thanks man, will check it out