{"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内部使用のみ」であり、TD Customer Successチームがパーソナライゼーション環境をセットアップするために使用しています。(将来的には、これらのAPIの機能がTreasure コンソールユーザーインターフェースに追加される可能性があります。)アカウントのパーソナライゼーションが設定された後、パーソナライゼーションサービスがそれに対して動作できるように、TDで顧客情報を更新するために呼び出すAPIは単純に次のようになります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{{personalizationBaseUrl}}/:database/:table"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["お客様の地域のパーソナライゼーションAPIのbaseURLを確認するには、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/apis/endpoints/endpoints"},"children":["Treasure API baseURLs"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下は、リアルタイムパーソナライゼーションAPIを使用してアカウントを設定し、新しい顧客データをアップロードまたは更新する方法の内訳です。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"フェーズ1-パーソナライゼーションルーティングの確立","__idx":1},"children":["フェーズ1. パーソナライゼーションルーティングの確立"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["API利用可能性:"]}," 内部使用のみ(Treasure Dataが処理)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["何が起こるか:"]}," ルーティングAPI呼び出しは、パーソナライゼーションサービスが監視すべきデータベーステーブルを登録します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ペイロード例"]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"\"add\": {\n  \"destinations\": [\n    {\n      \"database\": \"reactor\",\n      \"table\": \"page_views\"\n    }\n  ]\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"フェーズ2-パーソナライゼーション設定の定義とアップロード","__idx":2},"children":["フェーズ2. パーソナライゼーション設定の定義とアップロード"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["API利用可能性:"]}," 内部使用のみ(Treasure Dataが処理)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["何が起こるか:"]}," YAML設定が準備され、プロビジョニングAPIを通じてアップロードされます。ファイルは、キー、イベント、アトリビュート、オファー、アクティベーション、トークンを定義します。詳細については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/real-time/about-the-real-time-personalization-api#contentsYAMLfile"},"children":["設定ファイルセクションの説明"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["トークンガイダンス:"]}," 1つ以上の認証トークンを生成し(例: ダッシュを削除したUUID v4)、プロビジョニング前に設定に埋め込むためにTreasure Dataと共有します。フェーズ3の例に示されているトークンは、UUID ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["e65d8a9d-f209-4f02-b84c-d660efff6f27"]},"から派生しています。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"フェーズ3-パーソナライゼーションエンドポイントへのイベント送信","__idx":3},"children":["フェーズ3. パーソナライゼーションエンドポイントへのイベント送信"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["エンドポイント:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{{personalizationBaseUrl}}/:database/:table"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["リクエスト例"]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -i --header 'Content-Type: application/vnd.treasuredata.v1+json' \\\n--header 'wp13n-token: 1/8/e65d8a9df2094f02b84cd660efff6f27' \\\n--header 'Authorization: TD1 1/abcdef•••••••••••••••••••••••0123456789' \\\n-X POST \\\n-d '{\"td_client_id\":\"202\", \"some_key\":\"some other data\"}' \\\n--location https://eu01.p13n.in.treasuredata.com/your_database/pageviews\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["パーソナライゼーションエンドポイントに送信されたイベントは、他のTreasure Dataイベントと同様にPlazmaに取り込まれます。さらに、パーソナライゼーションサービスは、イベントを送信したプロファイルに合わせたレスポンスを返す場合があります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"フェーズ4-パーソナライゼーションレスポンス処理","__idx":4},"children":["フェーズ4. パーソナライゼーションレスポンス処理"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["API利用可能性:"]}," 内部使用のみ(Treasure Dataが処理)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["何が起こるか:"]}," イベントが監視対象テーブルにコミットされた後、パーソナライゼーションエンジンは設定(例: offersセクション)を評価し、アクションを実行するかどうかを決定します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["設定例:"]}," 次のスニペットは、プロファイルに既に保存されているpreferencesがある場合にトリガーされるオファーを示しています。"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"offers:\n- name: \"preferences_known\"\n  set:\n    - event: \"pageview\"\n      if: PROFILE.preferences.length > 0\n  data:\n    td_client_id: ${PROFILE.td_client_id}\n    preferences: ${PROFILE.preferences.slice(-1)[0].value}\n","lang":"yaml"},"children":[]}]},"headings":[{"value":"リアルタイム パーソナライゼーション APIについて","id":"リアルタイム-パーソナライゼーション-apiについて","depth":1},{"value":"フェーズ1. パーソナライゼーションルーティングの確立","id":"フェーズ1-パーソナライゼーションルーティングの確立","depth":2},{"value":"フェーズ2. パーソナライゼーション設定の定義とアップロード","id":"フェーズ2-パーソナライゼーション設定の定義とアップロード","depth":2},{"value":"フェーズ3. パーソナライゼーションエンドポイントへのイベント送信","id":"フェーズ3-パーソナライゼーションエンドポイントへのイベント送信","depth":2},{"value":"フェーズ4. パーソナライゼーションレスポンス処理","id":"フェーズ4-パーソナライゼーションレスポンス処理","depth":2}],"frontmatter":{"seo":{"title":"リアルタイム パーソナライゼーション APIについて"}},"lastModified":"2026-06-01T09:34:27.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/products/customer-data-platform/real-time/about-the-real-time-personalization-api","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}