Skip to Content
Inbox

Preview outbound inbox translation

Acces

Membru al organizației cu această permisiune:

  • inbox:write

O cheie API cu scopuri are nevoie și de permisiune printre scopurile sale.

POST
/orgs/{organizationId}/inbox/threads/{threadId}/preview-outbound-translation

Translates a draft reply into the contact's language so staff can review it before sending.

Authorization

ApiKeyAuth
headerx-api-key<token>

API key for authentication

Path Parameters

organizationId*string

The ID or slug of the organization

threadId*string
Length1 <= length

Request Body

application/json
  1. body
body*string
Length1 <= length <= 4096

Response Body

Outbound translation preview

application/json
  1. response
needed*boolean
sameLanguage*boolean
sourceLocale*string
targetLocale*string
translatedBody*string|null
sourceLanguageName*string
targetLanguageName*string
Example Request
curl -X POST 'https://api.tillor.eu/orgs//inbox/threads/string/preview-outbound-translation' \  -H 'Content-Type: application/json' \  -d '{  "body": "string"}'
Example Response
{  "needed": true,  "sameLanguage": true,  "sourceLocale": "string",  "targetLocale": "string",  "translatedBody": "string",  "sourceLanguageName": "string",  "targetLanguageName": "string"}