Credential problems in node HTTP Request from n8n to Vapi

I’m stuck at the HTTP Request node when using n8n and Vapi.
I’ve copied the API key from Vapi, and yet I keep getting this message: Problem in node ‘HTTP Request‘
Authorization failed - please check your credentials.
This is my text in URL: https://api.vapi.ai/call/{{ $(‘Webhook’).item.json.headers[‘x-call-id’] }}. I clicked Send Headers and then wrote below Authorization, then Bearer followed by the Private API key from Vapi with no spaces after Bearer.
Can somebody help?

Describe the problem/error/question

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 @Jakob06, how is it going? Have you tried using the API through Postman?
Perhaps the problem is due to not using space after Bearer.

2 Likes


ATTENTION!

****But I suggest to create Generic Credentials with an Header Auth. *****

I could’ve sworn that I had tried with and without space, but clearly not cuz now I added a space and that solved it :heart_eyes: Thanks so much!

1 Like

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