Skip to content

キャンバスの翻訳を表示する

get

/canvas/translations

このエンドポイントを使用して、キャンバスの翻訳されたメッセージをプレビューします。

前提条件

このエンドポイントを使用するには、API キーcanvas.translations.getの権限が必要です。

レート制限

このエンドポイントには、毎分250,000リクエストのレート制限がある。

クエリーパラメーター

例のリクエスト

1
2
3
curl --location --request GET 'https://rest.iad-03.braze.com/canvas/translations/?workflow_id={workflow_id}&step_id={step_id}&message_variation_id={message_variation_id}&locale_id={locale_uuid}&post_launch_draft_version=true' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR-REST-API-KEY'

応答

このエンドポイントには、200400404429 という 4 つのステータスコードの応答があります。

成功応答の例

ステータスコード 200 は、次の応答ヘッダーと本文を返す可能性があります。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
    "translations": [
        {
            "translation_map": {
                "id_0": "¡Hola!",
                "id_1": "Me llamo Jacky",
                "id_2": "¿Dónde está la biblioteca?"
            },
            "locale": {
                "uuid": "c7c12345-te35-1234-5678-abcdefa99r3f",
                "name": "es-MX",
                "country": "MX",
                "language": "es",
                "locale_key": "es-mx"
            }
        }
    ]
}

エラー応答例

ステータスコード 400 は、次の応答本文を返す可能性があります。遭遇する可能性のあるエラーの詳細については、「トラブルシューティング」を参照のこと。

1
2
3
4
5
6
7
{
	"errors": [
		{
			"message": "The provided locale code does not exist."
		}
	]
}
New Stuff!