cURL
curl --request POST \ --url https://api.example.com/api/core/files/translate \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form file='@example-file' \ --form 'target_language=<string>' \ --form source_language=auto
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
Translate a file to the target language
Bearer token authentication. Format: 'Bearer '
Successful Response
Was this page helpful?