POST
/
json
/
v1
/
translate
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"
  }
}

Headers

jt-api-key
string
required

API authentication key

Body

application/json
Translation document to be created

The body is of type object.

Response

200
application/json
Translation document created successfully

The response is of type object.