Header authntification user & password

Hello, in order to authentificate to the api endpoint i look forwader to work with i need to use header authetification in order to get a token that will be valid for 12 hours.

Can you tell me how to use header authentification in this case:
-H “X-AUTH-USERNAME: your_username”
-H “X-AUTH-PASSWORD: your_password”

I checked the default header authentification from n8n but allows just for 1 header name

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @Victor_Sava,

We have a custom option you can use as well which lets you use JSON to define your credential. For what you are trying to do the value would be something like…

{"headers": {"X-AUTH-USERNAME":"username", "X-AUTH-PASSWORD": "password"}}

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