Skip to content

メールテンプレートのソース翻訳を表示

get

/テンプレート/メール/翻訳/ソース

メールテンプレートのソース翻訳を表示するには、このエンドポイントを使用します。

前提条件

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

レート制限

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

クエリーパラメーター

例のリクエスト

1
2
3
4
5
curl --location --request GET 'https://rest.iad-03.braze.com/templates/email/translations/source?template_id={template_id}'
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR-REST-API-KEY'
--Request Body
---template_id: "6ad1507f-ca10-44c4-95bf-aj39fm10fm1ps"

応答

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

成功応答の例

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

1
2
3
4
5
6
7
8
9
{
    "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"
}

エラー応答例

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

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