View the source translations for an email template
/templates/email/translations/source
Use this endpoint to view the source translations for an email template.
This endpoint is currently in early access. Contact your Braze account manager if you’re interested in participating in the early access.
Prerequisites
To use this endpoint, you’ll need an API key with the templates.email.info permission.
Rate limit
This endpoint has a rate limit of 250,000 requests per minute.
Query parameters
| Parameter | Required | Data Type | Description |
|---|---|---|---|
template_id |
Required | String | The ID for your email template. |
Example request
1
2
3
4
5
curl --location --request GET 'https://rest.iad-03.braze.com/templates/email/translations/source'
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR-REST-API-KEY'
--Request Body
---template_id: "6ad1507f-ca10-44c4-95bf-aj39fm10fm1ps"
Response
There are four status code responses for this endpoint: 200, 400, 404, and 429.
Example success response
The status code 200 could return the following response header and body.
1
2
3
4
5
6
7
8
9
10
11
Content-Type: application/json
Authorization: Bearer YOUR-REST-API-KEY
{
"translations": {
"translation_map": {
"id_0": "Here's a limited time offer for your membership tier!",
"id_1": "Welcome to a new fashion-forward season!"
}
},
"message": "success"
}
Example error response
The status code 400 could return the following response body. Refer to Troubleshooting for more information about errors you may encounter.
1
2
3
4
5
6
7
{
"errors": [
{
"message": "The provided locale code does not exist."
}
]
}
Troubleshooting
The following table lists possible returned errors and their associated troubleshooting steps.
| Error message | Troubleshooting |
|---|---|
MULTI_LANGUAGE_NOT_ENABLED |
Multi-language settings aren’t turned on for your workspace. |
MULTI_LANGUAGE_NOT_ENABLED_ON_MESSAGE |
Only email templates and email, push, and in-app-message campaigns or Canvas messages with emails can be translated. |
Edit this page on GitHub