Skip to main content
POST
Translate a Push Campaign
Translates a draft or scheduled push campaign’s title and message with AI into the languages in Settings > Localization and saves them as the campaign’s localizations. Merge tags are kept exactly, and their fallback text ({{FIRST_NAME|there}}) is translated. By default it translates languages with no version yet, and AI versions whose main title or message changed since. Versions a person wrote are kept unless you pass overwrite: true. The translation runs while the request waits, usually a few seconds. If the campaign changes while it is being translated, nothing is saved and you get a 409; translate again. Requires the campaigns:write scope. Each contact gets the version for their language attribute, else their device’s language as reported by the Sequenzy SDK, else your fallback language. See Push notifications.

Request

string
required
The push campaign ID.
string[]
Languages to translate into. Omit for every language except the main one. Languages that are not in your language list are rejected.
boolean
default:"false"
Retranslate every requested language, replacing versions a person wrote.

Response fields

object
The campaign, with the new versions in content.localizations.
string[]
Languages translated and saved by this request.
object[]
Languages left as they were: { locale, reason }, where reason is up_to_date or edited (written by a person).
object[]
Languages that could not be translated: { locale, error }. The other languages are still saved; retry these.
string
A one-line summary.

Responses