Deskhero Developer Hub
Back to deskhero.com
Languages

Translate

Translates one rich text body (sys_content_rich) into language_target through DeepL, auto-detecting the source when language_source is left empty and reporting the detected code back on the response. Both codes must come from the translation languages endpoint, and specifying a source without a target is rejected. Identical requests are served from a two day cache instead of calling DeepL again, and sys_attachments are echoed back unchanged apart from freshly signed download URLs.

POST /api/{tenant:minlength(2)}/v{version:apiVersion}/languages/translate
Authorisation
Minimum role: USER

Request arguments

Name Type Source
inputDTO_translationBody
Request body example

Response

Status
200 (OK)
Type
DTO_translation
Wrapper
DTO_response_wrap
Other statuses
403 (Forbidden)
Response body example
DTO_translation
NameTypeReadOnlyDescription
language_sourceStringLanguage code of the content sent in, left empty to let the translation service detect it, and it must be a code enabled as source language
language_targetStringLanguage code to translate into, required, and EN is treated as EN-US
sys_content_richDTO_rich_textThe rich text to translate on the request, and the translated rich text on the response
sys_attachmentsDTO_reference_attachment[]Returned exactly as sent in, enriched with download URLs on the way back
DTO_rich_text
NameTypeReadOnlyDescription
plain_previewStringReadOnlyPlain preview
htmlStringHtml
editorjsDTO_editorjsEditorjs
tiptapDTO_tiptapTiptap
read_minutesInt32Read minutes
DTO_editorjs
NameTypeReadOnlyDescription
timeInt64Time
versionStringVersion
blocksDTO_editorjs_block[]Blocks
DTO_editorjs_block
NameTypeReadOnlyDescription
idStringId
typeStringType
dataObjectData
DTO_tiptap
NameTypeReadOnlyDescription
typeStringType
contentDTO_tiptap_node[]Content
DTO_tiptap_node
NameTypeReadOnlyDescription
typeStringType
attrsDTO_tiptap_attrsAttrs
contentDTO_tiptap_node[]Content
textStringText
marksDTO_tiptap_mark[]Marks
DTO_tiptap_attrs
NameTypeReadOnlyDescription
textAlignStringTextalign
levelInt32 (nullable)Level
checkedBoolean (nullable)Checked
idInt32 (nullable)Id
altStringAlt
titleStringTitle
widthStringWidth
wrapperStyleStringWrapperstyle
filesDTO_tiptap_file_ref[]Files
hrefStringHref
targetStringTarget
colspanInt32 (nullable)Colspan
rowspanInt32 (nullable)Rowspan
colorStringColor
textStringText
nameStringFor emoji
nativeStringFor emoji
DTO_tiptap_file_ref
NameTypeReadOnlyDescription
idInt32Id
labelStringLabel
DTO_tiptap_mark
NameTypeReadOnlyDescription
typeStringType
attrsDTO_tiptap_attrsAttrs
DTO_reference_attachment
NameTypeReadOnlyDescription
size_kbInt32ReadOnlySize kb
statusENUM attachment_statusReadOnlyStatus
status_messageStringReadOnlyStatus message
download_urlStringReadOnlyDownload url
idInt32Id
labelObjectReadOnlyLabel
ENUM attachment_status
ValueNameDescription
0UNKNOWNUNKNOWN
1UNAVAILABLEUNAVAILABLE, processing in progress
2OKOK
3WARNINGWARNING
4ERRORERROR

Generated Aug 4, 2026 18:37