URGENT: HTTP module returns “Unauthorized” with ElevenLabs API despite valid API key

:bullseye: What is your goal?

I am trying to send text from an OpenAI module in Make to the ElevenLabs Text-to-Speech API using the HTTP module and receive an audio response.

:thinking: What is the problem & what have you tried?

I am receiving an “Unauthorized” error in the HTTP module when calling the ElevenLabs API.

Setup:

Headers:

  • xi-api-key: new API key generated in ElevenLabs
  • Content-Type: application/json
  • Accept: audio/mpeg

Body:
{
“text”: “{{2.Result}}”,
“model_id”: “eleven_multilingual_v2”
}

What I’ve tried:

  • Generated multiple new API keys
  • Re-entered headers manually (no copy/paste issues)
  • Turned off header mapping
  • Tested with static text instead of mapped data
  • Confirmed webhook and OpenAI modules are working correctly

The HTTP module still returns “Unauthorized” consistently.

I am unsure if this is:

  • an issue with how Make sends headers
  • an authentication issue with ElevenLabs
  • or a configuration issue on my end

Any guidance would be appreciated.

:clipboard: Error messages or input/output bundles

HTTP module response:

Status: 401 Unauthorized

Response body:
{
“detail”: “Unauthorized”
}

Additional info:

  • The request is being sent from Make’s HTTP module
  • API key is included in headers as “xi-api-key”
  • The same key was regenerated multiple times
  • No other error details are returned

Have you tried the elevenlabs module to make an API call directly?

1 Like

Better still, just use the Create a speech synthesis module in the ElevenLabs app.

Then you don’t even need to worry about JSON body formatting … just drag and drop!

1 Like