Skip to main content
POST
Sync Template Localizations
Queue AI translation for selected enabled locales. Send an empty object to sync every enabled non-primary locale. This explicit operation works even when the company’s automatic on-save localization mode is disabled. Translation runs in the background. Each queued locale shows syncing until the job writes synced (or failed with lastError); poll Get Template to follow it.

Request

string
required
Template ID, transactional email ID, or transactional slug.
array
Enabled non-primary locale codes to sync. Omit to sync every enabled non-primary locale.
boolean
default:"false"
Keep translations edited in the dashboard or stored with keepEdits (see editedAt on Set Template Localization) instead of retranslating them. Kept locales are returned in skippedLocales. When every requested locale is kept, the response is 200 with an empty queuedLocales. Without this field, edited translations are retranslated and lose their edits, as before.

Response fields

string[]
Locales queued for AI translation.
number
Number of queued locales.
string[]
Requested locales kept because someone edited them. Only returned when skipEdited is true.

Responses