{"templateId":"markdown","sharedDataIds":{},"props":{"metadata":{"markdoc":{"tagList":[]},"redocly_category":"Treasure Code","product_name":"Treasure Code","type":"markdown"},"seo":{"title":"Personalization Studio Commands","description":"Treasure AI Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","siteUrl":"https://docs.treasure.ai","lang":"en-US","jsonLd":{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.treasure.ai/","name":"Treasure AI","url":"https://www.treasure.ai/","logo":"https://www.treasure.ai/hubfs/assets/images/logos/primary-logo.svg"},{"@type":"WebSite","@id":"https://docs.treasure.ai/#website","name":"Treasure AI Documentation","url":"https://docs.treasure.ai/","inLanguage":["en","ja"],"publisher":{"@id":"https://www.treasure.ai/"}}]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"personalization-studio-commands","__idx":0},"children":["Personalization Studio Commands"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Manage Personalization Studio campaigns — web personalization campaigns that deliver targeted content to audiences based on profile attributes."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"backend-endpoint","__idx":1},"children":["Backend endpoint"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx ps p13n"]}," requests are served by the Personalization Studio Config 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":"Site"},"children":["Site"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Endpoint"},"children":["Endpoint"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["us01"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["personalization-studio-config.us01.treasuredata.com"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ap01"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["personalization-studio-config.treasuredata.co.jp"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["eu01"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["personalization-studio-config.eu01.treasuredata.com"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Development and staging environments use ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["personalization-studio-config-development.*"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["personalization-studio-config-staging.*"]}," respectively."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Not yet available in ap02 or ap03."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"commands","__idx":2},"children":["Commands"]},{"$$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":"Command"},"children":["Command"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#list"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["list"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["List campaigns for a parent segment"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"typical-usage","__idx":3},"children":["Typical Usage"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# Set parent segment context\ntdx use --parent-segment \"My Audience\"\n\n# List campaigns\ntdx ps p13n list\n\n# List campaigns with explicit parent segment ID\ntdx ps p13n list --parent-segment-id 291115\n\n# List by parent segment name (positional arg)\ntdx ps p13n list \"My Audience\"\n\n# JSON output for scripting\ntdx ps p13n list --parent-segment-id 291115 --format json\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"list","__idx":4},"children":["list"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["List Personalization Studio campaigns for a parent segment."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"tdx ps p13n list [name] [options]\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"arguments","__idx":5},"children":["Arguments"]},{"$$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":"Argument"},"children":["Argument"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["name"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Parent segment name (optional — uses context if omitted)"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"options","__idx":6},"children":["Options"]},{"$$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":"Option"},"children":["Option"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--parent-segment-id <id>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Filter by parent segment ID (numeric)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--parent-segment <name>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Filter by parent segment name (global option)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--format json"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Output as JSON array"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--format jsonl"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Output as JSON Lines"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--format tsv"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Output as TSV"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"resolution-order","__idx":7},"children":["Resolution order"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The parent segment is resolved in this priority:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--parent-segment-id <id>"]}," (used directly, no lookup)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Positional ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["[name]"]}," argument (resolved to ID)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--parent-segment <name>"]}," global option (resolved to ID)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Error with usage hint"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"output","__idx":8},"children":["Output"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Human-readable output shows each campaign with status indicator:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"✔ Found 3 campaigns\n\n🚀 Summer Sale Campaign  (launched)\n   ID: 1 | Jun 1, 2026 – Sep 30, 2026 America/Vancouver\n\n📝 Winter Promo  (draft)\n   ID: 2 | Dec 1, 2026 – Jan 15, 2027 UTC\n\n⚠️  Old Homepage Test  (stale)\n   ID: 3 | Jan 1, 2025 – Mar 31, 2025 America/Vancouver\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Status meanings:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["launched"]}," 🚀 — Campaign is active and serving personalized content"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["draft"]}," 📝 — Campaign is configured but not yet launched"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["stale"]}," ⚠️ — Campaign was launched but configuration changed since last launch (needs relaunch)"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"examples","__idx":9},"children":["Examples"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# List all campaigns for a parent segment by name\ntdx ps p13n list \"Customer360\"\n\n# Use session context (after `tdx use --parent-segment \"Customer360\"`)\ntdx ps p13n list\n\n# Machine-readable output for automation\ntdx ps p13n list --parent-segment-id 291115 --format json\n\n# Pipe to jq for filtering\ntdx ps p13n list --parent-segment-id 291115 --format json | jq '.[] | select(.status == \"stale\")'\n","lang":"bash"},"children":[]}]},"headings":[{"value":"Personalization Studio Commands","id":"personalization-studio-commands","depth":1},{"value":"Backend endpoint","id":"backend-endpoint","depth":2},{"value":"Commands","id":"commands","depth":2},{"value":"Typical Usage","id":"typical-usage","depth":2},{"value":"list","id":"list","depth":2},{"value":"Arguments","id":"arguments","depth":3},{"value":"Options","id":"options","depth":3},{"value":"Resolution order","id":"resolution-order","depth":3},{"value":"Output","id":"output","depth":3},{"value":"Examples","id":"examples","depth":3}],"frontmatter":{"seo":{"title":"Personalization Studio Commands"}},"lastModified":"2026-08-21T08:43:10.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/treasure-code/commands/p13n","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}