Skip to content

View the source translations for an email template

get

/templates/email/translations/source

Use this endpoint to view the source translations for an email template.

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

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.

HOW HELPFUL WAS THIS PAGE?
New Stuff!