Translates free text into a target language. Technician identity comes from the authenticated request (user_id header handled by /), not from the request body.

Request Information

URI Parameters :

None.

Body Parameters :

JSON body with text and target_language.

TranslateTextRequest
NameDescriptionTypeAdditional information
text

The free text to translate.

string
target_language

The language to translate into - a language name or IETF tag, e.g. "French", "nl" or "pt-BR".

string

Response Information

Resource Description :

200 OK with translated_text; on failure, the project's standard error envelope (FSA-6091) with 400 Bad Request for invalid input or a request Claude rejects outright, 403 Forbidden (AiFeatureDisabled, FSA-6215) when the AI is not turned on for the domain, 429 Too Many Requests with a Retry-After header when an AI usage limit is reached or the AI key stays busy (FSA-6217, FSA-6215, same codes as ), 503 Service Unavailable when the AI service, its settings or the usage limits could not be reached or the AI key was refused, or 500 Internal Server Error for anything else unexpected.

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.