{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"リアルタイム パーソナライゼーション APIを使用したリアルタイム アクティベーションの作成","description":"Treasure Data Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"リアルタイム-パーソナライゼーション-apiを使用したリアルタイム-アクティベーションの作成","__idx":0},"children":["リアルタイム パーソナライゼーション APIを使用したリアルタイム アクティベーションの作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このAPIを使用すると、イベントを取り込み、Treasure Dataのリアルタイムシステムからパーソナライゼーションレスポンスを受信できます。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/real-time/creating-a-real-time-activation-using-the-rest-api#prerequisites"},"children":["前提条件"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/real-time/creating-a-real-time-activation-using-the-rest-api#endpoints-and-base-urls"},"children":["エンドポイントとベースURL"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/real-time/creating-a-real-time-activation-using-the-rest-api#headers"},"children":["ヘッダー"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/real-time/creating-a-real-time-activation-using-the-rest-api#personalization-api-definition"},"children":["パーソナライゼーションAPI定義"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/real-time/creating-a-real-time-activation-using-the-rest-api#request-body"},"children":["リクエストボディ"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/real-time/creating-a-real-time-activation-using-the-rest-api#responses"},"children":["レスポンス"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"前提条件","__idx":1},"children":["前提条件"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["リアルタイムパーソナライゼーションAPI呼び出しを正常に行うには、次のことを実行する必要があります:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure コンソールでリアルタイムサービスにアクセスするためにアカウントを有効にします。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["設定されたイベントとオファーの詳細な知識を持つWebパーソナライゼーション用のデータベースを設定します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["書き込み専用APIキー"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["有効なWebパーソナライゼーショントークン。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"エンドポイントとベースurl","__idx":2},"children":["エンドポイントとベースURL"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["パーソナライゼーションAPIは、これらのベースURLを使用します。"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"リージョン"},"children":["リージョン"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"ベースURL"},"children":["ベースURL"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["US (us01)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["https://us01.p13n.in.treasuredata.com"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Europe (eu01)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["https://eu01.p13n.in.treasuredata.com"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Japan (ap01)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["https://ap01.p13n.in.treasuredata.com"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["パーソナライゼーションAPIの完全なURLは"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["{baseURL}/{database}/{table}"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["例:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://us01.p13n.in.treasuredata.com/personalization__database/preferences_table"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ヘッダー","__idx":3},"children":["ヘッダー"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["これらは、API呼び出しに必要なヘッダーです。"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"名前"},"children":["名前"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"内容"},"children":["内容"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Content-Type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ベンダー固有のJSON"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["application/vnd.treasuredata.v1+json"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["WP13n-Token"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["連結されたトークン"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["トークンは次の要素を組み合わせて作成されます:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["{account id}/{instance id}/{token}"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["たとえば、アカウントID 1、インスタンスID 8、有効なWebパーソナライゼーショントークンの場合、トークンは次のようにフォーマットされます ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["1/8/12345789abcdef••••••••••••••••••"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Authorization"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure APIキー"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TD1 1/abcdef••••••••••••••••••••••0123456789"]}]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"パーソナライゼーションapi定義","__idx":4},"children":["パーソナライゼーションAPI定義"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"HTTP動詞"},"children":["HTTP動詞"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"リソース"},"children":["リソース"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":["説明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["POST"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["/{database}/{tables}"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["リクエストのオファーを取得"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"リクエストボディ","__idx":5},"children":["リクエストボディ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["[進行中: ご容赦ください]"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"レスポンス","__idx":6},"children":["レスポンス"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["204 正常な取り込み"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["400 不正なリクエスト"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["3000: RTトークンが提供されませんでした(X-Tokenヘッダー)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["3001: RTトークンが設定にありません"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["3002: RTトークンアカウントが認証されたユーザーアカウントと競合しています"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["3003: RTトークンの形式が無効です"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["3004: 無効なイベントオブジェクト。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["429 リクエストが多すぎます"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["2003: 制限を超えたことによるKinesisエラー"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["2013: Lambdaの総同時実行数が予約された同時実行数を超えています"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["500 内部サーバーエラー"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["9999: 不明/未診断"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["1001: Treasure APIに到達できないか、タイムアウトしました"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["1002: テーブルAPIに到達できないか、タイムアウトしました"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["1003: Kinesisに到達できないか、タイムアウトしました"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["1004: Lambdaに到達できないか、タイムアウトしました"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["1005: MemoryDBに到達できないか、タイムアウトしました"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["2001: Kinesisストリームが見つかりませんでした"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["2002: Kinesis操作がエラーをスローしました"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["2011: Lambda関数が見つかりませんでした"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["2012: Lambda関数がエラーをスローしたか、レスポンスが処理されませんでした"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["2014: Lambda呼び出しが失敗しました"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["2015: Lambdaリアクター設定にまだトークンがありません"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["2021: MemoryDB操作がエラーをスローしました"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["3010: RTトークンは、トークンが一貫性のない(アカウントまたはリアクターID)リアクターで設定されています"]}]}]},"headings":[{"value":"リアルタイム パーソナライゼーション APIを使用したリアルタイム アクティベーションの作成","id":"リアルタイム-パーソナライゼーション-apiを使用したリアルタイム-アクティベーションの作成","depth":1},{"value":"前提条件","id":"前提条件","depth":2},{"value":"エンドポイントとベースURL","id":"エンドポイントとベースurl","depth":2},{"value":"ヘッダー","id":"ヘッダー","depth":2},{"value":"パーソナライゼーションAPI定義","id":"パーソナライゼーションapi定義","depth":2},{"value":"リクエストボディ","id":"リクエストボディ","depth":2},{"value":"レスポンス","id":"レスポンス","depth":2}],"frontmatter":{"seo":{"title":"リアルタイム パーソナライゼーション APIを使用したリアルタイム アクティベーションの作成"}},"lastModified":"2026-06-01T09:34:27.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/products/customer-data-platform/real-time/creating-a-real-time-activation-using-the-rest-api","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}