Inbox
Preview outbound inbox translation
Dostęp
Członek organizacji z tym uprawnieniem:
inbox:write
Klucz API z zakresami potrzebuje też tego uprawnienia w swoich zakresach.
POST
Translates a draft reply into the contact's language so staff can review it before sending.
ApiKeyAuthheader
x-api-key<token>API key for authentication
organizationId*stringThe ID or slug of the organization
threadId*stringLength
1 <= lengthapplication/json- body
body*stringLength
1 <= length <= 4096Outbound translation preview
application/json- response
needed*booleansameLanguage*booleansourceLocale*stringtargetLocale*stringtranslatedBody*string|nullsourceLanguageName*stringtargetLanguageName*stringcurl -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"}