Skip to content

View translations for a campaign

get

/campaigns/translations

Use this endpoint to view all the translations for each message variant in a campaign.

Prerequisites

To use this endpoint, you’ll need an API key with the campaigns.translations.get permission.

Rate limit

This endpoint has a rate limit of 250,000 requests per minute.

Query parameters

Example request

1
2
3
curl --location --request GET 'https://rest.iad-03.braze.com/campaigns/translations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR-REST-API-KEY'

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
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Content-Type: application/json
Authorization: Bearer YOUR-REST-API-KEY
{
	"translations": [
		{
			"translation_map": {
				"id_0": "¡Hola!",
				"id_1": "Me llamo Jacky",
				"id_2": "¿Dónde está la biblioteca?"
			},
			"locale": {
				"uuid": "a1b2c3d4-e5f6-g7h8-123a-a1234bn5678d",
 				"name": "es-MX",
 				"country": "Mexico",
 				"language": "Spanish",
			}
		},
		{
			"translation_map": {
				"id_0": "你好",
				"id_1": "我的名字是 Jacky",
				"id_2": "圖書館在哪裡?"
			},
			"locale": {
 				"name": "zh-HK",
 				"country": "Hong Kong",
 				"language": "Chinese (Traditional)",
			}
		}
	]
}

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": "This message does not support multi-language."
		}
	]
}

Troubleshooting

The following table lists possible returned errors and their associated troubleshooting steps.

HOW HELPFUL WAS THIS PAGE?
New Stuff!