Hi,
A 400 Bad Request from DeepL usually means the request format is invalid rather than an authentication issue.
A few things to check:
Content-Type: application/json.https://api-free.deepl.com/v2/translate for the free API key).Authorization header is in the correct format (DeepL-Auth-Key <your-api-key>).Your JSON:
{
"text": ["hello"],
"target_lang": "JA"
}
looks valid, so the issue is likely with the headers or how the request is being serialized.
Could you also share:
400 Bad Request).That will help narrow down the root cause.
Kindly mark this as the accepted answer if it helps.
Hi Cheh,
I always suggest to use Postman (postman.com) or other REST/API tools to validate all consumed or offered API calls first before using them in Mendix.
Once you see them working in your Postman collection, you can easy implement them into Mendix.
Also testing against your offered REST/API calls is easy with Postman and shows potential risks or issues with the date itself or authentication.
Many greetings,
Timo