Skip to content

Canvas データ概要分析をエクスポート

get

/canvas/data_summary

このエンドポイントを使用すると、Canvasの時系列データのロールアップをエクスポートして、Canvasの結果を簡潔にまとめることができます。

前提条件

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

レート制限

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

リクエストパラメーター

パラメーター 必須 データ型 説明
canvas_id 必須 文字列 キャンバス API 識別子を参照してください
ending_at 必須 日時
(ISO-8601文字列)
データエクスポートを終了する日付。デフォルトはリクエストの時間です。
starting_at オプション* 日時
(ISO-8601文字列)
データエクスポートを開始する日付。

* length starting_at またはのいずれかが必須です。
length オプション* 文字列 ending_at 返されるシリーズに含めるまでの最大日数。1 から 14 (両端を含む) までの数字でなければなりません。

* length starting_at またはのいずれかが必須です。
include_variant_breakdown オプション Boolean バリアント統計を含めるかどうか (デフォルトは) false
include_step_breakdown オプション Boolean ステップ統計を含めるかどうか (デフォルトは) false
include_deleted_step_data オプション Boolean 削除されたステップのステップ統計を含めるかどうか (デフォルトは) false

リクエスト例

1
2
curl --location -g --request GET 'https://rest.iad-01.braze.com/canvas/data_summary?canvas_id={{canvas_id}}&ending_at=2018-05-30T23:59:59-5:00&starting_at=2018-05-28T23:59:59-5:00&length=5&include_variant_breakdown=true&include_step_breakdown=true&include_deleted_step_data=true' \
--header 'Authorization: Bearer YOUR-REST-API-KEY'

応答

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
32
33
34
35
36
37
38
39
40
41
42
43
44
Content-Type: application/json
Authorization: Bearer YOUR-REST-API-KEY
{
  "data": {
    "name": (string) the Canvas name,
    "total_stats": {
      "revenue": (float) the number of dollars of revenue (USD),
      "conversions": (int) the number of conversions,
      "conversions_by_entry_time": (int) the number of conversions for the conversion event by entry time,
      "entries": (int) the number of entries
    },
    "variant_stats": (optional) {
      "00000000-0000-0000-0000-0000000000000": (string) the API identifier for the variant {
        "name": (string) the name of variant,
        "revenue": (float) the number of dollars of revenue (USD),
        "conversions": (int) the number of conversions,
        "entries": (int) the number of entries
      },
      ... (more variants)
    },
    "step_stats": (optional) {
      "00000000-0000-0000-0000-0000000000000": (string) the API identifier for the step {
        "name": (string) the name of step,
        "revenue": (float) the number of dollars of revenue (USD),
        "conversions": (int) the number of conversions,
        "conversions_by_entry_time": (int) the number of conversions for the conversion event by entry time,
        "messages": {
          "android_push": (name of channel) [
            {
              "sent": (int) the number of sends,
              "opens": (int) the number of opens,
              "influenced_opens": (int) the number of influenced opens,
              "bounces": (int) the number of bounces
              ... (more stats for channel)
            }
          ],
          ... (more channels)
        }
      },
      ... (more steps)
    }
  },
  "message": (required, string) the status of the export, returns 'success' when completed without errors
}
「このページはどの程度役に立ちましたか?」
New Stuff!