API Reference
cURL
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!" }
Translate text from one language to another.
Bearer authentication header of the form Bearer <token>, where <token> is your Writer API key.
Bearer <token>
<token>
Successful response
The response is of type object.
object
Was this page helpful?