Skip to content

メールテンプレート情報を見る

get

/templates/email/info

このエンドポイントを使用して、メールテンプレートに関する情報を取得します。

前提条件

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

レート制限

We apply the default Braze rate limit of 250,000 requests per hour to this endpoint, as documented in API rate limits.

リクエストパラメーター

パラメーター 必須 データ型 説明
email_template_id 必須 文字列 メールテンプレートの API 識別子を参照してください

リクエスト例

1
2
curl --location -g --request GET 'https://rest.iad-01.braze.com/templates/email/info?email_template_id={{email_template_id}}' \
--header 'Authorization: Bearer YOUR_REST_API_KEY'

応答

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Content-Type: application/json
Authorization: Bearer YOUR_REST_API_KEY
{
  "email_template_id": (string) Your email template's API Identifier,
  "template_name": (string) The name of your email template,
  "description": (string) The email template description,
  "subject": (string) The email template subject line,
  "preheader": (optional, string) The email preheader used to generate previews in some clients),
  "body": (optional, string) The email template body that may include HTML,
  "plaintext_body": (optional, string) A plaintext version of the email template body,
  "should_inline_css": (optional, boolean) Whether there is inline CSS in the body of the template - defaults to the css inlining value for the workspace,
  "tags": (string) Tag names,
  "created_at": (string) The time the email was created at in ISO 8601,
  "updated_at": (string) The time the email was updated in ISO 8601
}

このレスポンスの画像は、body変数に HTML として表示されます。

「このページはどの程度役に立ちましたか?」
New Stuff!