Skip to main content
Best answer

Webhook to Eleven Labs retuning 422

  • June 6, 2023
  • 6 replies
  • 1476 views

bsullinszap

I must be missing something here so sorry if it’s something simple. But it appears I cannot send data to an API this way using the webhook action. Can someone help me understand what’s wrong with this? The error code is 422 and when I try this directly it works fine.

 

Best answer by Troy Tessalone

@bsullinszap

Try using the Webhook Custom Request (POST) Zap action.

 

Put this in the Body field.

{
"text": "here is some text to make into a voice",
"model_id": "eleven_monolingual_v1",
"voice_settings": {
"stability": 0.35,
"similarity boost": 0.81
}
}

 

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

6 replies

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • June 6, 2023

Hi @bsullinszap 

Good question.

Try using the Webhook Custom Request (POST) Zap action.

 


bsullinszap
  • Author
  • New
  • June 6, 2023

Here is the actual request I’m using to test

 

 


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • Answer
  • June 6, 2023

@bsullinszap

Try using the Webhook Custom Request (POST) Zap action.

 

Put this in the Body field.

{
"text": "here is some text to make into a voice",
"model_id": "eleven_monolingual_v1",
"voice_settings": {
"stability": 0.35,
"similarity boost": 0.81
}
}

 


bsullinszap
  • Author
  • New
  • June 6, 2023

Hi @bsullinszap 

Good question.

Try using the Webhook Custom Request (POST) Zap action.

 

That seems to work but now the question is how to create an mp3 file out of the response?

 

I tried using the google drive action but it created a text file with a bunch of stuff in it that isn’t just the audio

 

 


bsullinszap
  • Author
  • New
  • June 6, 2023

Hi @bsullinszap 

Good question.

Try using the Webhook Custom Request (POST) Zap action.

 

That seems to work but now the question is how to create an mp3 file out of the response?

 

I tried using the google drive action but it created a text file with a bunch of stuff in it that isn’t just the audio

 

 

Used your tutorial to create the file now, worked great!

 

 


Itsagoodname

Thanks Troy!