Skip to main content
Best answer

Zapier & DeepL Webhooks

  • April 10, 2024
  • 2 replies
  • 147 views

Vlado at FakturaOnline

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!

Best answer by Troy TessaloneBest answer by Troy Tessalone

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.

 

View original
Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

2 replies

Troy Tessalone
Forum|alt.badge.img+14
  • Zapier Expert
  • 30916 replies
  • Answer
  • April 10, 2024

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.

 


Vlado at FakturaOnline

Perfect, thank you very much!