POST
/
v1
/
translation
curl --location --request POST https://api.writer.com/v1/translation \
 --header "Authorization: Bearer <token>" \
 --header "Content-Type: application/json" \
--data-raw '{"model":"string","source_language_code":"string","target_language_code":"string","text":"string","formality":false,"length_control":false,"mask_profanity":false}'
{
  "data": "¡Hola, mundo!"
}

The Translation API allows you to translate text from one language to another. See Language support for a list of supported languages.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your Writer API key.

Body

application/json

Response

200 - application/json

Successful response

The response is of type object.