Skip to main content

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 t ] in Zapier Webhooks.

 

DeepL API Documentation:

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

 

My setup of Webhooks:

 

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

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.

 


Perfect, thank you very much!