Skip to main content
POST
Translate a live caption line into the agent's reading language

Authorizations

Authorization
string
header
required

Dashboard JWT token from Clerk

Path Parameters

callId
string
required
Minimum string length: 1

Body

application/json
text
string
required

The settled caption line to translate.

Required string length: 1 - 2000
target_language
enum<string>
required

The language the agent wants to read captions in.

Available options:
en,
es,
fr,
de,
hi,
it,
ja,
ko,
nl,
pt,
ru,
sv,
tr,
zh
source_language
string

Optional spoken-language hint (the caller's STT language code). When it equals target_language the model hop is skipped and the line is echoed back verbatim.

Required string length: 1 - 16
speaker
string

Transcript speaker label (e.g. customer) recorded on the persisted QM segment. Defaults to caller when omitted.

Required string length: 1 - 64

Response

The bilingual caption pair, also persisted to the call's QM transcript record.

data
object
meta
object