cURL
curl --request POST \ --url https://api.jsontrans.com/json/v1/translate \ --header 'Content-Type: application/json' \ --header 'jt-api-key: <jt-api-key>' \ --data '{ "from_lang": "en", "to_lang": "zh", "origin_json": "{\"text\": \"Hello, world!\"}", "ignored_fields": "image,url" }'
{ "code": 200, "msg": "Translation document created successfully", "data": { "id": "5fdb00c9-ce05-484e-a7e2-5f578953114b" } }
Create a new translation document
API authentication key
Translation document to be created
The body is of type object.
object
Translation document created successfully
The response is of type object.