Best answer

Zapier & DeepL Webhooks

  • 10 April 2024
  • 2 replies
  • 32 views

Userlevel 1

Hi!

I’m working with DeepL API and I’d love to use Zapier to send requests using webhooks, but I have troubles understanding how to format it correctly. I will provide you with the DeepL API documentation snapshot and the images of how I’m trying to set it up. Specifically what troubles me is the part with “text”:[“Hello, world!”], I’m not sure how to use [ ] in Zapier Webhooks.

 

DeepL API Documentation:

curl -X POST 'https://api.deepl.com/v2/translate' \
--header 'Authorization: DeepL-Auth-Key [yourAuthKey]' \
--header 'Content-Type: application/json' \
--data '{
"text": [
"Hello, world!"
],
"target_lang": "DE"
}'

 

My setup of Webhooks:

 

So my question is how to insert [“Hello world!”] into the “text” under “data” so it is correctly formatted. Thank you!

icon

Best answer by Troy Tessalone 11 April 2024, 00:15

View original

2 replies

Userlevel 7
Badge +14

Hi @Vlado at FakturaOnline 

Try using this Zap Action: Webhooks - Custom Request (POST)

That will allow you to use JSON in the Body field.

{
"text": [
"Hello, world!"
],
"target_lang": "DE"
}

 

You can probably remove this Header.

 

Userlevel 1

Perfect, thank you very much!

Reply