{
  "components": {
    "schemas": {
      "AccountOverview": {
        "additionalProperties": false,
        "properties": {
          "data_start": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The first day the store has analytics numbers: its first recorded visit or order, or the day analytics was last reset; null before any",
            "title": "Data Start"
          },
          "filters": {
            "$ref": "#/components/schemas/AnalyticsFilters"
          },
          "freshness": {
            "$ref": "#/components/schemas/Freshness"
          },
          "range": {
            "$ref": "#/components/schemas/AnalyticsRange"
          },
          "series": {
            "items": {
              "$ref": "#/components/schemas/OverviewPoint"
            },
            "title": "Series",
            "type": "array"
          },
          "totals": {
            "$ref": "#/components/schemas/OverviewTotals"
          }
        },
        "required": [
          "range",
          "filters",
          "freshness",
          "series",
          "totals",
          "data_start"
        ],
        "title": "AccountOverview",
        "type": "object"
      },
      "AiFallback": {
        "description": "What the test does once the AI has run ai_max_runs times without ending it: decide at the first\nclear result without the AI, or tell the merchant and wait.",
        "enum": [
          "when_clear",
          "notify"
        ],
        "title": "AiFallback",
        "type": "string"
      },
      "AiTrigger": {
        "enum": [
          "when_clear",
          "on_date"
        ],
        "title": "AiTrigger",
        "type": "string"
      },
      "AiVerdict": {
        "description": "What the AI decided last, as the trusted decide path accepted it; a refused verdict lives on the\ntimeline only.",
        "enum": [
          "publish",
          "keep_running",
          "no_change"
        ],
        "title": "AiVerdict",
        "type": "string"
      },
      "AnalyticsAnswers": {
        "additionalProperties": false,
        "properties": {
          "answered": {
            "description": "Visits that answered the question in the range",
            "title": "Answered",
            "type": "integer"
          },
          "buckets": {
            "description": "A number question's rows, one per band of values; empty for a choice question",
            "items": {
              "$ref": "#/components/schemas/AnswerBucketRow"
            },
            "title": "Buckets",
            "type": "array"
          },
          "currency": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "ISO 4217 code of the amounts: the one most linked orders carry, else the store's; null when neither is known",
            "title": "Currency"
          },
          "filters": {
            "$ref": "#/components/schemas/AnalyticsFilters"
          },
          "freshness": {
            "$ref": "#/components/schemas/Freshness"
          },
          "options": {
            "description": "A choice question's rows, one per option; empty for a number question",
            "items": {
              "$ref": "#/components/schemas/AnswerOptionRow"
            },
            "title": "Options",
            "type": "array"
          },
          "question": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AnswersQuestion"
              },
              {
                "type": "null"
              }
            ],
            "description": "The question reported; null when the published version has no answerable question"
          },
          "questions": {
            "items": {
              "$ref": "#/components/schemas/AnswersQuestion"
            },
            "title": "Questions",
            "type": "array"
          },
          "quiz_id": {
            "examples": [
              "quiz_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^quiz_[0-9a-f]{32}$",
            "title": "Quiz Id",
            "type": "string"
          },
          "range": {
            "$ref": "#/components/schemas/AnalyticsRange"
          },
          "summary": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AnswerNumericSummary"
              },
              {
                "type": "null"
              }
            ],
            "description": "A number question's answers as numbers; null for a choice question or while nobody answered"
          }
        },
        "required": [
          "quiz_id",
          "range",
          "filters",
          "freshness",
          "currency",
          "questions",
          "question",
          "answered",
          "options",
          "buckets",
          "summary"
        ],
        "title": "AnalyticsAnswers",
        "type": "object"
      },
      "AnalyticsBreakdown": {
        "additionalProperties": false,
        "properties": {
          "by": {
            "description": "The dimension the rows are grouped by",
            "enum": [
              "channel",
              "device",
              "new_returning",
              "country"
            ],
            "title": "By",
            "type": "string"
          },
          "filters": {
            "$ref": "#/components/schemas/AnalyticsFilters"
          },
          "freshness": {
            "$ref": "#/components/schemas/Freshness"
          },
          "quiz_id": {
            "anyOf": [
              {
                "examples": [
                  "quiz_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^quiz_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The quiz; null for every quiz of the store",
            "title": "Quiz Id"
          },
          "range": {
            "$ref": "#/components/schemas/AnalyticsRange"
          },
          "rows": {
            "items": {
              "$ref": "#/components/schemas/BreakdownRow"
            },
            "title": "Rows",
            "type": "array"
          }
        },
        "required": [
          "quiz_id",
          "by",
          "range",
          "filters",
          "freshness",
          "rows"
        ],
        "title": "AnalyticsBreakdown",
        "type": "object"
      },
      "AnalyticsFilters": {
        "additionalProperties": false,
        "properties": {
          "channel": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The channel filter applied: direct | organic_search | paid_search | organic_social | paid_social | email | sms | affiliate | display | paid_other | referral | ai_assistant | other | shared_results; null for all",
            "title": "Channel"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The country filter applied, ISO 3166-1 alpha-2; null for all",
            "title": "Country"
          },
          "device": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The device filter applied: mobile | tablet | desktop; null for all",
            "title": "Device"
          },
          "new_returning": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The visitor filter applied: new | returning; null for all",
            "title": "New Returning"
          }
        },
        "required": [
          "channel",
          "device",
          "new_returning",
          "country"
        ],
        "title": "AnalyticsFilters",
        "type": "object"
      },
      "AnalyticsFunnel": {
        "additionalProperties": false,
        "properties": {
          "completions": {
            "description": "Cohort sessions that finished the quiz, even past the range end.",
            "title": "Completions",
            "type": "integer"
          },
          "filters": {
            "$ref": "#/components/schemas/AnalyticsFilters"
          },
          "freshness": {
            "$ref": "#/components/schemas/Freshness"
          },
          "in_progress": {
            "description": "Cohort sessions that have neither completed nor ended yet.",
            "title": "In Progress",
            "type": "integer"
          },
          "not_started": {
            "description": "views minus starts: sessions that viewed the quiz but had neither answered nor stepped forward by the end of the range.",
            "title": "Not Started",
            "type": "integer"
          },
          "pages": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/FunnelPage"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "Null on a plan that does not include the funnel by page: the counts are served, the pages are not.",
            "title": "Pages"
          },
          "quiz_id": {
            "examples": [
              "quiz_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^quiz_[0-9a-f]{32}$",
            "title": "Quiz Id",
            "type": "string"
          },
          "range": {
            "$ref": "#/components/schemas/AnalyticsRange"
          },
          "starts": {
            "description": "The cohort: sessions whose first interaction with the quiz (the first answer or the first step forward, whichever comes first) fell inside the range, each followed to its end. starts == completions + sum(sessions_dropped) + in_progress, where pages are served.",
            "title": "Starts",
            "type": "integer"
          },
          "views": {
            "description": "Sessions that opened the quiz inside the range, plus the cohort itself.",
            "title": "Views",
            "type": "integer"
          }
        },
        "required": [
          "quiz_id",
          "range",
          "filters",
          "freshness",
          "views",
          "not_started",
          "starts",
          "completions",
          "in_progress",
          "pages"
        ],
        "title": "AnalyticsFunnel",
        "type": "object"
      },
      "AnalyticsImageAnalysis": {
        "additionalProperties": false,
        "properties": {
          "blocks": {
            "description": "One row per Image analysis block: the published version's blocks in page order, then the blocks that took photos in the range but are no longer published; empty when there is none",
            "items": {
              "$ref": "#/components/schemas/ImageBlockRow"
            },
            "title": "Blocks",
            "type": "array"
          },
          "filters": {
            "$ref": "#/components/schemas/AnalyticsFilters",
            "description": "The visit filters applied"
          },
          "freshness": {
            "$ref": "#/components/schemas/Freshness",
            "description": "How current the numbers are"
          },
          "quiz_id": {
            "description": "The quiz",
            "examples": [
              "quiz_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^quiz_[0-9a-f]{32}$",
            "title": "Quiz Id",
            "type": "string"
          },
          "range": {
            "$ref": "#/components/schemas/AnalyticsRange",
            "description": "The days the numbers cover"
          }
        },
        "required": [
          "quiz_id",
          "range",
          "filters",
          "freshness",
          "blocks"
        ],
        "title": "AnalyticsImageAnalysis",
        "type": "object"
      },
      "AnalyticsPaths": {
        "additionalProperties": false,
        "properties": {
          "cohort": {
            "description": "Which visits are counted: all | finished (completed the quiz) | left (ended without completing)",
            "enum": [
              "all",
              "finished",
              "left"
            ],
            "title": "Cohort",
            "type": "string"
          },
          "data_start": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The first day the store has analytics numbers: its first recorded visit or order, or the day analytics was last reset; null before any",
            "title": "Data Start"
          },
          "edges": {
            "description": "The observed moves between pages: the 50 busiest and every jump; the rest are in other_paths",
            "items": {
              "$ref": "#/components/schemas/PathEdge"
            },
            "title": "Edges",
            "type": "array"
          },
          "filters": {
            "$ref": "#/components/schemas/AnalyticsFilters"
          },
          "freshness": {
            "$ref": "#/components/schemas/Freshness"
          },
          "nodes": {
            "items": {
              "$ref": "#/components/schemas/PathNode"
            },
            "title": "Nodes",
            "type": "array"
          },
          "other_paths": {
            "$ref": "#/components/schemas/OtherPaths"
          },
          "quiz_id": {
            "examples": [
              "quiz_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^quiz_[0-9a-f]{32}$",
            "title": "Quiz Id",
            "type": "string"
          },
          "range": {
            "$ref": "#/components/schemas/AnalyticsRange"
          },
          "rules": {
            "description": "Every jump rule of the published version, fired or not, and any other seen in the range",
            "items": {
              "$ref": "#/components/schemas/PathRule"
            },
            "title": "Rules",
            "type": "array"
          },
          "sessions": {
            "description": "Visits counted in this view: the cohort's visits that opened at least one page in the range",
            "title": "Sessions",
            "type": "integer"
          },
          "visibility_skips": {
            "items": {
              "$ref": "#/components/schemas/PathVisibilitySkip"
            },
            "title": "Visibility Skips",
            "type": "array"
          }
        },
        "required": [
          "quiz_id",
          "range",
          "filters",
          "cohort",
          "freshness",
          "sessions",
          "data_start",
          "nodes",
          "edges",
          "other_paths",
          "rules",
          "visibility_skips"
        ],
        "title": "AnalyticsPaths",
        "type": "object"
      },
      "AnalyticsProducts": {
        "additionalProperties": false,
        "properties": {
          "bucket": {
            "anyOf": [
              {
                "enum": [
                  "added_from_quiz",
                  "shown_bought_later",
                  "bought_not_shown"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The how-it-was-bought group the rows and totals are narrowed to; null for all",
            "title": "Bucket"
          },
          "freshness": {
            "$ref": "#/components/schemas/Freshness"
          },
          "line_revenue": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Money"
              },
              {
                "type": "null"
              }
            ],
            "description": "The revenue of every product in the range within bucket when set, after discounts and before shipping and tax, in the store's currency; null when no currency is known to label it with"
          },
          "orders_matched_by_email": {
            "description": "Linked orders in the range matched by the email the shopper gave",
            "title": "Orders Matched By Email",
            "type": "integer"
          },
          "quiz_id": {
            "anyOf": [
              {
                "examples": [
                  "quiz_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^quiz_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The quiz; null for every quiz of the store",
            "title": "Quiz Id"
          },
          "range": {
            "$ref": "#/components/schemas/AnalyticsRange"
          },
          "rows": {
            "items": {
              "$ref": "#/components/schemas/ProductRow"
            },
            "title": "Rows",
            "type": "array"
          },
          "sort": {
            "enum": [
              "revenue",
              "units",
              "orders"
            ],
            "title": "Sort",
            "type": "string"
          },
          "total_products": {
            "description": "How many different products appear in linked orders in the range, within bucket when set",
            "title": "Total Products",
            "type": "integer"
          },
          "totals_by_bucket": {
            "$ref": "#/components/schemas/ProductBucketMoney",
            "description": "The revenue of every product in the range split by how it reached the cart, whatever bucket is set"
          }
        },
        "required": [
          "quiz_id",
          "range",
          "freshness",
          "bucket",
          "sort",
          "total_products",
          "line_revenue",
          "totals_by_bucket",
          "orders_matched_by_email",
          "rows"
        ],
        "title": "AnalyticsProducts",
        "type": "object"
      },
      "AnalyticsQuizzes": {
        "additionalProperties": false,
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/QuizRow"
            },
            "title": "Data",
            "type": "array"
          },
          "dir": {
            "enum": [
              "asc",
              "desc"
            ],
            "title": "Dir",
            "type": "string"
          },
          "freshness": {
            "$ref": "#/components/schemas/Freshness"
          },
          "has_more": {
            "title": "Has More",
            "type": "boolean"
          },
          "limit": {
            "title": "Limit",
            "type": "integer"
          },
          "offset": {
            "title": "Offset",
            "type": "integer"
          },
          "range": {
            "$ref": "#/components/schemas/AnalyticsRange"
          },
          "sort": {
            "enum": [
              "name",
              "views",
              "starts",
              "completion_rate",
              "opt_ins",
              "orders",
              "revenue",
              "share"
            ],
            "title": "Sort",
            "type": "string"
          },
          "total": {
            "description": "How many quizzes match the search, across every page",
            "title": "Total",
            "type": "integer"
          }
        },
        "required": [
          "range",
          "freshness",
          "data",
          "has_more",
          "total",
          "limit",
          "offset",
          "sort",
          "dir"
        ],
        "title": "AnalyticsQuizzes",
        "type": "object"
      },
      "AnalyticsRange": {
        "additionalProperties": false,
        "properties": {
          "days": {
            "title": "Days",
            "type": "integer"
          },
          "end": {
            "description": "Last day of the range, inclusive, in timezone",
            "format": "date",
            "title": "End",
            "type": "string"
          },
          "interval": {
            "anyOf": [
              {
                "enum": [
                  "day",
                  "week",
                  "month"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "week | month: each point of `series` is a week (Monday to Sunday) or a calendar month in timezone, its `day` the first day of it, which may fall before `start`; left out for day points",
            "title": "Interval"
          },
          "start": {
            "description": "First day of the range, inclusive, in timezone",
            "format": "date",
            "title": "Start",
            "type": "string"
          },
          "timezone": {
            "description": "IANA name of the timezone the days are counted in; UTC unless the request named one",
            "title": "Timezone",
            "type": "string"
          }
        },
        "required": [
          "start",
          "end",
          "days",
          "timezone"
        ],
        "title": "AnalyticsRange",
        "type": "object"
      },
      "AnalyticsSummary": {
        "additionalProperties": false,
        "properties": {
          "completions": {
            "$ref": "#/components/schemas/SummaryCount",
            "description": "Visits that finished the quiz: reached its last page and answered whatever that page requires"
          },
          "freshness": {
            "$ref": "#/components/schemas/Freshness"
          },
          "opt_ins": {
            "$ref": "#/components/schemas/SummaryCount",
            "description": "Email opt-ins plus phone opt-ins; a shopper who submitted both counts in each"
          },
          "orders": {
            "$ref": "#/components/schemas/SummaryCount",
            "description": "Shopify orders linked to the quiz by its cart, the checkout or the email the shopper gave, by the day they were placed"
          },
          "period": {
            "enum": [
              "7d",
              "30d"
            ],
            "title": "Period",
            "type": "string"
          },
          "previous_range": {
            "$ref": "#/components/schemas/AnalyticsRange",
            "description": "The period of the same length just before it"
          },
          "range": {
            "$ref": "#/components/schemas/AnalyticsRange",
            "description": "The current period: the last 7 or 30 days through today"
          },
          "revenue": {
            "$ref": "#/components/schemas/SummaryMoney",
            "description": "Checkout total of the linked orders in the store's currency, shipping and tax included, refunds not subtracted"
          },
          "starts": {
            "$ref": "#/components/schemas/SummaryCount",
            "description": "Visits where the shopper answered or stepped forward at least once"
          },
          "views": {
            "$ref": "#/components/schemas/SummaryCount",
            "description": "Visits that opened the quiz on the store, whether or not the shopper answered anything; previews are not counted"
          }
        },
        "required": [
          "period",
          "range",
          "previous_range",
          "freshness",
          "views",
          "starts",
          "completions",
          "opt_ins",
          "orders",
          "revenue"
        ],
        "title": "AnalyticsSummary",
        "type": "object"
      },
      "AnalyticsTraffic": {
        "additionalProperties": false,
        "properties": {
          "by": {
            "description": "What the rows are grouped by",
            "enum": [
              "referrer_host",
              "utm_source",
              "utm_medium",
              "utm_campaign"
            ],
            "title": "By",
            "type": "string"
          },
          "filters": {
            "$ref": "#/components/schemas/AnalyticsFilters"
          },
          "freshness": {
            "$ref": "#/components/schemas/Freshness"
          },
          "other": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TrafficRow"
              },
              {
                "type": "null"
              }
            ],
            "description": "Every source past limit summed into one row; null when there are none"
          },
          "quiz_id": {
            "anyOf": [
              {
                "examples": [
                  "quiz_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^quiz_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The quiz; null for every quiz of the store",
            "title": "Quiz Id"
          },
          "range": {
            "$ref": "#/components/schemas/AnalyticsRange"
          },
          "rows": {
            "items": {
              "$ref": "#/components/schemas/TrafficRow"
            },
            "title": "Rows",
            "type": "array"
          }
        },
        "required": [
          "quiz_id",
          "by",
          "range",
          "filters",
          "freshness",
          "rows",
          "other"
        ],
        "title": "AnalyticsTraffic",
        "type": "object"
      },
      "AnalyticsVersion": {
        "additionalProperties": false,
        "properties": {
          "completion_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Completions as a percentage of starts, 0 to 100; null without starts",
            "title": "Completion Rate"
          },
          "completions": {
            "description": "Visits that finished the quiz: reached its last page and answered whatever that page requires",
            "title": "Completions",
            "type": "integer"
          },
          "orders": {
            "description": "Shopify orders linked to the quiz by its cart, the checkout or the email the shopper gave, by the day they were placed",
            "title": "Orders",
            "type": "integer"
          },
          "published_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the version was first published, UTC ISO 8601; null once the version is gone",
            "title": "Published At"
          },
          "revenue": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Money"
              },
              {
                "type": "null"
              }
            ],
            "description": "Checkout total of the linked orders in the store's currency, shipping and tax included, refunds not subtracted; null without linked orders"
          },
          "starts": {
            "description": "Visits where the shopper answered or stepped forward at least once",
            "title": "Starts",
            "type": "integer"
          },
          "version_id": {
            "anyOf": [
              {
                "examples": [
                  "ver_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^ver_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Version Id"
          },
          "version_number": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The version's number as the editor shows it (v14); null once the version is gone",
            "title": "Version Number"
          },
          "views": {
            "description": "Visits that opened the quiz on the store, whether or not the shopper answered anything; previews are not counted",
            "title": "Views",
            "type": "integer"
          }
        },
        "required": [
          "version_id",
          "version_number",
          "published_at",
          "views",
          "starts",
          "completions",
          "completion_rate",
          "orders",
          "revenue"
        ],
        "title": "AnalyticsVersion",
        "type": "object"
      },
      "AnalyticsVersions": {
        "additionalProperties": false,
        "properties": {
          "explainer_keys": {
            "description": "The camelCase names of the help topics that explain the numbers in this response",
            "items": {
              "type": "string"
            },
            "title": "Explainer Keys",
            "type": "array"
          },
          "freshness": {
            "$ref": "#/components/schemas/Freshness"
          },
          "quiz_id": {
            "examples": [
              "quiz_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^quiz_[0-9a-f]{32}$",
            "title": "Quiz Id",
            "type": "string"
          },
          "range": {
            "$ref": "#/components/schemas/AnalyticsRange"
          },
          "versions": {
            "description": "One row per version with activity in the range, newest first; activity of an unknown version last",
            "items": {
              "$ref": "#/components/schemas/AnalyticsVersion"
            },
            "title": "Versions",
            "type": "array"
          }
        },
        "required": [
          "quiz_id",
          "range",
          "freshness",
          "versions",
          "explainer_keys"
        ],
        "title": "AnalyticsVersions",
        "type": "object"
      },
      "AnswerBucketRow": {
        "additionalProperties": false,
        "properties": {
          "answer_orders": {
            "description": "Linked orders that followed this row's visits; a visit with several answers brings its orders to each",
            "title": "Answer Orders",
            "type": "integer"
          },
          "answer_revenue": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Money"
              },
              {
                "type": "null"
              }
            ],
            "description": "Checkout total of those orders in currency, shipping and tax included, refunds not subtracted; null when no currency is known to label it with"
          },
          "answered": {
            "description": "Visits whose answer fell in this band",
            "title": "Answered",
            "type": "integer"
          },
          "answered_share": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "answered as a percentage of the visits that answered the question, 0 to 100; null when none did",
            "title": "Answered Share"
          },
          "buyer_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "buyers as a percentage of this row's visits, 0 to 100; null without visits",
            "title": "Buyer Rate"
          },
          "buyers": {
            "description": "Of this row's visits, how many were followed by a linked order, even after the range ended",
            "title": "Buyers",
            "type": "integer"
          },
          "completed": {
            "description": "Of this row's visits, how many finished the quiz",
            "title": "Completed",
            "type": "integer"
          },
          "completion_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "completed as a percentage of this row's visits, 0 to 100; null without visits",
            "title": "Completion Rate"
          },
          "high": {
            "description": "The band's highest value, excluded except on the last band; equal to low on a one-step band",
            "title": "High",
            "type": "number"
          },
          "label": {
            "title": "Label",
            "type": "string"
          },
          "low": {
            "description": "The band's lowest value, included",
            "title": "Low",
            "type": "number"
          },
          "opt_in_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "opted_in as a percentage of this row's visits, 0 to 100; null without visits",
            "title": "Opt In Rate"
          },
          "opted_in": {
            "description": "Of this row's visits, how many submitted an email address or phone number",
            "title": "Opted In",
            "type": "integer"
          }
        },
        "required": [
          "label",
          "low",
          "high",
          "answered",
          "answered_share",
          "completed",
          "completion_rate",
          "opted_in",
          "opt_in_rate",
          "buyers",
          "buyer_rate",
          "answer_orders",
          "answer_revenue"
        ],
        "title": "AnswerBucketRow",
        "type": "object"
      },
      "AnswerNumericSummary": {
        "additionalProperties": false,
        "properties": {
          "count": {
            "title": "Count",
            "type": "integer"
          },
          "max": {
            "title": "Max",
            "type": "number"
          },
          "mean": {
            "title": "Mean",
            "type": "number"
          },
          "median": {
            "title": "Median",
            "type": "number"
          },
          "min": {
            "title": "Min",
            "type": "number"
          }
        },
        "required": [
          "count",
          "min",
          "max",
          "mean",
          "median"
        ],
        "title": "AnswerNumericSummary",
        "type": "object"
      },
      "AnswerOptionRow": {
        "additionalProperties": false,
        "properties": {
          "answer_orders": {
            "description": "Linked orders that followed this row's visits; a visit with several answers brings its orders to each",
            "title": "Answer Orders",
            "type": "integer"
          },
          "answer_revenue": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Money"
              },
              {
                "type": "null"
              }
            ],
            "description": "Checkout total of those orders in currency, shipping and tax included, refunds not subtracted; null when no currency is known to label it with"
          },
          "buyer_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "buyers as a percentage of this row's visits, 0 to 100; null without visits",
            "title": "Buyer Rate"
          },
          "buyers": {
            "description": "Of this row's visits, how many were followed by a linked order, even after the range ended",
            "title": "Buyers",
            "type": "integer"
          },
          "chose": {
            "description": "Visits that picked this option; a multi-select visit counts under each option it picked",
            "title": "Chose",
            "type": "integer"
          },
          "chose_share": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "chose as a percentage of the visits that answered the question, 0 to 100; null when none did",
            "title": "Chose Share"
          },
          "completed": {
            "description": "Of this row's visits, how many finished the quiz",
            "title": "Completed",
            "type": "integer"
          },
          "completion_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "completed as a percentage of this row's visits, 0 to 100; null without visits",
            "title": "Completion Rate"
          },
          "image_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Image Url"
          },
          "kind": {
            "description": "choice | image (an image choice)",
            "enum": [
              "choice",
              "image"
            ],
            "title": "Kind",
            "type": "string"
          },
          "label": {
            "title": "Label",
            "type": "string"
          },
          "opt_in_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "opted_in as a percentage of this row's visits, 0 to 100; null without visits",
            "title": "Opt In Rate"
          },
          "opted_in": {
            "description": "Of this row's visits, how many submitted an email address or phone number",
            "title": "Opted In",
            "type": "integer"
          },
          "option_id": {
            "title": "Option Id",
            "type": "string"
          },
          "removed": {
            "description": "True for an option that has answers but is gone from the published version; its id is its label",
            "title": "Removed",
            "type": "boolean"
          }
        },
        "required": [
          "option_id",
          "label",
          "kind",
          "image_url",
          "removed",
          "chose",
          "chose_share",
          "completed",
          "completion_rate",
          "opted_in",
          "opt_in_rate",
          "buyers",
          "buyer_rate",
          "answer_orders",
          "answer_revenue"
        ],
        "title": "AnswerOptionRow",
        "type": "object"
      },
      "AnswersQuestion": {
        "additionalProperties": false,
        "properties": {
          "component_key": {
            "title": "Component Key",
            "type": "string"
          },
          "kind": {
            "description": "choice: answered by options | number: a slider or number input, answered in bands of values",
            "enum": [
              "choice",
              "number"
            ],
            "title": "Kind",
            "type": "string"
          },
          "page_key": {
            "title": "Page Key",
            "type": "string"
          },
          "page_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Page Title"
          },
          "question": {
            "title": "Question",
            "type": "string"
          }
        },
        "required": [
          "page_key",
          "page_title",
          "component_key",
          "question",
          "kind"
        ],
        "title": "AnswersQuestion",
        "type": "object"
      },
      "AppKind": {
        "description": "What a stored app is: a quiz the store embeds, or a popup the store shows over its pages. One\nspelling everywhere: the ``phoenix.apps.kind`` column, the wire ``kind`` field, the TS mirror.",
        "enum": [
          "quiz",
          "popup"
        ],
        "title": "AppKind",
        "type": "string"
      },
      "AppStatus": {
        "description": "Publish-lifecycle status for an app.\nDRAFT: editable; not served to the storefront embed.\nPUBLISHED: a version is live; the embed serves the published snapshot.\nDELETED: soft-deleted; hidden from the dashboard list and the embed, but the\nrow (pages, versions) is retained for recoverability. The column is a plain\nVARCHAR (native_enum=False), so this value needs no migration.",
        "enum": [
          "draft",
          "published",
          "deleted"
        ],
        "title": "AppStatus",
        "type": "string"
      },
      "BreakdownRow": {
        "additionalProperties": false,
        "properties": {
          "completions": {
            "description": "Visits that finished the quiz: reached its last page and answered whatever that page requires",
            "title": "Completions",
            "type": "integer"
          },
          "email_opt_ins": {
            "description": "Visits where the shopper submitted an email address",
            "title": "Email Opt Ins",
            "type": "integer"
          },
          "phone_opt_ins": {
            "description": "Visits where the shopper submitted a phone number",
            "title": "Phone Opt Ins",
            "type": "integer"
          },
          "starts": {
            "description": "Visits where the shopper answered or stepped forward at least once",
            "title": "Starts",
            "type": "integer"
          },
          "unique_viewers_approx": {
            "description": "An estimate of how many different people opened the quiz; someone who came back counts once",
            "title": "Unique Viewers Approx",
            "type": "integer"
          },
          "value": {
            "description": "The group: a channel (direct | organic_search | paid_search | organic_social | paid_social | email | sms | affiliate | display | paid_other | referral | ai_assistant | other | shared_results), a device (mobile | tablet | desktop), new | returning, or a country code, per the breakdown's by",
            "title": "Value",
            "type": "string"
          },
          "views": {
            "description": "Visits that opened the quiz on the store, whether or not the shopper answered anything; previews are not counted",
            "title": "Views",
            "type": "integer"
          }
        },
        "required": [
          "value",
          "views",
          "starts",
          "completions",
          "email_opt_ins",
          "phone_opt_ins",
          "unique_viewers_approx"
        ],
        "title": "BreakdownRow",
        "type": "object"
      },
      "DecisionOption": {
        "description": "manual: the merchant decides. when_clear: publish at the first clear result. on_date: decide on\na date. ai: the AI decides.",
        "enum": [
          "manual",
          "when_clear",
          "on_date",
          "ai"
        ],
        "title": "DecisionOption",
        "type": "string"
      },
      "DeliveryList": {
        "additionalProperties": false,
        "properties": {
          "data": {
            "description": "The deliveries, newest first",
            "items": {
              "$ref": "#/components/schemas/DeliverySummary"
            },
            "title": "Data",
            "type": "array"
          },
          "has_more": {
            "description": "Whether another page follows",
            "title": "Has More",
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Send as cursor for the next page; null on the last",
            "title": "Next Cursor"
          }
        },
        "required": [
          "data",
          "has_more",
          "next_cursor"
        ],
        "title": "DeliveryList",
        "type": "object"
      },
      "DeliveryPayload": {
        "additionalProperties": false,
        "properties": {
          "api_version": {
            "const": "v1",
            "description": "The payload version",
            "title": "Api Version",
            "type": "string"
          },
          "created": {
            "description": "When the event happened",
            "format": "date-time",
            "title": "Created",
            "type": "string"
          },
          "data": {
            "additionalProperties": true,
            "description": "{object} exactly as it was signed and sent",
            "title": "Data",
            "type": "object"
          },
          "id": {
            "description": "The event id",
            "examples": [
              "evt_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^evt_[0-9a-f]{32}$",
            "title": "Id",
            "type": "string"
          },
          "type": {
            "description": "The topic: quiz.started | quiz.finished | quiz.abandoned | identity.captured | quiz.published | experiment.started | experiment.ended | profile.created | profile.updated | export.completed | webhook.endpoint.disabled | ping",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "type",
          "created",
          "api_version",
          "data"
        ],
        "title": "DeliveryPayload",
        "type": "object"
      },
      "DeliverySummary": {
        "additionalProperties": false,
        "properties": {
          "attempts": {
            "description": "How many times it was sent",
            "title": "Attempts",
            "type": "integer"
          },
          "created_at": {
            "description": "When the event was queued for this endpoint",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "delivered_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it was delivered; null until then",
            "title": "Delivered At"
          },
          "endpoint_id": {
            "description": "The endpoint",
            "examples": [
              "whe_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^whe_[0-9a-f]{32}$",
            "title": "Endpoint Id",
            "type": "string"
          },
          "event_id": {
            "description": "The event, the webhook-id header",
            "examples": [
              "evt_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^evt_[0-9a-f]{32}$",
            "title": "Event Id",
            "type": "string"
          },
          "id": {
            "description": "The delivery: one event to one endpoint",
            "examples": [
              "whd_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^whd_[0-9a-f]{32}$",
            "title": "Id",
            "type": "string"
          },
          "last_error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why the last attempt failed without a status, or why the delivery died; null otherwise",
            "title": "Last Error"
          },
          "last_response": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The start of the last response body, at most 1024 bytes",
            "title": "Last Response"
          },
          "last_status_code": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The HTTP status of the last attempt; null when none was received",
            "title": "Last Status Code"
          },
          "next_attempt_at": {
            "description": "When it is sent next",
            "format": "date-time",
            "title": "Next Attempt At",
            "type": "string"
          },
          "payload": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DeliveryPayload"
              },
              {
                "type": "null"
              }
            ],
            "description": "The envelope as signed; null until the first attempt builds it"
          },
          "status": {
            "description": "pending | retrying | delivering | delivered | dead",
            "enum": [
              "pending",
              "retrying",
              "delivering",
              "delivered",
              "dead"
            ],
            "title": "Status",
            "type": "string"
          },
          "topic": {
            "description": "quiz.started | quiz.finished | quiz.abandoned | identity.captured | quiz.published | experiment.started | experiment.ended | profile.created | profile.updated | export.completed | webhook.endpoint.disabled | ping",
            "title": "Topic",
            "type": "string"
          }
        },
        "required": [
          "id",
          "endpoint_id",
          "event_id",
          "topic",
          "status",
          "attempts",
          "next_attempt_at",
          "last_status_code",
          "last_response",
          "last_error",
          "created_at",
          "delivered_at",
          "payload"
        ],
        "title": "DeliverySummary",
        "type": "object"
      },
      "EndRequest": {
        "additionalProperties": false,
        "properties": {
          "confirm": {
            "const": true,
            "title": "Confirm",
            "type": "boolean"
          },
          "winner_arm_id": {
            "anyOf": [
              {
                "examples": [
                  "arm_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^arm_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The arm to keep or publish as the winner; leave it out to end with no winner",
            "title": "Winner Arm Id"
          }
        },
        "required": [
          "confirm"
        ],
        "title": "EndRequest",
        "type": "object"
      },
      "EndedBy": {
        "enum": [
          "manual",
          "auto",
          "ai",
          "fallback_revert"
        ],
        "title": "EndedBy",
        "type": "string"
      },
      "EventList": {
        "additionalProperties": false,
        "properties": {
          "data": {
            "description": "The events, newest first",
            "items": {
              "$ref": "#/components/schemas/EventSummary"
            },
            "title": "Data",
            "type": "array"
          },
          "has_more": {
            "description": "Whether another page follows",
            "title": "Has More",
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Send as cursor for the next page; null on the last",
            "title": "Next Cursor"
          }
        },
        "required": [
          "data",
          "has_more",
          "next_cursor"
        ],
        "title": "EventList",
        "type": "object"
      },
      "EventSummary": {
        "additionalProperties": false,
        "properties": {
          "created": {
            "description": "When the event happened",
            "format": "date-time",
            "title": "Created",
            "type": "string"
          },
          "endpoint_id": {
            "description": "The first endpoint the event was queued for",
            "examples": [
              "whe_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^whe_[0-9a-f]{32}$",
            "title": "Endpoint Id",
            "type": "string"
          },
          "id": {
            "description": "The event, the webhook-id header",
            "examples": [
              "evt_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^evt_[0-9a-f]{32}$",
            "title": "Id",
            "type": "string"
          },
          "topic": {
            "description": "The topic",
            "enum": [
              "quiz.started",
              "quiz.finished",
              "quiz.abandoned",
              "identity.captured",
              "quiz.published",
              "experiment.started",
              "experiment.ended",
              "profile.created",
              "profile.updated",
              "export.completed",
              "webhook.endpoint.disabled"
            ],
            "title": "Topic",
            "type": "string"
          },
          "type": {
            "description": "The topic: quiz.started | quiz.finished | quiz.abandoned | identity.captured | quiz.published | experiment.started | experiment.ended | profile.created | profile.updated | export.completed | webhook.endpoint.disabled",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "type",
          "topic",
          "endpoint_id",
          "created"
        ],
        "title": "EventSummary",
        "type": "object"
      },
      "ExperimentArmCounts": {
        "additionalProperties": false,
        "properties": {
          "arm_id": {
            "examples": [
              "arm_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^arm_[0-9a-f]{32}$",
            "title": "Arm Id",
            "type": "string"
          },
          "assignment_units": {
            "description": "Distinct shoppers assigned to this version; a shopper without cookies counts once per visit",
            "title": "Assignment Units",
            "type": "integer"
          },
          "completion_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Completions as a percentage of starts, 0 to 100; null without starts",
            "title": "Completion Rate"
          },
          "completions": {
            "description": "Visits that finished the quiz: reached its last page and answered whatever that page requires",
            "title": "Completions",
            "type": "integer"
          },
          "counted_revenue": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Money"
              },
              {
                "type": "null"
              }
            ],
            "description": "The part of revenue in the kinds the test counts, what the money metrics read; null when no currency is known to label it with"
          },
          "email_opt_ins": {
            "description": "Visits where the shopper submitted an email address",
            "title": "Email Opt Ins",
            "type": "integer"
          },
          "is_control": {
            "title": "Is Control",
            "type": "boolean"
          },
          "label": {
            "title": "Label",
            "type": "string"
          },
          "orders": {
            "description": "Orders linked to these visits with a line in a revenue kind the test counts",
            "title": "Orders",
            "type": "integer"
          },
          "phone_opt_ins": {
            "description": "Visits where the shopper submitted a phone number",
            "title": "Phone Opt Ins",
            "type": "integer"
          },
          "revenue": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Money"
              },
              {
                "type": "null"
              }
            ],
            "description": "Product revenue of those visits in all three kinds, after discounts and before shipping and tax, in the store's currency; null when no currency is known to label it with"
          },
          "revenue_by_bucket": {
            "$ref": "#/components/schemas/ProductBucketMoney",
            "description": "That revenue split by how each item reached the cart"
          },
          "starts": {
            "description": "Visits where the shopper answered or stepped forward at least once",
            "title": "Starts",
            "type": "integer"
          },
          "version_id": {
            "examples": [
              "ver_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^ver_[0-9a-f]{32}$",
            "title": "Version Id",
            "type": "string"
          },
          "version_number": {
            "title": "Version Number",
            "type": "integer"
          },
          "views": {
            "description": "Visits that opened the quiz on the store, whether or not the shopper answered anything; previews are not counted",
            "title": "Views",
            "type": "integer"
          },
          "visits_with_order": {
            "description": "Visits followed by at least one such order",
            "title": "Visits With Order",
            "type": "integer"
          },
          "weight": {
            "description": "The arm's share of the split, a whole number weighed against the other arm's",
            "title": "Weight",
            "type": "integer"
          }
        },
        "required": [
          "arm_id",
          "label",
          "version_id",
          "version_number",
          "weight",
          "is_control",
          "views",
          "starts",
          "completions",
          "completion_rate",
          "email_opt_ins",
          "phone_opt_ins",
          "orders",
          "visits_with_order",
          "revenue",
          "revenue_by_bucket",
          "counted_revenue",
          "assignment_units"
        ],
        "title": "ExperimentArmCounts",
        "type": "object"
      },
      "ExperimentArmDetail": {
        "additionalProperties": false,
        "description": "One arm on its own: the arm as the experiment lists it, plus the experiment it belongs to.",
        "properties": {
          "experiment_id": {
            "examples": [
              "expt_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^expt_[0-9a-f]{32}$",
            "title": "Experiment Id",
            "type": "string"
          },
          "id": {
            "examples": [
              "arm_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^arm_[0-9a-f]{32}$",
            "title": "Id",
            "type": "string"
          },
          "is_control": {
            "title": "Is Control",
            "type": "boolean"
          },
          "label": {
            "title": "Label",
            "type": "string"
          },
          "position": {
            "description": "0 for the live version, 1 for the variant",
            "title": "Position",
            "type": "integer"
          },
          "version_id": {
            "examples": [
              "ver_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^ver_[0-9a-f]{32}$",
            "title": "Version Id",
            "type": "string"
          },
          "version_number": {
            "title": "Version Number",
            "type": "integer"
          },
          "weight": {
            "description": "The arm's share of the split, a whole number weighed against the other arm's",
            "title": "Weight",
            "type": "integer"
          }
        },
        "required": [
          "id",
          "position",
          "label",
          "weight",
          "version_id",
          "version_number",
          "is_control",
          "experiment_id"
        ],
        "title": "ExperimentArmDetail",
        "type": "object"
      },
      "ExperimentArmReadout": {
        "additionalProperties": false,
        "properties": {
          "arm_id": {
            "examples": [
              "arm_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^arm_[0-9a-f]{32}$",
            "title": "Arm Id",
            "type": "string"
          },
          "capped_money": {
            "description": "Counted revenue with unusually large visits counted at the cap, in the store's currency; 0 for a rate",
            "title": "Capped Money",
            "type": "number"
          },
          "design_effect": {
            "description": "How much returning shoppers widened the range; 1 means repeats made no difference",
            "title": "Design Effect",
            "type": "number"
          },
          "events": {
            "description": "How many of those did what the metric counts; for the money metrics, the distinct counted orders",
            "title": "Events",
            "type": "integer"
          },
          "floors": {
            "items": {
              "$ref": "#/components/schemas/ExperimentFloor"
            },
            "title": "Floors",
            "type": "array"
          },
          "label": {
            "title": "Label",
            "type": "string"
          },
          "mean": {
            "description": "The metric on this version: a rate from 0 to 1, or revenue per visit or per order in the store's currency",
            "title": "Mean",
            "type": "number"
          },
          "n": {
            "description": "The visits the metric is read on: starts for completion and opt-in rates, visits for the rest",
            "title": "N",
            "type": "integer"
          },
          "raw_money": {
            "description": "Counted revenue before the cap on unusually large visits, in the store's currency; 0 for a rate",
            "title": "Raw Money",
            "type": "number"
          },
          "se": {
            "description": "The standard error of mean, with each returning shopper's visits grouped",
            "title": "Se",
            "type": "number"
          }
        },
        "required": [
          "arm_id",
          "label",
          "n",
          "events",
          "mean",
          "se",
          "design_effect",
          "raw_money",
          "capped_money",
          "floors"
        ],
        "title": "ExperimentArmReadout",
        "type": "object"
      },
      "ExperimentArmResponse": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "examples": [
              "arm_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^arm_[0-9a-f]{32}$",
            "title": "Id",
            "type": "string"
          },
          "is_control": {
            "title": "Is Control",
            "type": "boolean"
          },
          "label": {
            "title": "Label",
            "type": "string"
          },
          "position": {
            "description": "0 for the live version, 1 for the variant",
            "title": "Position",
            "type": "integer"
          },
          "version_id": {
            "examples": [
              "ver_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^ver_[0-9a-f]{32}$",
            "title": "Version Id",
            "type": "string"
          },
          "version_number": {
            "title": "Version Number",
            "type": "integer"
          },
          "weight": {
            "description": "The arm's share of the split, a whole number weighed against the other arm's",
            "title": "Weight",
            "type": "integer"
          }
        },
        "required": [
          "id",
          "position",
          "label",
          "weight",
          "version_id",
          "version_number",
          "is_control"
        ],
        "title": "ExperimentArmResponse",
        "type": "object"
      },
      "ExperimentAttentionItem": {
        "additionalProperties": false,
        "properties": {
          "app_id": {
            "examples": [
              "quiz_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^quiz_[0-9a-f]{32}$",
            "title": "App Id",
            "type": "string"
          },
          "experiment_id": {
            "examples": [
              "expt_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^expt_[0-9a-f]{32}$",
            "title": "Experiment Id",
            "type": "string"
          },
          "kind": {
            "description": "What the test needs: split_unhealthy | ai_recommended | waiting (you decide) | clear | long_run",
            "enum": [
              "clear",
              "waiting",
              "long_run",
              "split_unhealthy",
              "ai_recommended"
            ],
            "title": "Kind",
            "type": "string"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "since": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Since when, UTC ISO 8601",
            "title": "Since"
          },
          "week": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Weeks since the test started, on long_run only; null otherwise",
            "title": "Week"
          }
        },
        "required": [
          "experiment_id",
          "app_id",
          "name",
          "kind",
          "since",
          "week",
          "message"
        ],
        "title": "ExperimentAttentionItem",
        "type": "object"
      },
      "ExperimentAttentionResponse": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ExperimentAttentionItem"
            },
            "title": "Items",
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "ExperimentAttentionResponse",
        "type": "object"
      },
      "ExperimentCreate": {
        "additionalProperties": false,
        "properties": {
          "ai_fallback": {
            "$ref": "#/components/schemas/AiFallback",
            "default": "when_clear",
            "description": "After that many runs: decide at the first clear result without the AI, or wait for you"
          },
          "ai_max_runs": {
            "anyOf": [
              {
                "maximum": 20.0,
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "How many times the AI may run before it stops; null lets it run as often as the test asks",
            "title": "Ai Max Runs"
          },
          "ai_trigger": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AiTrigger"
              },
              {
                "type": "null"
              }
            ],
            "description": "When our AI decides, with decision_option ai only: when_clear (at the first clear result) | on_date"
          },
          "control_weight": {
            "default": 1,
            "description": "The live version's share of the split, a whole number weighed against the variant's",
            "minimum": 1.0,
            "title": "Control Weight",
            "type": "integer"
          },
          "decision_date": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The day the test decides, read in timezone, at least seven days out; null when it decides on no date",
            "title": "Decision Date"
          },
          "decision_metric": {
            "$ref": "#/components/schemas/MetricDefinitionSchema",
            "description": "The metric the test is decided on"
          },
          "decision_option": {
            "$ref": "#/components/schemas/DecisionOption",
            "default": "when_clear"
          },
          "fallback": {
            "$ref": "#/components/schemas/Fallback",
            "default": "notify"
          },
          "long_run_reminders": {
            "default": true,
            "description": "Whether reminder emails go out six weeks after the start and every two weeks after until it ends",
            "title": "Long Run Reminders",
            "type": "boolean"
          },
          "merchant_note": {
            "anyOf": [
              {
                "maxLength": 2000,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "A note our AI weighs when it decides, up to 2000 characters: context, never an order",
            "title": "Merchant Note"
          },
          "name": {
            "maxLength": 255,
            "minLength": 1,
            "title": "Name",
            "type": "string"
          },
          "protect_metrics": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/MetricKind"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "The metrics the test watches for harm: completion_rate | email_opt_in | order_conversion | rpv | aov | phone_opt_in | reached_page | product_page_clicked | custom_url_clicked | button_clicked | chose_answer",
            "title": "Protect Metrics"
          },
          "quiz_id": {
            "examples": [
              "quiz_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^quiz_[0-9a-f]{32}$",
            "title": "Quiz Id",
            "type": "string"
          },
          "revenue_tiers": {
            "description": "The kinds of revenue counted: added_from_quiz | shown_bought_later | bought_not_shown",
            "items": {
              "$ref": "#/components/schemas/RevenueTier"
            },
            "title": "Revenue Tiers",
            "type": "array"
          },
          "timezone": {
            "default": "UTC",
            "description": "IANA name of the timezone decision_date is read in",
            "title": "Timezone",
            "type": "string"
          },
          "variant": {
            "$ref": "#/components/schemas/VariantSpec"
          },
          "weekly_digest": {
            "default": true,
            "description": "Whether a weekly email reports where the test stands",
            "title": "Weekly Digest",
            "type": "boolean"
          }
        },
        "required": [
          "quiz_id",
          "name",
          "variant"
        ],
        "title": "ExperimentCreate",
        "type": "object"
      },
      "ExperimentDecisionTrace": {
        "additionalProperties": false,
        "properties": {
          "alpha": {
            "description": "The error rate the range allows, 0.05",
            "title": "Alpha",
            "type": "number"
          },
          "arms": {
            "description": "The decision metric per version, live version first: label, n, events, rate, se, raw_money, capped_money, design_effect",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Arms",
            "type": "array"
          },
          "as_of": {
            "description": "When the decision was made, UTC ISO 8601",
            "format": "date-time",
            "title": "As Of",
            "type": "string"
          },
          "attribution_window_days": {
            "description": "The store's order-matching window in days: how long after a visit an order still counts",
            "title": "Attribution Window Days",
            "type": "integer"
          },
          "bound": {
            "additionalProperties": true,
            "description": "What the range had to clear: k, alpha_used, se, n and needed_lo (the lead that excludes zero)",
            "title": "Bound",
            "type": "object"
          },
          "cap_value": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The revenue above which a visit was counted at the cap, in the store's currency; null without a cap",
            "title": "Cap Value"
          },
          "changes": {
            "description": "Notes recorded with the decision; currently always empty",
            "items": {
              "type": "string"
            },
            "title": "Changes",
            "type": "array"
          },
          "compared_version_ids": {
            "description": "The live version and the variant, in that order",
            "items": {
              "examples": [
                "ver_7c9e6679742540de944be07fc1f90ae7"
              ],
              "pattern": "^ver_[0-9a-f]{32}$",
              "type": "string"
            },
            "title": "Compared Version Ids",
            "type": "array"
          },
          "decision_metric": {
            "description": "completion_rate | email_opt_in | order_conversion | rpv | aov | phone_opt_in | reached_page | product_page_clicked | custom_url_clicked | button_clicked | chose_answer",
            "title": "Decision Metric",
            "type": "string"
          },
          "delta": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The variant's number minus the live version's, a rate as a fraction (0.05 is five points) or money in the store's currency; null until both versions have visits",
            "title": "Delta"
          },
          "floors": {
            "items": {
              "$ref": "#/components/schemas/ExperimentFloor"
            },
            "title": "Floors",
            "type": "array"
          },
          "formulas": {
            "items": {
              "$ref": "#/components/schemas/ExperimentTraceFormula"
            },
            "title": "Formulas",
            "type": "array"
          },
          "hi": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The high end of the range for the variant's number minus the live version's, in the same unit as delta; null until it can be read",
            "title": "Hi"
          },
          "judgement": {
            "description": "True for our AI's decision, its own judgement rather than the automatic rule's",
            "title": "Judgement",
            "type": "boolean"
          },
          "lo": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The low end of the range for the variant's number minus the live version's, in the same unit as delta; null until it can be read",
            "title": "Lo"
          },
          "n_star": {
            "description": "The visits expected by the decision date, where the range is tuned to be narrowest",
            "title": "N Star",
            "type": "number"
          },
          "period": {
            "title": "Period",
            "type": "integer"
          },
          "plain_line": {
            "title": "Plain Line",
            "type": "string"
          },
          "protection": {
            "description": "Each protected metric when decided: kind, label, lo, hi, assessed, harmed",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Protection",
            "type": "array"
          },
          "publish_arm": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The label of the version the rule would publish; null when it would publish none",
            "title": "Publish Arm"
          },
          "reason": {
            "description": "under_minimum_hours | split_unhealthy | collecting | leaning | clear_for_control | clear | protected_harmed:<metric kind>",
            "title": "Reason",
            "type": "string"
          },
          "revenue_tiers": {
            "description": "The kinds of revenue counted: added_from_quiz | shown_bought_later | bought_not_shown",
            "items": {
              "type": "string"
            },
            "title": "Revenue Tiers",
            "type": "array"
          },
          "revision": {
            "description": "The test's revision when decided",
            "title": "Revision",
            "type": "integer"
          },
          "split": {
            "$ref": "#/components/schemas/ExperimentSplitCheck"
          },
          "winner": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The label of the version the evidence favoured; null when it favoured neither",
            "title": "Winner"
          }
        },
        "required": [
          "plain_line",
          "as_of",
          "judgement",
          "attribution_window_days",
          "revenue_tiers",
          "compared_version_ids",
          "revision",
          "period",
          "cap_value",
          "alpha",
          "n_star",
          "decision_metric",
          "delta",
          "lo",
          "hi",
          "winner",
          "publish_arm",
          "reason",
          "arms",
          "bound",
          "floors",
          "split",
          "protection",
          "formulas",
          "changes"
        ],
        "title": "ExperimentDecisionTrace",
        "type": "object"
      },
      "ExperimentDetailResponse": {
        "additionalProperties": false,
        "properties": {
          "ai_fallback": {
            "$ref": "#/components/schemas/AiFallback",
            "description": "After that many runs: decide at the first clear result without the AI, or wait for you"
          },
          "ai_max_runs": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "How many times the AI may run before it stops; null lets it run as often as the test asks",
            "title": "Ai Max Runs"
          },
          "ai_rationale": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Our AI's reasoning for its last decision; null before it has decided",
            "title": "Ai Rationale"
          },
          "ai_trigger": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AiTrigger"
              },
              {
                "type": "null"
              }
            ],
            "description": "When our AI decides, with decision_option ai only: when_clear (at the first clear result) | on_date"
          },
          "ai_verdict": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AiVerdict"
              },
              {
                "type": "null"
              }
            ],
            "description": "What the AI decided last; null before it has run"
          },
          "app_id": {
            "examples": [
              "quiz_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^quiz_[0-9a-f]{32}$",
            "title": "App Id",
            "type": "string"
          },
          "arms": {
            "items": {
              "$ref": "#/components/schemas/ExperimentArmResponse"
            },
            "title": "Arms",
            "type": "array"
          },
          "clear_since_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the decision metric first read clear in this counting period, UTC ISO 8601; null until then",
            "title": "Clear Since At"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "decides_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "decision_date as an instant, midnight at its start in timezone, UTC ISO 8601; null without a date",
            "title": "Decides At"
          },
          "decision_date": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The day the test decides, read in timezone, at least seven days out; null when it decides on no date",
            "title": "Decision Date"
          },
          "decision_metric": {
            "description": "completion_rate | email_opt_in | order_conversion | rpv | aov | phone_opt_in | reached_page | product_page_clicked | custom_url_clicked | button_clicked | chose_answer",
            "title": "Decision Metric",
            "type": "string"
          },
          "decision_option": {
            "$ref": "#/components/schemas/DecisionOption"
          },
          "decision_target": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "What a targeted metric points at: reached_page {mode: specific | after, page_key}, button_clicked {page_key, component_key}, chose_answer {page_key, component_key, option_id}; null for any other metric",
            "title": "Decision Target"
          },
          "ended_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ended At"
          },
          "ended_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EndedBy"
              },
              {
                "type": "null"
              }
            ],
            "description": "Who ended the test: manual (you) | auto (the automatic rule) | ai | fallback_revert (the fallback kept the live version); null until it ends"
          },
          "events": {
            "items": {
              "$ref": "#/components/schemas/ExperimentEventResponse"
            },
            "title": "Events",
            "type": "array"
          },
          "fallback": {
            "$ref": "#/components/schemas/Fallback"
          },
          "id": {
            "examples": [
              "expt_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^expt_[0-9a-f]{32}$",
            "title": "Id",
            "type": "string"
          },
          "long_run_reminders": {
            "description": "Whether reminder emails go out six weeks after the start and every two weeks after until it ends",
            "title": "Long Run Reminders",
            "type": "boolean"
          },
          "merchant_note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "A note our AI weighs when it decides, up to 2000 characters: context, never an order",
            "title": "Merchant Note"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "outcome": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Outcome"
              },
              {
                "type": "null"
              }
            ]
          },
          "period": {
            "description": "The current counting period: 0 on a draft, 1 once started, one higher each time a new one opens",
            "title": "Period",
            "type": "integer"
          },
          "period_reason": {
            "$ref": "#/components/schemas/PeriodReason"
          },
          "period_started_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the current counting period began, UTC ISO 8601; null on a draft",
            "title": "Period Started At"
          },
          "protect_metrics": {
            "description": "The metrics the test watches for harm: completion_rate | email_opt_in | order_conversion | rpv | aov | phone_opt_in | reached_page | product_page_clicked | custom_url_clicked | button_clicked | chose_answer",
            "items": {
              "type": "string"
            },
            "title": "Protect Metrics",
            "type": "array"
          },
          "revenue_tiers": {
            "description": "The kinds of revenue counted: added_from_quiz | shown_bought_later | bought_not_shown",
            "items": {
              "type": "string"
            },
            "title": "Revenue Tiers",
            "type": "array"
          },
          "revision": {
            "description": "A number that goes up with every change to the test",
            "title": "Revision",
            "type": "integer"
          },
          "srm_flagged_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the split check found shoppers not landing in the versions as set, UTC ISO 8601; null while healthy",
            "title": "Srm Flagged At"
          },
          "started_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Started At"
          },
          "status": {
            "$ref": "#/components/schemas/ExperimentStatus"
          },
          "timezone": {
            "description": "IANA name of the timezone decision_date is read in",
            "title": "Timezone",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "weekly_digest": {
            "description": "Whether a weekly email reports where the test stands",
            "title": "Weekly Digest",
            "type": "boolean"
          },
          "winner_arm_id": {
            "anyOf": [
              {
                "examples": [
                  "arm_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^arm_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Winner Arm Id"
          }
        },
        "required": [
          "id",
          "app_id",
          "name",
          "status",
          "decision_metric",
          "decision_option",
          "timezone",
          "fallback",
          "ai_fallback",
          "revenue_tiers",
          "protect_metrics",
          "weekly_digest",
          "long_run_reminders",
          "period",
          "period_reason",
          "revision",
          "created_at",
          "updated_at",
          "arms",
          "events"
        ],
        "title": "ExperimentDetailResponse",
        "type": "object"
      },
      "ExperimentEventResponse": {
        "additionalProperties": false,
        "properties": {
          "arm_id": {
            "anyOf": [
              {
                "examples": [
                  "arm_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^arm_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Arm Id"
          },
          "at": {
            "format": "date-time",
            "title": "At",
            "type": "string"
          },
          "data": {
            "additionalProperties": true,
            "description": "What the event recorded, by kind; version ids in it are public ids, null once that version is deleted",
            "title": "Data",
            "type": "object"
          },
          "kind": {
            "description": "created | started | period_opened | weights_changed | control_published | arm_republished | decision_metric_changed | decision_option_changed | protect_changed | revenue_tiers_changed | settings_changed | evaluation_delayed | decision_traced | ai_decided | srm_flagged | clear | nudged | digest_sent | warning_sent | result_sent | ended | target_missing; a new kind may be added",
            "title": "Kind",
            "type": "string"
          }
        },
        "required": [
          "at",
          "kind",
          "arm_id",
          "data"
        ],
        "title": "ExperimentEventResponse",
        "type": "object"
      },
      "ExperimentFloor": {
        "additionalProperties": false,
        "properties": {
          "have": {
            "title": "Have",
            "type": "integer"
          },
          "met": {
            "title": "Met",
            "type": "boolean"
          },
          "name": {
            "description": "What the minimum counts: starts | visits | orders | events",
            "title": "Name",
            "type": "string"
          },
          "needed": {
            "description": "The minimum a version needs before its number is read",
            "title": "Needed",
            "type": "integer"
          }
        },
        "required": [
          "name",
          "needed",
          "have",
          "met"
        ],
        "title": "ExperimentFloor",
        "type": "object"
      },
      "ExperimentGate": {
        "additionalProperties": false,
        "properties": {
          "detail": {
            "title": "Detail",
            "type": "string"
          },
          "key": {
            "description": "decision_metric | min_days (seven days in the period) | enough_data | split_health | protected (no protected metric harmed)",
            "enum": [
              "decision_metric",
              "min_days",
              "enough_data",
              "split_health",
              "protected"
            ],
            "title": "Key",
            "type": "string"
          },
          "label": {
            "title": "Label",
            "type": "string"
          },
          "met": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Met"
          }
        },
        "required": [
          "key",
          "label",
          "met",
          "detail"
        ],
        "title": "ExperimentGate",
        "type": "object"
      },
      "ExperimentHeader": {
        "additionalProperties": false,
        "properties": {
          "current_read": {
            "description": "What the decision metric reads now, in one sentence",
            "title": "Current Read",
            "type": "string"
          },
          "current_read_numbers": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The numbers behind current_read; null while collecting or when it cannot be read",
            "title": "Current Read Numbers"
          },
          "day_line": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The day of the counting period in words; null past day 42",
            "title": "Day Line"
          },
          "difference": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Which pages the variant adds, removes or changes; null when both hold the same pages",
            "title": "Difference"
          },
          "evaluated_on_line": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why the decision waits past decision_date; null when it does not",
            "title": "Evaluated On Line"
          },
          "next": {
            "description": "What happens next, per how the test decides",
            "title": "Next",
            "type": "string"
          },
          "testing": {
            "description": "What is tested: each version with its number and share of shoppers",
            "title": "Testing",
            "type": "string"
          }
        },
        "required": [
          "testing",
          "difference",
          "current_read",
          "next",
          "day_line",
          "evaluated_on_line"
        ],
        "title": "ExperimentHeader",
        "type": "object"
      },
      "ExperimentList": {
        "additionalProperties": false,
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/ExperimentResponse"
            },
            "title": "Data",
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "title": "ExperimentList",
        "type": "object"
      },
      "ExperimentMetricReadout": {
        "additionalProperties": false,
        "properties": {
          "abs_hi": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The high end of the range for the variant's number minus the live version's, in the same unit as delta; null until it can be read",
            "title": "Abs Hi"
          },
          "abs_lo": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The low end of the range for the variant's number minus the live version's, in the same unit as delta; null until it can be read",
            "title": "Abs Lo"
          },
          "alpha": {
            "description": "The error rate the range allows, 0.05",
            "title": "Alpha",
            "type": "number"
          },
          "control": {
            "$ref": "#/components/schemas/ExperimentArmReadout"
          },
          "delta": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The variant's number minus the live version's, a rate as a fraction (0.05 is five points) or money in the store's currency; null until both versions have visits",
            "title": "Delta"
          },
          "design_effect": {
            "description": "The larger of the two versions' design effects",
            "title": "Design Effect",
            "type": "number"
          },
          "hi": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The high end of the range for lift; null with lift",
            "title": "Hi"
          },
          "k": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The width multiplier of the range, used instead of 1.96 so the range holds however often it is read",
            "title": "K"
          },
          "kind": {
            "description": "completion_rate | email_opt_in | order_conversion | rpv | aov | phone_opt_in | reached_page | product_page_clicked | custom_url_clicked | button_clicked | chose_answer",
            "title": "Kind",
            "type": "string"
          },
          "label": {
            "title": "Label",
            "type": "string"
          },
          "level": {
            "description": "Whether the line reads the two versions as level so far",
            "title": "Level",
            "type": "boolean"
          },
          "lift": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "delta relative to the live version's number, 0.1 is 10 percent better; null until that number is clear of zero",
            "title": "Lift"
          },
          "line": {
            "description": "The gap between the versions in one sentence, relative to the live version",
            "title": "Line",
            "type": "string"
          },
          "lo": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The low end of the range for lift; null with lift",
            "title": "Lo"
          },
          "n_star": {
            "description": "The visits expected by the decision date, where the range is tuned to be narrowest",
            "title": "N Star",
            "type": "number"
          },
          "population": {
            "description": "What the metric counts over: starts | visits | orders",
            "title": "Population",
            "type": "string"
          },
          "role": {
            "description": "decider: the decision metric | exploratory: reported beside it, never decides",
            "enum": [
              "decider",
              "exploratory"
            ],
            "title": "Role",
            "type": "string"
          },
          "se": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The standard error of delta; null with delta",
            "title": "Se"
          },
          "state": {
            "description": "collecting: not enough data | leaning: one version ahead, range still includes zero | clear: range excludes zero",
            "enum": [
              "collecting",
              "leaning",
              "clear"
            ],
            "title": "State",
            "type": "string"
          },
          "target": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "What the decision metric points at, as decision_target; null on every other metric",
            "title": "Target"
          },
          "unit": {
            "description": "The unit of delta and its range: percentage points, sent as a fraction (0.05 is five points) | currency per order | currency per visit",
            "title": "Unit",
            "type": "string"
          },
          "variant": {
            "$ref": "#/components/schemas/ExperimentArmReadout"
          },
          "why": {
            "title": "Why",
            "type": "string"
          }
        },
        "required": [
          "kind",
          "label",
          "target",
          "role",
          "population",
          "unit",
          "state",
          "why",
          "control",
          "variant",
          "delta",
          "abs_lo",
          "abs_hi",
          "lift",
          "lo",
          "hi",
          "k",
          "se",
          "alpha",
          "n_star",
          "design_effect",
          "line",
          "level"
        ],
        "title": "ExperimentMetricReadout",
        "type": "object"
      },
      "ExperimentPageChange": {
        "additionalProperties": false,
        "properties": {
          "kind": {
            "description": "How the variant differs on this page: added | removed | changed",
            "enum": [
              "added",
              "removed",
              "changed"
            ],
            "title": "Kind",
            "type": "string"
          },
          "page_key": {
            "title": "Page Key",
            "type": "string"
          },
          "page_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Page Title"
          }
        },
        "required": [
          "kind",
          "page_key",
          "page_title"
        ],
        "title": "ExperimentPageChange",
        "type": "object"
      },
      "ExperimentPatch": {
        "additionalProperties": false,
        "properties": {
          "ai_fallback": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AiFallback"
              },
              {
                "type": "null"
              }
            ],
            "description": "After that many runs: decide at the first clear result without the AI, or wait for you"
          },
          "ai_max_runs": {
            "anyOf": [
              {
                "maximum": 20.0,
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "How many times the AI may run before it stops; send null to lift the limit",
            "title": "Ai Max Runs"
          },
          "ai_trigger": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AiTrigger"
              },
              {
                "type": "null"
              }
            ],
            "description": "When our AI decides, with decision_option ai only: when_clear (at the first clear result) | on_date"
          },
          "control_weight": {
            "anyOf": [
              {
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The live version's share of the split; the other arm's is kept when absent",
            "title": "Control Weight"
          },
          "decision_date": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The day the test decides, read in timezone, at least seven days out; null when it decides on no date",
            "title": "Decision Date"
          },
          "decision_metric": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MetricDefinitionSchema"
              },
              {
                "type": "null"
              }
            ],
            "description": "The metric the test is decided on"
          },
          "decision_option": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DecisionOption"
              },
              {
                "type": "null"
              }
            ]
          },
          "fallback": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Fallback"
              },
              {
                "type": "null"
              }
            ]
          },
          "long_run_reminders": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "Whether reminder emails go out six weeks after the start and every two weeks after until it ends",
            "title": "Long Run Reminders"
          },
          "merchant_note": {
            "anyOf": [
              {
                "maxLength": 2000,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "A note our AI weighs when it decides, up to 2000 characters: context, never an order",
            "title": "Merchant Note"
          },
          "name": {
            "anyOf": [
              {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "protect_metrics": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/MetricKind"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "The metrics the test watches for harm: completion_rate | email_opt_in | order_conversion | rpv | aov | phone_opt_in | reached_page | product_page_clicked | custom_url_clicked | button_clicked | chose_answer",
            "title": "Protect Metrics"
          },
          "revenue_tiers": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/RevenueTier"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "The kinds of revenue counted: added_from_quiz | shown_bought_later | bought_not_shown",
            "title": "Revenue Tiers"
          },
          "timezone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "IANA name of the timezone decision_date is read in",
            "title": "Timezone"
          },
          "variant_weight": {
            "anyOf": [
              {
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The variant's share of the split; the other arm's is kept when absent",
            "title": "Variant Weight"
          },
          "weekly_digest": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "Whether a weekly email reports where the test stands",
            "title": "Weekly Digest"
          }
        },
        "title": "ExperimentPatch",
        "type": "object"
      },
      "ExperimentPeriod": {
        "additionalProperties": false,
        "properties": {
          "current": {
            "title": "Current",
            "type": "boolean"
          },
          "ended_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ended At"
          },
          "label": {
            "title": "Label",
            "type": "string"
          },
          "period": {
            "title": "Period",
            "type": "integer"
          },
          "reason": {
            "description": "Why the period began: started | split_changed | control_published | variant_republished | metric_changed | revenue_tiers_changed",
            "title": "Reason",
            "type": "string"
          },
          "started_at": {
            "format": "date-time",
            "title": "Started At",
            "type": "string"
          }
        },
        "required": [
          "period",
          "reason",
          "started_at",
          "ended_at",
          "current",
          "label"
        ],
        "title": "ExperimentPeriod",
        "type": "object"
      },
      "ExperimentProgress": {
        "additionalProperties": false,
        "properties": {
          "day": {
            "description": "The day of the current counting period, 1 on the day it began",
            "title": "Day",
            "type": "integer"
          },
          "days_at_pace": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "About how many more days the planned traffic takes at this pace; null past six weeks, at no pace or once ended",
            "title": "Days At Pace"
          },
          "line": {
            "description": "What the progress says; empty when the period has no planned sample or the decision metric is clear",
            "title": "Line",
            "type": "string"
          },
          "observed": {
            "additionalProperties": {
              "type": "integer"
            },
            "description": "What each version has so far toward its quota, keyed control and variant",
            "title": "Observed",
            "type": "object"
          },
          "pace": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Starts or visits a day, as the decision metric counts them, over the latest seven days; null without a plan",
            "title": "Pace"
          },
          "planned": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The visits both versions together need to spot a 10 percent difference; null when the period has no plan",
            "title": "Planned"
          },
          "quotas": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "integer"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "planned split by version, keyed control and variant; null without a plan",
            "title": "Quotas"
          },
          "share": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The lower of the two versions' progress toward its planned traffic, 0 to 1; null without a plan",
            "title": "Share"
          },
          "tier": {
            "description": "min_days: inside the minimum days | estimating: no pace yet | reached: enough shoppers and clear | reached_unclear: enough shoppers, not clear | on_track | slow",
            "title": "Tier",
            "type": "string"
          }
        },
        "required": [
          "day",
          "share",
          "pace",
          "days_at_pace",
          "planned",
          "quotas",
          "observed",
          "tier",
          "line"
        ],
        "title": "ExperimentProgress",
        "type": "object"
      },
      "ExperimentProtection": {
        "additionalProperties": false,
        "properties": {
          "assessed": {
            "description": "Whether the metric has enough data to be checked",
            "title": "Assessed",
            "type": "boolean"
          },
          "detail": {
            "title": "Detail",
            "type": "string"
          },
          "harmed": {
            "description": "Whether even the best case for the variant is worse than the live version",
            "title": "Harmed",
            "type": "boolean"
          },
          "hi": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The high end of the range for the variant's number minus the live version's, in the same unit as delta; null until it can be read",
            "title": "Hi"
          },
          "kind": {
            "description": "The protected metric: completion_rate | email_opt_in | order_conversion | rpv | aov | phone_opt_in | reached_page | product_page_clicked | custom_url_clicked | button_clicked | chose_answer",
            "title": "Kind",
            "type": "string"
          },
          "label": {
            "description": "not checked yet: too little data | no harm | worse: blocks an automatic publish",
            "enum": [
              "not checked yet",
              "no harm",
              "worse"
            ],
            "title": "Label",
            "type": "string"
          },
          "lo": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The low end of the range for the variant's number minus the live version's, in the same unit as delta; null until it can be read",
            "title": "Lo"
          }
        },
        "required": [
          "kind",
          "label",
          "lo",
          "hi",
          "assessed",
          "harmed",
          "detail"
        ],
        "title": "ExperimentProtection",
        "type": "object"
      },
      "ExperimentResponse": {
        "additionalProperties": false,
        "properties": {
          "ai_fallback": {
            "$ref": "#/components/schemas/AiFallback",
            "description": "After that many runs: decide at the first clear result without the AI, or wait for you"
          },
          "ai_max_runs": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "How many times the AI may run before it stops; null lets it run as often as the test asks",
            "title": "Ai Max Runs"
          },
          "ai_rationale": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Our AI's reasoning for its last decision; null before it has decided",
            "title": "Ai Rationale"
          },
          "ai_trigger": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AiTrigger"
              },
              {
                "type": "null"
              }
            ],
            "description": "When our AI decides, with decision_option ai only: when_clear (at the first clear result) | on_date"
          },
          "ai_verdict": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AiVerdict"
              },
              {
                "type": "null"
              }
            ],
            "description": "What the AI decided last; null before it has run"
          },
          "app_id": {
            "examples": [
              "quiz_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^quiz_[0-9a-f]{32}$",
            "title": "App Id",
            "type": "string"
          },
          "arms": {
            "items": {
              "$ref": "#/components/schemas/ExperimentArmResponse"
            },
            "title": "Arms",
            "type": "array"
          },
          "clear_since_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the decision metric first read clear in this counting period, UTC ISO 8601; null until then",
            "title": "Clear Since At"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "decides_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "decision_date as an instant, midnight at its start in timezone, UTC ISO 8601; null without a date",
            "title": "Decides At"
          },
          "decision_date": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The day the test decides, read in timezone, at least seven days out; null when it decides on no date",
            "title": "Decision Date"
          },
          "decision_metric": {
            "description": "completion_rate | email_opt_in | order_conversion | rpv | aov | phone_opt_in | reached_page | product_page_clicked | custom_url_clicked | button_clicked | chose_answer",
            "title": "Decision Metric",
            "type": "string"
          },
          "decision_option": {
            "$ref": "#/components/schemas/DecisionOption"
          },
          "decision_target": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "What a targeted metric points at: reached_page {mode: specific | after, page_key}, button_clicked {page_key, component_key}, chose_answer {page_key, component_key, option_id}; null for any other metric",
            "title": "Decision Target"
          },
          "ended_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ended At"
          },
          "ended_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EndedBy"
              },
              {
                "type": "null"
              }
            ],
            "description": "Who ended the test: manual (you) | auto (the automatic rule) | ai | fallback_revert (the fallback kept the live version); null until it ends"
          },
          "fallback": {
            "$ref": "#/components/schemas/Fallback"
          },
          "id": {
            "examples": [
              "expt_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^expt_[0-9a-f]{32}$",
            "title": "Id",
            "type": "string"
          },
          "long_run_reminders": {
            "description": "Whether reminder emails go out six weeks after the start and every two weeks after until it ends",
            "title": "Long Run Reminders",
            "type": "boolean"
          },
          "merchant_note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "A note our AI weighs when it decides, up to 2000 characters: context, never an order",
            "title": "Merchant Note"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "outcome": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Outcome"
              },
              {
                "type": "null"
              }
            ]
          },
          "period": {
            "description": "The current counting period: 0 on a draft, 1 once started, one higher each time a new one opens",
            "title": "Period",
            "type": "integer"
          },
          "period_reason": {
            "$ref": "#/components/schemas/PeriodReason"
          },
          "period_started_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the current counting period began, UTC ISO 8601; null on a draft",
            "title": "Period Started At"
          },
          "protect_metrics": {
            "description": "The metrics the test watches for harm: completion_rate | email_opt_in | order_conversion | rpv | aov | phone_opt_in | reached_page | product_page_clicked | custom_url_clicked | button_clicked | chose_answer",
            "items": {
              "type": "string"
            },
            "title": "Protect Metrics",
            "type": "array"
          },
          "revenue_tiers": {
            "description": "The kinds of revenue counted: added_from_quiz | shown_bought_later | bought_not_shown",
            "items": {
              "type": "string"
            },
            "title": "Revenue Tiers",
            "type": "array"
          },
          "revision": {
            "description": "A number that goes up with every change to the test",
            "title": "Revision",
            "type": "integer"
          },
          "srm_flagged_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the split check found shoppers not landing in the versions as set, UTC ISO 8601; null while healthy",
            "title": "Srm Flagged At"
          },
          "started_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Started At"
          },
          "status": {
            "$ref": "#/components/schemas/ExperimentStatus"
          },
          "timezone": {
            "description": "IANA name of the timezone decision_date is read in",
            "title": "Timezone",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "weekly_digest": {
            "description": "Whether a weekly email reports where the test stands",
            "title": "Weekly Digest",
            "type": "boolean"
          },
          "winner_arm_id": {
            "anyOf": [
              {
                "examples": [
                  "arm_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^arm_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Winner Arm Id"
          }
        },
        "required": [
          "id",
          "app_id",
          "name",
          "status",
          "decision_metric",
          "decision_option",
          "timezone",
          "fallback",
          "ai_fallback",
          "revenue_tiers",
          "protect_metrics",
          "weekly_digest",
          "long_run_reminders",
          "period",
          "period_reason",
          "revision",
          "created_at",
          "updated_at",
          "arms"
        ],
        "title": "ExperimentResponse",
        "type": "object"
      },
      "ExperimentResultsResponse": {
        "additionalProperties": false,
        "properties": {
          "admission_cutoff": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "For a money decision metric on a live test, the decision counts only visits before this, UTC ISO 8601; null otherwise",
            "title": "Admission Cutoff"
          },
          "admission_line": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Admission Line"
          },
          "ai_decision_trace": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ExperimentDecisionTrace"
              },
              {
                "type": "null"
              }
            ],
            "description": "The evidence our AI's latest decision was made on, frozen; null before any"
          },
          "arms": {
            "description": "Each version's numbers in the current counting period, live version first",
            "items": {
              "$ref": "#/components/schemas/ExperimentArmCounts"
            },
            "title": "Arms",
            "type": "array"
          },
          "as_of": {
            "description": "When these numbers were read, UTC ISO 8601; a read is served again for up to two hours",
            "format": "date-time",
            "title": "As Of",
            "type": "string"
          },
          "attribution_line": {
            "title": "Attribution Line",
            "type": "string"
          },
          "attribution_window_days": {
            "description": "The store's order-matching window in days: how long after a visit an order still counts",
            "title": "Attribution Window Days",
            "type": "integer"
          },
          "changed_since": {
            "description": "Whether revenue arriving since the decision moved the lead past half the recorded range",
            "title": "Changed Since",
            "type": "boolean"
          },
          "changed_since_line": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Changed Since Line"
          },
          "changes": {
            "description": "Pages the variant adds, removes or changes against the live version",
            "items": {
              "$ref": "#/components/schemas/ExperimentPageChange"
            },
            "title": "Changes",
            "type": "array"
          },
          "cookieless_line": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cookieless Line"
          },
          "cookieless_share": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Share of visits without cookies, assigned a version per visit, 0 to 1; null without visits",
            "title": "Cookieless Share"
          },
          "decision_trace": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ExperimentDecisionTrace"
              },
              {
                "type": "null"
              }
            ],
            "description": "The evidence the latest decision was made on, frozen; null before any"
          },
          "events": {
            "items": {
              "$ref": "#/components/schemas/ExperimentTimelineEvent"
            },
            "title": "Events",
            "type": "array"
          },
          "experiment": {
            "$ref": "#/components/schemas/ExperimentResponse"
          },
          "explainer_keys": {
            "description": "The camelCase names of the help topics that explain the numbers in this response",
            "items": {
              "type": "string"
            },
            "title": "Explainer Keys",
            "type": "array"
          },
          "frozen": {
            "description": "True once the test has ended: the visits counted stop at its end while their orders keep arriving",
            "title": "Frozen",
            "type": "boolean"
          },
          "gates": {
            "items": {
              "$ref": "#/components/schemas/ExperimentGate"
            },
            "title": "Gates",
            "type": "array"
          },
          "header": {
            "$ref": "#/components/schemas/ExperimentHeader"
          },
          "metrics": {
            "items": {
              "$ref": "#/components/schemas/ExperimentMetricReadout"
            },
            "title": "Metrics",
            "type": "array"
          },
          "periods": {
            "items": {
              "$ref": "#/components/schemas/ExperimentPeriod"
            },
            "title": "Periods",
            "type": "array"
          },
          "progress": {
            "$ref": "#/components/schemas/ExperimentProgress"
          },
          "protection": {
            "items": {
              "$ref": "#/components/schemas/ExperimentProtection"
            },
            "title": "Protection",
            "type": "array"
          },
          "split": {
            "$ref": "#/components/schemas/ExperimentSplitCheck"
          },
          "window_end": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The end of the visits counted, as_of or when the test ended, UTC ISO 8601; null on a draft",
            "title": "Window End"
          },
          "window_start": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The start of the visits counted, when the counting period began, UTC ISO 8601; null on a draft",
            "title": "Window Start"
          }
        },
        "required": [
          "experiment",
          "as_of",
          "window_start",
          "window_end",
          "frozen",
          "admission_cutoff",
          "admission_line",
          "attribution_window_days",
          "attribution_line",
          "cookieless_share",
          "cookieless_line",
          "arms",
          "header",
          "changes",
          "progress",
          "gates",
          "metrics",
          "protection",
          "split",
          "periods",
          "events",
          "decision_trace",
          "ai_decision_trace",
          "changed_since",
          "changed_since_line",
          "explainer_keys"
        ],
        "title": "ExperimentResultsResponse",
        "type": "object"
      },
      "ExperimentSplitCheck": {
        "additionalProperties": false,
        "properties": {
          "expected": {
            "description": "The share of shoppers each version should get, 0 to 1, live version first",
            "items": {
              "type": "number"
            },
            "title": "Expected",
            "type": "array"
          },
          "expected_share": {
            "description": "The variant's share of shoppers the split was set to, 0 to 1",
            "title": "Expected Share",
            "type": "number"
          },
          "latched": {
            "description": "Whether the check has fired; once fired it stays on for the rest of the test",
            "title": "Latched",
            "type": "boolean"
          },
          "line": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "What share of shoppers the variant should get and got; null before any shopper is counted",
            "title": "Line"
          },
          "log_odds": {
            "description": "The evidence that shoppers are not landing as the split was set; the check fires above 6.91",
            "title": "Log Odds",
            "type": "number"
          },
          "n": {
            "description": "The shoppers counted on both versions",
            "title": "N",
            "type": "integer"
          },
          "observed_share": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The variant's share of the shoppers counted, 0 to 1; null before any shopper is counted",
            "title": "Observed Share"
          },
          "surfaced": {
            "description": "Whether the 200 shoppers the check needs have been counted",
            "title": "Surfaced",
            "type": "boolean"
          },
          "units_per_arm": {
            "description": "Shoppers counted per version, live version first",
            "items": {
              "type": "integer"
            },
            "title": "Units Per Arm",
            "type": "array"
          }
        },
        "required": [
          "units_per_arm",
          "expected",
          "log_odds",
          "latched",
          "surfaced",
          "expected_share",
          "observed_share",
          "n",
          "line"
        ],
        "title": "ExperimentSplitCheck",
        "type": "object"
      },
      "ExperimentStatus": {
        "description": "draft: set up, not started. running: shoppers are being split. waiting: still splitting,\nautomatic decisions paused. ended: no longer assigning.",
        "enum": [
          "draft",
          "running",
          "waiting",
          "ended"
        ],
        "title": "ExperimentStatus",
        "type": "string"
      },
      "ExperimentTimelineEvent": {
        "additionalProperties": false,
        "properties": {
          "arm_id": {
            "anyOf": [
              {
                "examples": [
                  "arm_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^arm_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Arm Id"
          },
          "at": {
            "format": "date-time",
            "title": "At",
            "type": "string"
          },
          "data": {
            "additionalProperties": true,
            "description": "What the event recorded, by kind; version ids in it are public ids, null once that version is deleted",
            "title": "Data",
            "type": "object"
          },
          "kind": {
            "description": "created | started | period_opened | weights_changed | control_published | arm_republished | decision_metric_changed | decision_option_changed | protect_changed | revenue_tiers_changed | settings_changed | evaluation_delayed | decision_traced | ai_decided | srm_flagged | clear | nudged | digest_sent | warning_sent | result_sent | ended | target_missing; a new kind may be added",
            "title": "Kind",
            "type": "string"
          },
          "label": {
            "title": "Label",
            "type": "string"
          }
        },
        "required": [
          "at",
          "kind",
          "arm_id",
          "data",
          "label"
        ],
        "title": "ExperimentTimelineEvent",
        "type": "object"
      },
      "ExperimentTraceFormula": {
        "additionalProperties": false,
        "properties": {
          "key": {
            "description": "formula_cs | formula_k | formula_se | formula_srm | formula_floor | formula_guardrail | formula_rpv_cap",
            "title": "Key",
            "type": "string"
          },
          "label": {
            "title": "Label",
            "type": "string"
          },
          "latex": {
            "description": "The formula as written, in LaTeX",
            "title": "Latex",
            "type": "string"
          },
          "latex_plugged": {
            "description": "The formula with this test's numbers, in LaTeX",
            "title": "Latex Plugged",
            "type": "string"
          },
          "terms": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Each symbol with its meaning in words",
            "title": "Terms",
            "type": "object"
          }
        },
        "required": [
          "key",
          "label",
          "latex",
          "latex_plugged",
          "terms"
        ],
        "title": "ExperimentTraceFormula",
        "type": "object"
      },
      "ExportCreate": {
        "additionalProperties": false,
        "properties": {
          "dataset": {
            "description": "profiles or responses need profiles:read; quiz_analytics needs analytics:read",
            "enum": [
              "profiles",
              "responses",
              "quiz_analytics"
            ],
            "title": "Dataset",
            "type": "string"
          },
          "format": {
            "default": "csv",
            "description": "csv: one row per line behind a UTF-8 byte-order mark; json: one object {dataset, filters, generated_at, items} whose items are the rows as the API returns them",
            "enum": [
              "csv",
              "json"
            ],
            "title": "Format",
            "type": "string"
          },
          "from": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "First day, inclusive, UTC",
            "title": "From"
          },
          "quiz_id": {
            "anyOf": [
              {
                "examples": [
                  "quiz_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^quiz_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Only this quiz (profiles and responses)",
            "title": "Quiz Id"
          },
          "search": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProfileSearch"
              },
              {
                "type": "null"
              }
            ],
            "description": "profiles only: the answer filter of POST /v1/profiles/search (its groups, match and has_* fields); the file's quiz and days are the export's own quiz_id, from and to"
          },
          "to": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Last day, inclusive, UTC",
            "title": "To"
          },
          "tz": {
            "anyOf": [
              {
                "maxLength": 64,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "quiz_analytics only: the timezone the days are counted in",
            "title": "Tz"
          }
        },
        "required": [
          "dataset"
        ],
        "title": "ExportCreate",
        "type": "object"
      },
      "ExportFilters": {
        "additionalProperties": false,
        "properties": {
          "from": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "First day, inclusive, UTC",
            "title": "From"
          },
          "quiz_id": {
            "anyOf": [
              {
                "examples": [
                  "quiz_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^quiz_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Only this quiz (profiles and responses)",
            "title": "Quiz Id"
          },
          "search": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProfileSearch"
              },
              {
                "type": "null"
              }
            ],
            "description": "profiles only: the answer filter of POST /v1/profiles/search (its groups, match and has_* fields); the file's quiz and days are the export's own quiz_id, from and to"
          },
          "to": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Last day, inclusive, UTC",
            "title": "To"
          },
          "tz": {
            "anyOf": [
              {
                "maxLength": 64,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "quiz_analytics only: the timezone the days are counted in",
            "title": "Tz"
          }
        },
        "title": "ExportFilters",
        "type": "object"
      },
      "ExportList": {
        "additionalProperties": false,
        "properties": {
          "data": {
            "description": "The exports, newest first",
            "items": {
              "$ref": "#/components/schemas/ExportSummary"
            },
            "title": "Data",
            "type": "array"
          },
          "has_more": {
            "description": "Whether another page follows",
            "title": "Has More",
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Send as cursor for the next page; null on the last",
            "title": "Next Cursor"
          }
        },
        "required": [
          "data",
          "has_more",
          "next_cursor"
        ],
        "title": "ExportList",
        "type": "object"
      },
      "ExportSummary": {
        "additionalProperties": false,
        "properties": {
          "bytes": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The file's size in bytes; null until completed",
            "title": "Bytes"
          },
          "completed_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the file was ready; null before",
            "title": "Completed At"
          },
          "dataset": {
            "description": "What the file holds",
            "enum": [
              "profiles",
              "responses",
              "quiz_analytics",
              "audit_events"
            ],
            "title": "Dataset",
            "type": "string"
          },
          "download_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Set on GET /v1/exports/{export_id} while completed; valid 15 minutes",
            "title": "Download Url"
          },
          "download_url_expires_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When download_url stops working; null with it",
            "title": "Download Url Expires At"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why the build failed; null otherwise",
            "title": "Error"
          },
          "expires_at": {
            "description": "When the export and its file are deleted",
            "format": "date-time",
            "title": "Expires At",
            "type": "string"
          },
          "filters": {
            "$ref": "#/components/schemas/ExportFilters",
            "description": "The filters the export was requested with"
          },
          "format": {
            "description": "The file's format",
            "enum": [
              "csv",
              "json"
            ],
            "title": "Format",
            "type": "string"
          },
          "id": {
            "description": "The export",
            "examples": [
              "exp_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^exp_[0-9a-f]{32}$",
            "title": "Id",
            "type": "string"
          },
          "requested_at": {
            "description": "When the export was requested",
            "format": "date-time",
            "title": "Requested At",
            "type": "string"
          },
          "row_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Rows in the file; null until completed",
            "title": "Row Count"
          },
          "source": {
            "description": "Where the export was requested",
            "enum": [
              "api",
              "dashboard"
            ],
            "title": "Source",
            "type": "string"
          },
          "started_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the build started; null before",
            "title": "Started At"
          },
          "status": {
            "description": "pending | running | completed | failed | expired",
            "enum": [
              "pending",
              "running",
              "completed",
              "failed",
              "expired"
            ],
            "title": "Status",
            "type": "string"
          },
          "urls": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "self: this export on the API; fetch it for a fresh download link",
            "title": "Urls",
            "type": "object"
          }
        },
        "required": [
          "id",
          "dataset",
          "format",
          "source",
          "status",
          "filters",
          "row_count",
          "bytes",
          "error",
          "requested_at",
          "started_at",
          "completed_at",
          "expires_at",
          "urls"
        ],
        "title": "ExportSummary",
        "type": "object"
      },
      "Fallback": {
        "description": "What happens on the date without a clear result: keep running, put the live version back, or\ntell the merchant and wait.",
        "enum": [
          "keep",
          "revert",
          "notify"
        ],
        "title": "Fallback",
        "type": "string"
      },
      "Feature": {
        "enum": [
          "merchant_api",
          "quiz_ab_testing",
          "ai_model_switch",
          "ai_advanced_model",
          "analytics_paths",
          "people_filter",
          "analytics_funnel",
          "analytics_answers",
          "quiz_shopify_customer_metafields",
          "custom_css_classes",
          "shopify_metafields_plan"
        ],
        "title": "Feature",
        "type": "string"
      },
      "FieldError": {
        "additionalProperties": false,
        "properties": {
          "field": {
            "description": "The input that failed, as a dotted path (body.label, query.from)",
            "title": "Field",
            "type": "string"
          },
          "message": {
            "description": "Why it failed",
            "title": "Message",
            "type": "string"
          }
        },
        "required": [
          "field",
          "message"
        ],
        "title": "FieldError",
        "type": "object"
      },
      "Freshness": {
        "additionalProperties": false,
        "properties": {
          "as_of": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the numbers for past hours were last brought up to date, UTC ISO 8601; today's visits and orders are always counted live; null before the first update",
            "title": "As Of"
          },
          "closed_days_through": {
            "description": "The last day whose numbers are settled: yesterday in the request's timezone",
            "format": "date",
            "title": "Closed Days Through",
            "type": "string"
          },
          "next_refresh_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the next update is due, UTC ISO 8601; null when none is scheduled or the numbers are read live",
            "title": "Next Refresh At"
          },
          "pending": {
            "description": "True until every update behind these numbers has run once, so they may be incomplete",
            "title": "Pending",
            "type": "boolean"
          },
          "stale": {
            "title": "Stale",
            "type": "boolean"
          },
          "today_live": {
            "title": "Today Live",
            "type": "boolean"
          }
        },
        "required": [
          "as_of",
          "next_refresh_at",
          "stale",
          "pending",
          "closed_days_through",
          "today_live"
        ],
        "title": "Freshness",
        "type": "object"
      },
      "FunnelPage": {
        "additionalProperties": false,
        "properties": {
          "avg_time_on_page_ms": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Average time on the page per visit, in milliseconds.",
            "title": "Avg Time On Page Ms"
          },
          "dropped_share_of_starts": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "sessions_dropped as a percentage of the funnel's starts; null while nothing started.",
            "title": "Dropped Share Of Starts"
          },
          "page_key": {
            "title": "Page Key",
            "type": "string"
          },
          "removed": {
            "description": "True for a page the published version no longer has",
            "title": "Removed",
            "type": "boolean"
          },
          "sessions_continued": {
            "description": "Sessions that moved on from this page: reached minus dropped minus those still on it.",
            "title": "Sessions Continued",
            "type": "integer"
          },
          "sessions_dropped": {
            "description": "Sessions whose last page was this one and that ended without completing.",
            "title": "Sessions Dropped",
            "type": "integer"
          },
          "sessions_reached": {
            "description": "Sessions that opened this page at least once (one per person).",
            "title": "Sessions Reached",
            "type": "integer"
          },
          "sessions_reached_by_jump": {
            "description": "Sessions whose first arrival on this page was a jump rule.",
            "title": "Sessions Reached By Jump",
            "type": "integer"
          },
          "sessions_skipped": {
            "description": "Sessions that used the skip button on this page. A Back or Skip pressed after a long idle, once the visit was already closed as timed out, is not recorded.",
            "title": "Sessions Skipped",
            "type": "integer"
          },
          "sessions_went_back": {
            "description": "Sessions that went back to the previous page from here. A Back or Skip pressed after a long idle, once the visit was already closed as timed out, is not recorded.",
            "title": "Sessions Went Back",
            "type": "integer"
          },
          "title": {
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "page_key",
          "title",
          "removed",
          "sessions_reached",
          "sessions_reached_by_jump",
          "sessions_continued",
          "sessions_went_back",
          "sessions_skipped",
          "sessions_dropped",
          "dropped_share_of_starts",
          "avg_time_on_page_ms"
        ],
        "title": "FunnelPage",
        "type": "object"
      },
      "ImageBlockRow": {
        "additionalProperties": false,
        "properties": {
          "attempts": {
            "description": "Photos sent to the block: reads + retakes + refused + unavailable; previews are not counted",
            "title": "Attempts",
            "type": "integer"
          },
          "charged_reads": {
            "description": "Photos that used credits: reads + retakes + refused",
            "title": "Charged Reads",
            "type": "integer"
          },
          "component_key": {
            "description": "The block's key; its description answers under the same key",
            "title": "Component Key",
            "type": "string"
          },
          "failed_checks": {
            "description": "The checks photos failed, the one with the most retakes first; their retakes add up to retakes",
            "items": {
              "$ref": "#/components/schemas/ImageFailedCheck"
            },
            "title": "Failed Checks",
            "type": "array"
          },
          "label": {
            "description": "The block's label, else its key",
            "title": "Label",
            "type": "string"
          },
          "page_key": {
            "description": "The page the block is on",
            "title": "Page Key",
            "type": "string"
          },
          "page_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "That page's title; null when it has none",
            "title": "Page Title"
          },
          "read_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "sessions_read as a percentage of sessions_sent, 0 to 100; null under 30 visits that sent a photo",
            "title": "Read Rate"
          },
          "reads": {
            "description": "Photos that passed every check and were read",
            "title": "Reads",
            "type": "integer"
          },
          "refused": {
            "description": "Photos refused for explicit nudity, hate symbols or graphic violence",
            "title": "Refused",
            "type": "integer"
          },
          "removed": {
            "description": "True for a block that took photos in the range but is gone from the published version",
            "title": "Removed",
            "type": "boolean"
          },
          "retake_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "retakes as a percentage of attempts, 0 to 100; null under 30 visits that sent a photo",
            "title": "Retake Rate"
          },
          "retakes": {
            "description": "Photos sent back because they failed a check",
            "title": "Retakes",
            "type": "integer"
          },
          "send_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "sessions_sent as a percentage of sessions_reached, 0 to 100; null under 30 visits that sent a photo",
            "title": "Send Rate"
          },
          "sessions_reached": {
            "description": "Visits that entered the block's page; the page, not the block, so an upper bound when the block has a visibility rule",
            "title": "Sessions Reached",
            "type": "integer"
          },
          "sessions_read": {
            "description": "Visits where a photo passed every check and was read",
            "title": "Sessions Read",
            "type": "integer"
          },
          "sessions_sent": {
            "description": "Visits that sent at least one photo to the block",
            "title": "Sessions Sent",
            "type": "integer"
          },
          "unavailable": {
            "description": "Photos that could not be read at that moment; they use no credits",
            "title": "Unavailable",
            "type": "integer"
          }
        },
        "required": [
          "page_key",
          "page_title",
          "component_key",
          "label",
          "removed",
          "sessions_reached",
          "sessions_sent",
          "sessions_read",
          "send_rate",
          "read_rate",
          "attempts",
          "reads",
          "retakes",
          "refused",
          "unavailable",
          "retake_rate",
          "charged_reads",
          "failed_checks"
        ],
        "title": "ImageBlockRow",
        "type": "object"
      },
      "ImageFailedCheck": {
        "additionalProperties": false,
        "properties": {
          "check": {
            "description": "The check photos failed, in the words it had when the photo was sent; a removed check when the check can no longer be named",
            "title": "Check",
            "type": "string"
          },
          "current": {
            "description": "True when the published version still has a check with these words; false for a check reworded or removed since",
            "title": "Current",
            "type": "boolean"
          },
          "retake_share": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "retakes as a percentage of the block's retakes, 0 to 100; null under 30 visits that sent a photo",
            "title": "Retake Share"
          },
          "retakes": {
            "description": "Photos sent back for failing this check",
            "title": "Retakes",
            "type": "integer"
          }
        },
        "required": [
          "check",
          "current",
          "retakes",
          "retake_share"
        ],
        "title": "ImageFailedCheck",
        "type": "object"
      },
      "Limits": {
        "additionalProperties": false,
        "properties": {
          "analytics_soft_ttl_seconds": {
            "description": "Seconds before a cached analytics answer may refresh",
            "title": "Analytics Soft Ttl Seconds",
            "type": "integer"
          },
          "bot_multiplier": {
            "description": "The store-wide bucket is this many times the key bucket",
            "title": "Bot Multiplier",
            "type": "integer"
          },
          "capacity": {
            "description": "Requests a key may burst before its bucket is full",
            "title": "Capacity",
            "type": "integer"
          },
          "export_page_pause_ms": {
            "description": "Milliseconds an export job rests between pages of the store's data",
            "minimum": 1.0,
            "title": "Export Page Pause Ms",
            "type": "integer"
          },
          "leak_per_second": {
            "description": "Sustained requests per second per key",
            "title": "Leak Per Second",
            "type": "number"
          },
          "webhook_endpoints": {
            "description": "Maximum webhook endpoints for the store",
            "minimum": 1.0,
            "title": "Webhook Endpoints",
            "type": "integer"
          },
          "webhook_sends_per_second": {
            "description": "Sustained webhook sends per second per endpoint",
            "minimum": 1.0,
            "title": "Webhook Sends Per Second",
            "type": "integer"
          }
        },
        "required": [
          "capacity",
          "leak_per_second",
          "bot_multiplier",
          "analytics_soft_ttl_seconds",
          "webhook_endpoints",
          "webhook_sends_per_second",
          "export_page_pause_ms"
        ],
        "title": "Limits",
        "type": "object"
      },
      "MetricDefinitionSchema": {
        "additionalProperties": false,
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/MetricKind",
            "description": "The metric"
          },
          "target": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "What a targeted metric points at: reached_page {mode: specific | after, page_key}, button_clicked {page_key, component_key}, chose_answer {page_key, component_key, option_id}; null for any other metric",
            "title": "Target"
          }
        },
        "required": [
          "kind"
        ],
        "title": "MetricDefinitionSchema",
        "type": "object"
      },
      "MetricKind": {
        "enum": [
          "completion_rate",
          "email_opt_in",
          "order_conversion",
          "rpv",
          "aov",
          "phone_opt_in",
          "reached_page",
          "product_page_clicked",
          "custom_url_clicked",
          "button_clicked",
          "chose_answer"
        ],
        "title": "MetricKind",
        "type": "string"
      },
      "Money": {
        "additionalProperties": false,
        "properties": {
          "amount": {
            "description": "A decimal string, as \"79.97\"",
            "title": "Amount",
            "type": "string"
          },
          "currency": {
            "description": "ISO 4217 code",
            "title": "Currency",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "currency"
        ],
        "title": "Money",
        "type": "object"
      },
      "OtherPaths": {
        "additionalProperties": false,
        "properties": {
          "moves": {
            "description": "Their moves added up, so the listed edges plus these cover every move",
            "title": "Moves",
            "type": "integer"
          },
          "routes": {
            "description": "How many less-travelled routes are summed here instead of listed",
            "title": "Routes",
            "type": "integer"
          }
        },
        "required": [
          "routes",
          "moves"
        ],
        "title": "OtherPaths",
        "type": "object"
      },
      "Outcome": {
        "description": "How a test ended, in one word.",
        "enum": [
          "winner_manual",
          "winner_auto",
          "winner_ai",
          "ai_no_change",
          "ai_recommended",
          "ai_keep_running",
          "ai_blocked_credits",
          "srm_flagged",
          "no_winner_notify",
          "reverted",
          "plan_downgraded",
          "ended_manual",
          "cancelled"
        ],
        "title": "Outcome",
        "type": "string"
      },
      "OverviewPoint": {
        "additionalProperties": false,
        "properties": {
          "avg_time_to_complete_ms": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Average milliseconds from the first answer to finishing, over visits that finished on a later page than their first answer; null without one",
            "title": "Avg Time To Complete Ms"
          },
          "completions": {
            "description": "Visits that finished the quiz: reached its last page and answered whatever that page requires",
            "title": "Completions",
            "type": "integer"
          },
          "completions_with_order": {
            "description": "Completions with at least one linked order placed between the first day of the range and 31 days after its last; a visit with several orders counts once",
            "title": "Completions With Order",
            "type": "integer"
          },
          "consent_denied": {
            "description": "Visits where the shopper had declined tracking on the store",
            "title": "Consent Denied",
            "type": "integer"
          },
          "day": {
            "format": "date",
            "title": "Day",
            "type": "string"
          },
          "email_opt_ins": {
            "description": "Visits where the shopper submitted an email address",
            "title": "Email Opt Ins",
            "type": "integer"
          },
          "median_time_to_complete_ms": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Median milliseconds from the first answer to finishing, an estimate over visits that finished on a later page than their first answer; null without one",
            "title": "Median Time To Complete Ms"
          },
          "orders": {
            "description": "Shopify orders linked to the quiz by its cart, the checkout or the email the shopper gave, by the day they were placed",
            "title": "Orders",
            "type": "integer"
          },
          "orders_inside_window": {
            "description": "Linked orders placed within the store's order-matching window after the visit began; orders of items the quiz carted count up to 90 days",
            "title": "Orders Inside Window",
            "type": "integer"
          },
          "phone_opt_ins": {
            "description": "Visits where the shopper submitted a phone number",
            "title": "Phone Opt Ins",
            "type": "integer"
          },
          "revenue": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Money"
              },
              {
                "type": "null"
              }
            ],
            "description": "Checkout total of the linked orders in the store's currency, shipping and tax included, refunds not subtracted; null when no currency is known to label it with"
          },
          "revenue_by_bucket": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProductBucketMoney"
              },
              {
                "type": "null"
              }
            ],
            "description": "Product revenue split by how each item reached the cart; null while a channel, device, visitor or country filter is on"
          },
          "starts": {
            "description": "Visits where the shopper answered or stepped forward at least once",
            "title": "Starts",
            "type": "integer"
          },
          "unique_viewers_approx": {
            "description": "An estimate of how many different people opened the quiz; someone who came back counts once",
            "title": "Unique Viewers Approx",
            "type": "integer"
          },
          "views": {
            "description": "Visits that opened the quiz on the store, whether or not the shopper answered anything; previews are not counted",
            "title": "Views",
            "type": "integer"
          }
        },
        "required": [
          "views",
          "starts",
          "completions",
          "email_opt_ins",
          "phone_opt_ins",
          "consent_denied",
          "unique_viewers_approx",
          "orders",
          "orders_inside_window",
          "completions_with_order",
          "revenue",
          "avg_time_to_complete_ms",
          "median_time_to_complete_ms",
          "revenue_by_bucket",
          "day"
        ],
        "title": "OverviewPoint",
        "type": "object"
      },
      "OverviewTotals": {
        "additionalProperties": false,
        "properties": {
          "aov": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Money"
              },
              {
                "type": "null"
              }
            ],
            "description": "Revenue divided by linked orders; zero without orders; null when no currency is known to label it with"
          },
          "avg_came_back_to_buy_ms": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Average milliseconds from the visit to the order, for orders of a product the quiz showed and the shopper added later; null without one",
            "title": "Avg Came Back To Buy Ms"
          },
          "avg_quiz_to_checkout_ms": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Average milliseconds from the start of the visit to the order, for orders of items the quiz put in the cart; null without one",
            "title": "Avg Quiz To Checkout Ms"
          },
          "avg_time_to_complete_ms": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Average milliseconds from the first answer to finishing, over visits that finished on a later page than their first answer; null without one",
            "title": "Avg Time To Complete Ms"
          },
          "completion_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Completions as a percentage of starts, 0 to 100; null without starts",
            "title": "Completion Rate"
          },
          "completions": {
            "description": "Visits that finished the quiz: reached its last page and answered whatever that page requires",
            "title": "Completions",
            "type": "integer"
          },
          "completions_with_order": {
            "description": "Completions with at least one linked order placed between the first day of the range and 31 days after its last; a visit with several orders counts once",
            "title": "Completions With Order",
            "type": "integer"
          },
          "consent_denied": {
            "description": "Visits where the shopper had declined tracking on the store",
            "title": "Consent Denied",
            "type": "integer"
          },
          "conversion_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "completions_with_order as a percentage of completions, 0 to 100; null without completions",
            "title": "Conversion Rate"
          },
          "email_opt_ins": {
            "description": "Visits where the shopper submitted an email address",
            "title": "Email Opt Ins",
            "type": "integer"
          },
          "median_came_back_to_buy_ms": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Median milliseconds from the visit to the order, for orders of a product the quiz showed and the shopper added later; null without one",
            "title": "Median Came Back To Buy Ms"
          },
          "median_quiz_to_checkout_ms": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Median milliseconds from the start of the visit to the order, for orders of items the quiz put in the cart; null without one",
            "title": "Median Quiz To Checkout Ms"
          },
          "median_time_to_complete_ms": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Median milliseconds from the first answer to finishing, an estimate over visits that finished on a later page than their first answer; null without one",
            "title": "Median Time To Complete Ms"
          },
          "orders": {
            "description": "Shopify orders linked to the quiz by its cart, the checkout or the email the shopper gave, by the day they were placed",
            "title": "Orders",
            "type": "integer"
          },
          "orders_inside_window": {
            "description": "Linked orders placed within the store's order-matching window after the visit began; orders of items the quiz carted count up to 90 days",
            "title": "Orders Inside Window",
            "type": "integer"
          },
          "phone_opt_ins": {
            "description": "Visits where the shopper submitted a phone number",
            "title": "Phone Opt Ins",
            "type": "integer"
          },
          "revenue": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Money"
              },
              {
                "type": "null"
              }
            ],
            "description": "Checkout total of the linked orders in the store's currency, shipping and tax included, refunds not subtracted; null when no currency is known to label it with"
          },
          "revenue_by_bucket": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProductBucketMoney"
              },
              {
                "type": "null"
              }
            ],
            "description": "Product revenue split by how each item reached the cart; null while a channel, device, visitor or country filter is on"
          },
          "start_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Starts as a percentage of views, 0 to 100; null without views",
            "title": "Start Rate"
          },
          "starts": {
            "description": "Visits where the shopper answered or stepped forward at least once",
            "title": "Starts",
            "type": "integer"
          },
          "unique_viewers_approx": {
            "description": "An estimate of how many different people opened the quiz; someone who came back counts once",
            "title": "Unique Viewers Approx",
            "type": "integer"
          },
          "views": {
            "description": "Visits that opened the quiz on the store, whether or not the shopper answered anything; previews are not counted",
            "title": "Views",
            "type": "integer"
          }
        },
        "required": [
          "views",
          "starts",
          "completions",
          "email_opt_ins",
          "phone_opt_ins",
          "consent_denied",
          "unique_viewers_approx",
          "orders",
          "orders_inside_window",
          "completions_with_order",
          "revenue",
          "avg_time_to_complete_ms",
          "median_time_to_complete_ms",
          "revenue_by_bucket",
          "start_rate",
          "completion_rate",
          "conversion_rate",
          "aov",
          "median_quiz_to_checkout_ms",
          "avg_quiz_to_checkout_ms",
          "median_came_back_to_buy_ms",
          "avg_came_back_to_buy_ms"
        ],
        "title": "OverviewTotals",
        "type": "object"
      },
      "PageRole": {
        "description": "What a page is for, derived from what it holds (App.page_role): a loading visual, products,\nthe first page in order, else a question page.",
        "enum": [
          "start",
          "question",
          "loading",
          "results"
        ],
        "title": "PageRole",
        "type": "string"
      },
      "PathEdge": {
        "additionalProperties": false,
        "properties": {
          "cause": {
            "description": "How the destination was entered: sequential (the next page) | jump (a jump rule) | back | restart",
            "enum": [
              "sequential",
              "jump",
              "back",
              "restart"
            ],
            "title": "Cause",
            "type": "string"
          },
          "from_page_key": {
            "title": "From Page Key",
            "type": "string"
          },
          "jump_rule_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The jump rule that fired, unknown for one recorded without a key; null unless cause is jump",
            "title": "Jump Rule Key"
          },
          "moves": {
            "description": "How many times shoppers made this move; a shopper who made it twice counts twice",
            "title": "Moves",
            "type": "integer"
          },
          "sessions_moved": {
            "description": "How many different visits made this move at least once",
            "title": "Sessions Moved",
            "type": "integer"
          },
          "to_page_key": {
            "title": "To Page Key",
            "type": "string"
          }
        },
        "required": [
          "from_page_key",
          "to_page_key",
          "cause",
          "jump_rule_key",
          "moves",
          "sessions_moved"
        ],
        "title": "PathEdge",
        "type": "object"
      },
      "PathNode": {
        "additionalProperties": false,
        "properties": {
          "entries": {
            "description": "How many times shoppers opened this page",
            "title": "Entries",
            "type": "integer"
          },
          "entries_by_jump": {
            "description": "How many of those arrivals came from a jump rule rather than the page before",
            "title": "Entries By Jump",
            "type": "integer"
          },
          "exits_closed": {
            "description": "Visits that ended on this page because the shopper closed the quiz",
            "title": "Exits Closed",
            "type": "integer"
          },
          "exits_restarted": {
            "description": "Visits that ended on this page because the shopper started the quiz over",
            "title": "Exits Restarted",
            "type": "integer"
          },
          "exits_timed_out": {
            "description": "Visits that ended on this page because the shopper stopped without closing and it timed out",
            "title": "Exits Timed Out",
            "type": "integer"
          },
          "finished_here": {
            "description": "Visits that finished the quiz on this page",
            "title": "Finished Here",
            "type": "integer"
          },
          "median_time_on_page_ms": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Median milliseconds shoppers spent on this page; null without a timed visit",
            "title": "Median Time On Page Ms"
          },
          "page_key": {
            "title": "Page Key",
            "type": "string"
          },
          "removed": {
            "description": "True for a page the published version no longer has",
            "title": "Removed",
            "type": "boolean"
          },
          "still_here": {
            "description": "Visits still on this page when the numbers were read, not counted as an exit",
            "title": "Still Here",
            "type": "integer"
          },
          "title": {
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "page_key",
          "title",
          "removed",
          "entries",
          "entries_by_jump",
          "exits_closed",
          "exits_timed_out",
          "exits_restarted",
          "finished_here",
          "still_here",
          "median_time_on_page_ms"
        ],
        "title": "PathNode",
        "type": "object"
      },
      "PathRule": {
        "additionalProperties": false,
        "properties": {
          "fired": {
            "description": "How many arrivals the rule caused in the range",
            "title": "Fired",
            "type": "integer"
          },
          "jump_rule_key": {
            "title": "Jump Rule Key",
            "type": "string"
          },
          "source_entries": {
            "description": "Arrivals on the rule's page in the range, the denominator for fired",
            "title": "Source Entries",
            "type": "integer"
          },
          "source_page_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The page the rule lives on; null for a rule gone from the published version",
            "title": "Source Page Key"
          }
        },
        "required": [
          "jump_rule_key",
          "source_page_key",
          "fired",
          "source_entries"
        ],
        "title": "PathRule",
        "type": "object"
      },
      "PathVisibilitySkip": {
        "additionalProperties": false,
        "properties": {
          "page_key": {
            "title": "Page Key",
            "type": "string"
          },
          "removed": {
            "description": "True for a page the published version no longer has",
            "title": "Removed",
            "type": "boolean"
          },
          "times_hidden": {
            "description": "How many times visibility rules hid this page as shoppers moved forward past it; jumps are not counted",
            "title": "Times Hidden",
            "type": "integer"
          },
          "title": {
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "page_key",
          "title",
          "removed",
          "times_hidden"
        ],
        "title": "PathVisibilitySkip",
        "type": "object"
      },
      "PeriodReason": {
        "description": "Why a counting period began.",
        "enum": [
          "started",
          "split_changed",
          "control_published",
          "variant_republished",
          "metric_changed",
          "revenue_tiers_changed"
        ],
        "title": "PeriodReason",
        "type": "string"
      },
      "PlanTier": {
        "description": "Declared lowest first: a tier includes what every tier before it includes.",
        "enum": [
          "none",
          "basic",
          "plus",
          "enterprise"
        ],
        "title": "PlanTier",
        "type": "string"
      },
      "Problem": {
        "additionalProperties": false,
        "description": "The body of every non-2xx response.",
        "properties": {
          "detail": {
            "description": "What went wrong, for people",
            "title": "Detail",
            "type": "string"
          },
          "errors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/FieldError"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "validation_error only: one entry per invalid input",
            "title": "Errors"
          },
          "export": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "A timed-out profile search only: the url and body of the POST /v1/exports request that builds the same people as a file",
            "title": "Export"
          },
          "feature": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Feature"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "plan_required on a view the plan does not include: the feature"
          },
          "plan": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PlanTier"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "plan_required on a view the plan does not include: the lowest plan with it"
          },
          "request_id": {
            "description": "The same value as the Request-Id header; quote it to support",
            "title": "Request Id",
            "type": "string"
          },
          "required": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "insufficient_scope only: the scopes the route needs",
            "title": "Required"
          },
          "retry_after": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "429 and 503 only: seconds to wait, as in Retry-After",
            "title": "Retry After"
          },
          "status": {
            "description": "The HTTP status of the response",
            "title": "Status",
            "type": "integer"
          },
          "title": {
            "description": "The machine-readable error code; the Errors guide lists every one",
            "title": "Title",
            "type": "string"
          },
          "type": {
            "description": "A stable URI naming the error, on this API's public host",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type",
          "title",
          "status",
          "detail",
          "request_id"
        ],
        "title": "Problem",
        "type": "object"
      },
      "ProductBucketMoney": {
        "additionalProperties": false,
        "properties": {
          "added_from_quiz": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Money"
              },
              {
                "type": "null"
              }
            ],
            "description": "Product revenue of items the quiz itself put in the cart, after discounts and before shipping and tax, in the store's currency; null when no currency is known to label it with"
          },
          "bought_not_shown": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Money"
              },
              {
                "type": "null"
              }
            ],
            "description": "Product revenue of items in linked orders the quiz never showed that shopper, after discounts and before shipping and tax, in the store's currency; null when no currency is known to label it with"
          },
          "shown_bought_later": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Money"
              },
              {
                "type": "null"
              }
            ],
            "description": "Product revenue of items the quiz showed and the shopper added to the cart themselves, after discounts and before shipping and tax, in the store's currency; null when no currency is known to label it with"
          }
        },
        "required": [
          "added_from_quiz",
          "shown_bought_later",
          "bought_not_shown"
        ],
        "title": "ProductBucketMoney",
        "type": "object"
      },
      "ProductRow": {
        "additionalProperties": false,
        "properties": {
          "had_variants": {
            "title": "Had Variants",
            "type": "boolean"
          },
          "image_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Image Url"
          },
          "in_store": {
            "title": "In Store",
            "type": "boolean"
          },
          "line_revenue": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Money"
              },
              {
                "type": "null"
              }
            ],
            "description": "The product's revenue in linked orders, after discounts and before shipping and tax, in the store's currency; null when no currency is known to label it with"
          },
          "orders_approx": {
            "description": "An estimate of the linked orders containing the product, once per order",
            "title": "Orders Approx",
            "type": "integer"
          },
          "product_id": {
            "examples": [
              "gid://shopify/Product/8692896989320"
            ],
            "title": "Product Id",
            "type": "string"
          },
          "quiz_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The quiz that earned most of this product's revenue; null once that quiz is deleted",
            "title": "Quiz Name"
          },
          "revenue_by_bucket": {
            "$ref": "#/components/schemas/ProductBucketMoney",
            "description": "That revenue split by how each item reached the cart"
          },
          "shown_on": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProductShownOn"
              },
              {
                "type": "null"
              }
            ],
            "description": "Where the quiz showed the product most often; null when it never showed it"
          },
          "times_shown": {
            "description": "How many times the quiz showed the product, once per visit for each card that showed it",
            "title": "Times Shown",
            "type": "integer"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "units": {
            "description": "Units of the product bought across linked orders",
            "title": "Units",
            "type": "integer"
          }
        },
        "required": [
          "product_id",
          "title",
          "image_url",
          "in_store",
          "quiz_name",
          "shown_on",
          "times_shown",
          "orders_approx",
          "units",
          "line_revenue",
          "revenue_by_bucket",
          "had_variants"
        ],
        "title": "ProductRow",
        "type": "object"
      },
      "ProductShownOn": {
        "additionalProperties": false,
        "properties": {
          "block_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Block Key"
          },
          "page_key": {
            "title": "Page Key",
            "type": "string"
          },
          "page_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The page's title; null once the page is gone from the published quiz",
            "title": "Page Title"
          }
        },
        "required": [
          "page_key",
          "page_title",
          "block_key"
        ],
        "title": "ProductShownOn",
        "type": "object"
      },
      "ProfileAnswer": {
        "additionalProperties": false,
        "properties": {
          "component_key": {
            "description": "The question",
            "title": "Component Key",
            "type": "string"
          },
          "image_urls": {
            "description": "For an image choice: one entry per label in values, the option's image or null",
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "title": "Image Urls",
            "type": "array"
          },
          "kind": {
            "description": "What kind of answer this is",
            "enum": [
              "choice",
              "image",
              "text",
              "email",
              "phone",
              "number",
              "date",
              "other"
            ],
            "title": "Kind",
            "type": "string"
          },
          "page_key": {
            "description": "The page the question is on",
            "title": "Page Key",
            "type": "string"
          },
          "page_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "That page's title; null when it has none",
            "title": "Page Title"
          },
          "question": {
            "description": "The question as the quiz labels it",
            "title": "Question",
            "type": "string"
          },
          "removed": {
            "description": "True when the question is no longer in the quiz",
            "title": "Removed",
            "type": "boolean"
          },
          "value": {
            "description": "The answer as stored: an option id or the typed text, a JSON number for a number, a {date, time} object for a date",
            "title": "Value"
          },
          "values": {
            "description": "The answer as the shopper saw it: option labels, or the typed value as text",
            "items": {
              "type": "string"
            },
            "title": "Values",
            "type": "array"
          }
        },
        "required": [
          "page_key",
          "page_title",
          "component_key",
          "question",
          "kind",
          "values",
          "value",
          "image_urls",
          "removed"
        ],
        "title": "ProfileAnswer",
        "type": "object"
      },
      "ProfileDetail": {
        "additionalProperties": false,
        "properties": {
          "completed_count": {
            "description": "How many of them completed",
            "title": "Completed Count",
            "type": "integer"
          },
          "first_seen_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The start of the shopper's first session; null when not known",
            "title": "First Seen At"
          },
          "id": {
            "description": "The profile",
            "examples": [
              "prof_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^prof_[0-9a-f]{32}$",
            "title": "Id",
            "type": "string"
          },
          "identities": {
            "description": "The shopper's emails, phones and Shopify customer id; empty on a removed profile",
            "items": {
              "$ref": "#/components/schemas/ProfileIdentity"
            },
            "title": "Identities",
            "type": "array"
          },
          "last_order_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the latest of them was placed; null without orders",
            "title": "Last Order At"
          },
          "last_seen_at": {
            "description": "The latest moment the shopper was seen",
            "format": "date-time",
            "title": "Last Seen At",
            "type": "string"
          },
          "latest_results": {
            "description": "The latest completed result of each quiz",
            "items": {
              "$ref": "#/components/schemas/ProfileResult"
            },
            "title": "Latest Results",
            "type": "array"
          },
          "orders": {
            "description": "Orders linked to the shopper's quiz sessions",
            "items": {
              "$ref": "#/components/schemas/ProfileOrder"
            },
            "title": "Orders",
            "type": "array"
          },
          "orders_count": {
            "description": "Orders linked to the shopper's quiz sessions",
            "title": "Orders Count",
            "type": "integer"
          },
          "quizzes_taken_count": {
            "description": "How many different quizzes the shopper opened",
            "title": "Quizzes Taken Count",
            "type": "integer"
          },
          "removed": {
            "description": "True once the shopper's data was erased on a data-deletion request: no identities or contact values remain",
            "title": "Removed",
            "type": "boolean"
          },
          "removed_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the data was erased; null otherwise",
            "title": "Removed At"
          },
          "returning": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "True when the shopper opened a quiz again after we first knew them, on any device; null on a removed profile",
            "title": "Returning"
          },
          "returning_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Sessions that began after we first knew the shopper; null on a removed profile",
            "title": "Returning Count"
          },
          "sessions": {
            "description": "The shopper's sessions, newest first, at most 200",
            "items": {
              "$ref": "#/components/schemas/ProfileSession"
            },
            "title": "Sessions",
            "type": "array"
          },
          "sessions_count": {
            "description": "How many quiz sessions the shopper had",
            "title": "Sessions Count",
            "type": "integer"
          },
          "share_orders": {
            "description": "Orders bought through this shopper's shared results; never part of orders, orders_count or spent",
            "items": {
              "$ref": "#/components/schemas/ProfileShareOrder"
            },
            "title": "Share Orders",
            "type": "array"
          },
          "spent": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Money"
              },
              {
                "type": "null"
              }
            ],
            "description": "What those orders came to, in the store's currency; null without orders"
          }
        },
        "required": [
          "id",
          "removed",
          "removed_at",
          "identities",
          "first_seen_at",
          "last_seen_at",
          "sessions_count",
          "completed_count",
          "returning",
          "returning_count",
          "quizzes_taken_count",
          "orders_count",
          "spent",
          "last_order_at",
          "latest_results",
          "sessions",
          "orders",
          "share_orders"
        ],
        "title": "ProfileDetail",
        "type": "object"
      },
      "ProfileFormula": {
        "additionalProperties": false,
        "properties": {
          "component_key": {
            "description": "The formula or value table",
            "title": "Component Key",
            "type": "string"
          },
          "kind": {
            "default": "formula",
            "description": "A formula's number, or the value a value table resolved",
            "enum": [
              "formula",
              "table"
            ],
            "title": "Kind",
            "type": "string"
          },
          "label": {
            "description": "Its label",
            "title": "Label",
            "type": "string"
          },
          "page_key": {
            "description": "The page the formula or value table is on",
            "title": "Page Key",
            "type": "string"
          },
          "value": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The number it computed; null for a value table that holds text",
            "title": "Value"
          },
          "value_text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The text a value table resolved; null for a formula or a number table",
            "title": "Value Text"
          }
        },
        "required": [
          "page_key",
          "component_key",
          "label",
          "value"
        ],
        "title": "ProfileFormula",
        "type": "object"
      },
      "ProfileIdentity": {
        "additionalProperties": false,
        "properties": {
          "consent": {
            "description": "True only when the shopper ticked the marketing-consent box on their newest run that showed it; anything else, including a skipped page or a quiz without the box, is false",
            "title": "Consent",
            "type": "boolean"
          },
          "first_seen_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the identity was first captured",
            "title": "First Seen At"
          },
          "kind": {
            "description": "email | phone | shopify_customer_id. A new kind may be added, so skip one you do not know. shopify_customer_id arrives when the shopper takes a quiz logged in to the store or places an order linked to a quiz session; its consent is always false",
            "title": "Kind",
            "type": "string"
          },
          "last_seen_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The latest moment one of the shopper's sessions typed this kind of contact, never earlier than first_seen_at",
            "title": "Last Seen At"
          },
          "value": {
            "description": "The email (lowercase), the phone (E.164), or the Shopify customer as a gid://shopify/Customer/<id> GID",
            "title": "Value",
            "type": "string"
          }
        },
        "required": [
          "kind",
          "value",
          "first_seen_at",
          "last_seen_at",
          "consent"
        ],
        "title": "ProfileIdentity",
        "type": "object"
      },
      "ProfileList": {
        "additionalProperties": false,
        "properties": {
          "data": {
            "description": "The profiles, newest last seen first",
            "items": {
              "$ref": "#/components/schemas/ProfileSummary"
            },
            "title": "Data",
            "type": "array"
          },
          "has_more": {
            "description": "Whether another page follows",
            "title": "Has More",
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Send as cursor for the next page; null on the last",
            "title": "Next Cursor"
          },
          "returning_total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "How many of total came back; null once the total is capped",
            "title": "Returning Total"
          },
          "total": {
            "description": "How many profiles match",
            "title": "Total",
            "type": "integer"
          },
          "total_capped": {
            "default": false,
            "description": "A search stops counting at 5,000: total is then that cap, read it as 5,000+",
            "title": "Total Capped",
            "type": "boolean"
          }
        },
        "required": [
          "data",
          "has_more",
          "next_cursor",
          "total",
          "returning_total"
        ],
        "title": "ProfileList",
        "type": "object"
      },
      "ProfileOrder": {
        "additionalProperties": false,
        "properties": {
          "amount": {
            "$ref": "#/components/schemas/Money",
            "description": "Its total in the store's currency"
          },
          "created_at": {
            "description": "When the order was placed",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "matched_tier": {
            "description": "How the order was tied to the quiz session: line_item_property | cart_attribute | pixel_claim | email. The first two: the quiz put the product in the cart; pixel_claim: the checkout pixel named the session; email: the order's email belongs to the shopper",
            "title": "Matched Tier",
            "type": "string"
          },
          "order_id": {
            "description": "The Shopify order id",
            "title": "Order Id",
            "type": "string"
          },
          "order_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The order's name, as #1042; null when unknown",
            "title": "Order Name"
          },
          "quiz_id": {
            "anyOf": [
              {
                "examples": [
                  "quiz_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^quiz_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The quiz of the session it was tied to; null when not known",
            "title": "Quiz Id"
          },
          "quiz_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "That quiz's name; null with it",
            "title": "Quiz Name"
          },
          "session_id": {
            "anyOf": [
              {
                "examples": [
                  "sess_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^sess_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The session it was tied to; null when not known",
            "title": "Session Id"
          }
        },
        "required": [
          "order_id",
          "order_name",
          "created_at",
          "amount",
          "quiz_id",
          "quiz_name",
          "session_id",
          "matched_tier"
        ],
        "title": "ProfileOrder",
        "type": "object"
      },
      "ProfilePoints": {
        "additionalProperties": false,
        "properties": {
          "dimension_id": {
            "description": "The points dimension",
            "title": "Dimension Id",
            "type": "string"
          },
          "name": {
            "description": "Its name",
            "title": "Name",
            "type": "string"
          },
          "total": {
            "description": "The points the session scored on it",
            "title": "Total",
            "type": "number"
          }
        },
        "required": [
          "dimension_id",
          "name",
          "total"
        ],
        "title": "ProfilePoints",
        "type": "object"
      },
      "ProfileQuiz": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The quiz",
            "examples": [
              "quiz_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^quiz_[0-9a-f]{32}$",
            "title": "Id",
            "type": "string"
          },
          "name": {
            "description": "Its name",
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "title": "ProfileQuiz",
        "type": "object"
      },
      "ProfileResult": {
        "additionalProperties": false,
        "properties": {
          "answers": {
            "description": "Its answers",
            "items": {
              "$ref": "#/components/schemas/ProfileAnswer"
            },
            "title": "Answers",
            "type": "array"
          },
          "completed_at": {
            "description": "When it completed",
            "format": "date-time",
            "title": "Completed At",
            "type": "string"
          },
          "formulas": {
            "description": "Its formula values",
            "items": {
              "$ref": "#/components/schemas/ProfileFormula"
            },
            "title": "Formulas",
            "type": "array"
          },
          "points": {
            "description": "Its points per dimension",
            "items": {
              "$ref": "#/components/schemas/ProfilePoints"
            },
            "title": "Points",
            "type": "array"
          },
          "points_total": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The points summed over the dimensions; null when the quiz scores none",
            "title": "Points Total"
          },
          "quiz_id": {
            "description": "The quiz",
            "examples": [
              "quiz_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^quiz_[0-9a-f]{32}$",
            "title": "Quiz Id",
            "type": "string"
          },
          "quiz_name": {
            "description": "Its name",
            "title": "Quiz Name",
            "type": "string"
          },
          "result_page": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProfileResultPage"
              },
              {
                "type": "null"
              }
            ],
            "description": "The result page it ended on; null when not known"
          },
          "results_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The link to this result: the page the quiz ran on plus the session's public id; null when the page was not recorded",
            "title": "Results Url"
          },
          "session_id": {
            "description": "The latest completed session of this quiz",
            "examples": [
              "sess_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^sess_[0-9a-f]{32}$",
            "title": "Session Id",
            "type": "string"
          },
          "started_at": {
            "description": "When that session opened",
            "format": "date-time",
            "title": "Started At",
            "type": "string"
          },
          "version_number": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The version the session ran; null when that version is gone",
            "title": "Version Number"
          },
          "winner": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProfilePoints"
              },
              {
                "type": "null"
              }
            ],
            "description": "The top dimension; null when the quiz scores none"
          }
        },
        "required": [
          "quiz_id",
          "quiz_name",
          "version_number",
          "session_id",
          "started_at",
          "completed_at",
          "answers",
          "points",
          "winner",
          "points_total",
          "formulas",
          "result_page",
          "results_url"
        ],
        "title": "ProfileResult",
        "type": "object"
      },
      "ProfileResultPage": {
        "additionalProperties": false,
        "properties": {
          "page_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "How many pages the quiz version has; null when not known",
            "title": "Page Count"
          },
          "page_key": {
            "description": "The result page",
            "title": "Page Key",
            "type": "string"
          },
          "position": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Its position in the quiz, from 1; null when not known",
            "title": "Position"
          },
          "shown_products": {
            "description": "The products it showed",
            "items": {
              "$ref": "#/components/schemas/ProfileShownProduct"
            },
            "title": "Shown Products",
            "type": "array"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Its title; null when it has none",
            "title": "Title"
          }
        },
        "required": [
          "page_key",
          "title",
          "position",
          "page_count",
          "shown_products"
        ],
        "title": "ProfileResultPage",
        "type": "object"
      },
      "ProfileSearch": {
        "additionalProperties": false,
        "description": "Who to find: the list filters of GET /v1/profiles except q, plus person facts and an answer filter, an OR of\nAND groups. Send the same body with every page: a cursor belongs to the search that answered it and\nis refused with any other body.",
        "properties": {
          "from": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Last seen on or after this UTC day",
            "title": "From"
          },
          "groups": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/ProfileSearchGroup"
                },
                "maxItems": 4,
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "OR of AND groups: up to 4 groups of 8 terms",
            "title": "Groups"
          },
          "has_email": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "Has an email",
            "title": "Has Email"
          },
          "has_marketing_consent": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "Ticked the marketing-consent checkbox beside their newest email or phone answer",
            "title": "Has Marketing Consent"
          },
          "has_order": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "Placed an order we linked to a quiz session",
            "title": "Has Order"
          },
          "has_phone": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "Has a phone",
            "title": "Has Phone"
          },
          "is_returning": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "Opened a quiz again after we first knew them, on any device",
            "title": "Is Returning"
          },
          "match": {
            "default": "any_session",
            "description": "any_session: any time they took the quiz counts; latest_completed_per_quiz: only their latest completed take of each quiz",
            "enum": [
              "any_session",
              "latest_completed_per_quiz"
            ],
            "title": "Match",
            "type": "string"
          },
          "quiz_id": {
            "anyOf": [
              {
                "examples": [
                  "quiz_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^quiz_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Only people who took this quiz",
            "title": "Quiz Id"
          },
          "to": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Last seen on or before this UTC day",
            "title": "To"
          }
        },
        "title": "ProfileSearch",
        "type": "object"
      },
      "ProfileSearchAny": {
        "additionalProperties": false,
        "properties": {
          "any": {
            "description": "At least one of these terms must hold; plain terms only",
            "items": {
              "$ref": "#/components/schemas/ProfileSearchTerm"
            },
            "maxItems": 8,
            "minItems": 2,
            "title": "Any",
            "type": "array"
          }
        },
        "required": [
          "any"
        ],
        "title": "ProfileSearchAny",
        "type": "object"
      },
      "ProfileSearchGroup": {
        "additionalProperties": false,
        "properties": {
          "all": {
            "description": "Every slot must hold: a term, or {any: [terms]}; at most 8 terms in the group, counting the terms inside any",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/ProfileSearchTerm"
                },
                {
                  "$ref": "#/components/schemas/ProfileSearchAny"
                }
              ]
            },
            "maxItems": 8,
            "minItems": 1,
            "title": "All",
            "type": "array"
          }
        },
        "required": [
          "all"
        ],
        "title": "ProfileSearchGroup",
        "type": "object"
      },
      "ProfileSearchTerm": {
        "additionalProperties": false,
        "properties": {
          "component_key": {
            "anyOf": [
              {
                "maxLength": 200,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The question or formula",
            "title": "Component Key"
          },
          "dimension_id": {
            "anyOf": [
              {
                "maxLength": 200,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "points: the dimension",
            "title": "Dimension Id"
          },
          "kind": {
            "description": "choice | number | date | text | email | phone: a question of the quiz (page_key + component_key); points: a dimension (dimension_id); formula: a formula component (page_key + component_key); winner: the top dimension (dimension ids in option_ids); session: how the shopper's session ended (value completed | abandoned, page_key the page they left on)",
            "enum": [
              "choice",
              "number",
              "date",
              "text",
              "email",
              "phone",
              "points",
              "formula",
              "winner",
              "session"
            ],
            "title": "Kind",
            "type": "string"
          },
          "max": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "between: the high bound",
            "title": "Max"
          },
          "min": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "between: the low bound (a number, or a YYYY-MM-DD day)",
            "title": "Min"
          },
          "op": {
            "description": "choice: in | not_in; number, points, formula: eq | lt | gt | between; date: eq | before | after | between; text: contains | equals | matches | answered | not_answered; email, phone: answered | not_answered; winner: in; session: equals. not_in means answered the question and picked none of these; not_answered means took the quiz and left the question unanswered.",
            "enum": [
              "in",
              "not_in",
              "eq",
              "lt",
              "gt",
              "between",
              "before",
              "after",
              "contains",
              "equals",
              "matches",
              "answered",
              "not_answered"
            ],
            "title": "Op",
            "type": "string"
          },
          "option_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "maxItems": 50,
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "Option ids (exact)",
            "title": "Option Ids"
          },
          "option_labels": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "maxItems": 50,
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "Option labels, matched trim- and case-insensitively against every version of the quiz",
            "title": "Option Labels"
          },
          "page_key": {
            "anyOf": [
              {
                "maxLength": 200,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The question's page (choice, number, date, text, email, phone, formula) or the page left on (session)",
            "title": "Page Key"
          },
          "quiz_id": {
            "description": "The quiz the term reads",
            "examples": [
              "quiz_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^quiz_[0-9a-f]{32}$",
            "title": "Quiz Id",
            "type": "string"
          },
          "value": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "eq, lt, gt, before, after, contains, equals: the operand; matches: a case-insensitive regular expression of at most 64 characters with a run of three plain letters or digits, no lookarounds or backreferences; session: completed | abandoned",
            "title": "Value"
          }
        },
        "required": [
          "quiz_id",
          "kind",
          "op"
        ],
        "title": "ProfileSearchTerm",
        "type": "object"
      },
      "ProfileSession": {
        "additionalProperties": false,
        "properties": {
          "channel": {
            "description": "How the shopper arrived: direct | organic_search | paid_search | organic_social | paid_social | email | sms | affiliate | display | paid_other | referral | ai_assistant | other | shared_results",
            "title": "Channel",
            "type": "string"
          },
          "completed_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it completed; null otherwise",
            "title": "Completed At"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The shopper's country from their IP, ISO 3166-1 alpha-2; null when unknown",
            "title": "Country"
          },
          "device_class": {
            "description": "mobile | tablet | desktop",
            "title": "Device Class",
            "type": "string"
          },
          "ended_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it ended; null while it runs",
            "title": "Ended At"
          },
          "last_open_channel": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "How that last open arrived: direct | organic_search | paid_search | organic_social | paid_social | email | sms | affiliate | display | paid_other | referral | ai_assistant | other | shared_results; null when never opened",
            "title": "Last Open Channel"
          },
          "last_opened_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the session's shared result was last opened; null when never",
            "title": "Last Opened At"
          },
          "last_page_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The last page visited; null before any",
            "title": "Last Page Key"
          },
          "last_page_position": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Its position in the quiz, from 1; null when not known",
            "title": "Last Page Position"
          },
          "last_page_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Its title; null when it has none",
            "title": "Last Page Title"
          },
          "opens": {
            "description": "Times this session's shared result was opened",
            "title": "Opens",
            "type": "integer"
          },
          "order": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProfileSessionOrder"
              },
              {
                "type": "null"
              }
            ],
            "description": "The first order that followed the session; null when none did"
          },
          "page_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "How many pages the version has; null when not known",
            "title": "Page Count"
          },
          "pages_visited": {
            "description": "How many pages the shopper visited in the session",
            "title": "Pages Visited",
            "type": "integer"
          },
          "quiz_id": {
            "description": "Its quiz",
            "examples": [
              "quiz_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^quiz_[0-9a-f]{32}$",
            "title": "Quiz Id",
            "type": "string"
          },
          "quiz_name": {
            "description": "The quiz's name",
            "title": "Quiz Name",
            "type": "string"
          },
          "results_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The link to this session's results once completed; null before",
            "title": "Results Url"
          },
          "returning": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "True when the session began after we first knew the shopper; null on a removed profile",
            "title": "Returning"
          },
          "session_id": {
            "description": "The session",
            "examples": [
              "sess_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^sess_[0-9a-f]{32}$",
            "title": "Session Id",
            "type": "string"
          },
          "source_kind": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "share: started from a shared result | restart: started by Restart; null for a session the shopper opened themselves",
            "examples": [
              "share",
              "restart",
              null
            ],
            "title": "Source Kind"
          },
          "source_session_id": {
            "anyOf": [
              {
                "examples": [
                  "sess_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^sess_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The session this one was started from: a shared result (source_kind share) or a Restart (source_kind restart); null for a session the shopper opened themselves",
            "title": "Source Session Id"
          },
          "started_at": {
            "description": "When it opened",
            "format": "date-time",
            "title": "Started At",
            "type": "string"
          },
          "status": {
            "description": "completed | in_progress | left",
            "enum": [
              "completed",
              "in_progress",
              "left"
            ],
            "title": "Status",
            "type": "string"
          },
          "version_number": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The version it ran; null when that version is gone",
            "title": "Version Number"
          }
        },
        "required": [
          "session_id",
          "quiz_id",
          "quiz_name",
          "version_number",
          "status",
          "returning",
          "started_at",
          "completed_at",
          "ended_at",
          "pages_visited",
          "page_count",
          "last_page_key",
          "last_page_title",
          "last_page_position",
          "device_class",
          "channel",
          "country",
          "order",
          "source_session_id",
          "source_kind",
          "results_url",
          "opens",
          "last_opened_at",
          "last_open_channel"
        ],
        "title": "ProfileSession",
        "type": "object"
      },
      "ProfileSessionOrder": {
        "additionalProperties": false,
        "properties": {
          "amount": {
            "$ref": "#/components/schemas/Money",
            "description": "Its total in the store's currency"
          },
          "created_at": {
            "description": "When the order was placed",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "matched_tier": {
            "description": "How the order was tied to the quiz session: line_item_property | cart_attribute | pixel_claim | email. The first two: the quiz put the product in the cart; pixel_claim: the checkout pixel named the session; email: the order's email belongs to the shopper",
            "title": "Matched Tier",
            "type": "string"
          },
          "minutes_after": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Minutes from the session's completion (else its start) to the order",
            "title": "Minutes After"
          },
          "order_id": {
            "description": "The Shopify order id",
            "title": "Order Id",
            "type": "string"
          },
          "order_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The order's name, as #1042; null when unknown",
            "title": "Order Name"
          }
        },
        "required": [
          "order_id",
          "order_name",
          "created_at",
          "amount",
          "minutes_after",
          "matched_tier"
        ],
        "title": "ProfileSessionOrder",
        "type": "object"
      },
      "ProfileShareOrder": {
        "additionalProperties": false,
        "properties": {
          "amount": {
            "$ref": "#/components/schemas/Money",
            "description": "Its total in the store's currency"
          },
          "buyer_person_id": {
            "anyOf": [
              {
                "examples": [
                  "prof_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^prof_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The buyer's profile when one is known",
            "title": "Buyer Person Id"
          },
          "created_at": {
            "description": "When the order was placed",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "matched_tier": {
            "description": "How the order was tied to the quiz session: line_item_property | cart_attribute | pixel_claim | email. The first two: the quiz put the product in the cart; pixel_claim: the checkout pixel named the session; email: the order's email belongs to the shopper",
            "title": "Matched Tier",
            "type": "string"
          },
          "order_id": {
            "description": "The Shopify order id",
            "title": "Order Id",
            "type": "string"
          },
          "order_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The order's name, as #1042; null when unknown",
            "title": "Order Name"
          },
          "quiz_id": {
            "anyOf": [
              {
                "examples": [
                  "quiz_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^quiz_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The quiz of the session it was tied to; null when not known",
            "title": "Quiz Id"
          },
          "quiz_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "That quiz's name; null with it",
            "title": "Quiz Name"
          },
          "session_id": {
            "anyOf": [
              {
                "examples": [
                  "sess_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^sess_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The session it was tied to; null when not known",
            "title": "Session Id"
          },
          "via": {
            "description": "retake: bought in a session started from this shopper's shared result (session_id is that session's); shared_page: bought straight from the shared results page (session_id is the shopper's own)",
            "enum": [
              "retake",
              "shared_page"
            ],
            "title": "Via",
            "type": "string"
          }
        },
        "required": [
          "order_id",
          "order_name",
          "created_at",
          "amount",
          "quiz_id",
          "quiz_name",
          "session_id",
          "matched_tier",
          "via",
          "buyer_person_id"
        ],
        "title": "ProfileShareOrder",
        "type": "object"
      },
      "ProfileShownProduct": {
        "additionalProperties": false,
        "properties": {
          "block_key": {
            "description": "The product block that showed it",
            "title": "Block Key",
            "type": "string"
          },
          "currency": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The store's currency; null when unknown",
            "title": "Currency"
          },
          "handle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The product's handle; null when unknown",
            "title": "Handle"
          },
          "image": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The product's image URL; null when unknown",
            "title": "Image"
          },
          "price": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The variant's price in the store's currency; null when unknown",
            "title": "Price"
          },
          "product_id": {
            "description": "The product's Shopify GID",
            "examples": [
              "gid://shopify/Product/8692896989320"
            ],
            "title": "Product Id",
            "type": "string"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The product's title; null when unknown",
            "title": "Title"
          },
          "variant_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The variant's Shopify GID; null when the block showed the product only",
            "examples": [
              "gid://shopify/ProductVariant/40926435967056"
            ],
            "title": "Variant Id"
          },
          "variant_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The variant's title; null when unknown",
            "title": "Variant Title"
          }
        },
        "required": [
          "product_id",
          "variant_id",
          "block_key",
          "handle",
          "title",
          "variant_title",
          "price",
          "currency",
          "image"
        ],
        "title": "ProfileShownProduct",
        "type": "object"
      },
      "ProfileSummary": {
        "additionalProperties": false,
        "properties": {
          "completed_count": {
            "description": "How many of them completed",
            "title": "Completed Count",
            "type": "integer"
          },
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The shopper's email, lowercase; null when none was captured or the profile was removed",
            "title": "Email"
          },
          "first_seen_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The start of the shopper's first session; null when not known",
            "title": "First Seen At"
          },
          "id": {
            "description": "The profile",
            "examples": [
              "prof_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^prof_[0-9a-f]{32}$",
            "title": "Id",
            "type": "string"
          },
          "last_order_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the latest of them was placed; null without orders",
            "title": "Last Order At"
          },
          "last_seen_at": {
            "description": "The latest moment the shopper was seen",
            "format": "date-time",
            "title": "Last Seen At",
            "type": "string"
          },
          "orders_count": {
            "description": "Orders linked to the shopper's quiz sessions",
            "title": "Orders Count",
            "type": "integer"
          },
          "phone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The shopper's phone in E.164; null when none was captured or the profile was removed",
            "title": "Phone"
          },
          "quizzes": {
            "description": "The quizzes the shopper took",
            "items": {
              "$ref": "#/components/schemas/ProfileQuiz"
            },
            "title": "Quizzes",
            "type": "array"
          },
          "removed": {
            "description": "True once the shopper's data was erased on a data-deletion request: no identities or contact values remain",
            "title": "Removed",
            "type": "boolean"
          },
          "removed_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the data was erased; null otherwise",
            "title": "Removed At"
          },
          "returning": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "True when the shopper opened a quiz again after we first knew them, on any device; null on a removed profile",
            "title": "Returning"
          },
          "sessions_count": {
            "description": "How many quiz sessions the shopper had",
            "title": "Sessions Count",
            "type": "integer"
          },
          "shopify_customer_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The shopper's Shopify customer as a gid://shopify/Customer/<id> GID: known once they took a quiz logged in to the store or placed an order linked to a quiz session; null otherwise",
            "title": "Shopify Customer Id"
          },
          "spent": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Money"
              },
              {
                "type": "null"
              }
            ],
            "description": "What those orders came to, in the store's currency; null without orders"
          }
        },
        "required": [
          "id",
          "removed",
          "removed_at",
          "email",
          "phone",
          "shopify_customer_id",
          "quizzes",
          "first_seen_at",
          "last_seen_at",
          "sessions_count",
          "completed_count",
          "returning",
          "orders_count",
          "spent",
          "last_order_at"
        ],
        "title": "ProfileSummary",
        "type": "object"
      },
      "PublishMarker": {
        "additionalProperties": false,
        "properties": {
          "approximate": {
            "description": "True when the publish predates publish tracking and its time is the oldest saved version's",
            "title": "Approximate",
            "type": "boolean"
          },
          "day": {
            "description": "The publish's day in the request's timezone, the series day the marker sits on",
            "format": "date",
            "title": "Day",
            "type": "string"
          },
          "published_at": {
            "format": "date-time",
            "title": "Published At",
            "type": "string"
          },
          "version_number": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The version's number as the editor shows it (v14); null once the version is gone",
            "title": "Version Number"
          }
        },
        "required": [
          "published_at",
          "day",
          "version_number",
          "approximate"
        ],
        "title": "PublishMarker",
        "type": "object"
      },
      "QuizDetail": {
        "additionalProperties": false,
        "properties": {
          "archived": {
            "title": "Archived",
            "type": "boolean"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "id": {
            "examples": [
              "quiz_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^(quiz|pop)_[0-9a-f]{32}$",
            "title": "Id",
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/AppKind",
            "description": "The record kind: quiz | popup"
          },
          "latest_version": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VersionSummary"
              },
              {
                "type": "null"
              }
            ],
            "description": "The newest saved version, with include=latest_version only; null when none is saved"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "page_count": {
            "description": "How many pages the quiz's draft has",
            "title": "Page Count",
            "type": "integer"
          },
          "published_version": {
            "anyOf": [
              {
                "examples": [
                  "ver_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^ver_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The version shoppers see; null when none is published",
            "title": "Published Version"
          },
          "status": {
            "$ref": "#/components/schemas/AppStatus"
          },
          "structure": {
            "$ref": "#/components/schemas/QuizStructure"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "urls": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "self: this quiz on the API | versions: its versions on the API | dashboard: the quiz in the editor",
            "title": "Urls",
            "type": "object"
          }
        },
        "required": [
          "id",
          "kind",
          "name",
          "status",
          "archived",
          "published_version",
          "page_count",
          "created_at",
          "updated_at",
          "urls",
          "structure"
        ],
        "title": "QuizDetail",
        "type": "object"
      },
      "QuizList": {
        "additionalProperties": false,
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/QuizSummary"
            },
            "title": "Data",
            "type": "array"
          },
          "has_more": {
            "title": "Has More",
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Send as cursor for the next page; null on the last",
            "title": "Next Cursor"
          }
        },
        "required": [
          "data",
          "has_more",
          "next_cursor"
        ],
        "title": "QuizList",
        "type": "object"
      },
      "QuizOverview": {
        "additionalProperties": false,
        "properties": {
          "data_start": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The first day the store has analytics numbers: its first recorded visit or order, or the day analytics was last reset; null before any",
            "title": "Data Start"
          },
          "filters": {
            "$ref": "#/components/schemas/AnalyticsFilters"
          },
          "freshness": {
            "$ref": "#/components/schemas/Freshness"
          },
          "live_since": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the quiz was first published, UTC ISO 8601; null if it never was",
            "title": "Live Since"
          },
          "live_since_approximate": {
            "description": "True when the first publish predates publish tracking and live_since is the oldest saved version's time",
            "title": "Live Since Approximate",
            "type": "boolean"
          },
          "markers": {
            "description": "Every publish of the quiz, oldest first",
            "items": {
              "$ref": "#/components/schemas/PublishMarker"
            },
            "title": "Markers",
            "type": "array"
          },
          "quiz_id": {
            "examples": [
              "quiz_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^quiz_[0-9a-f]{32}$",
            "title": "Quiz Id",
            "type": "string"
          },
          "range": {
            "$ref": "#/components/schemas/AnalyticsRange"
          },
          "series": {
            "items": {
              "$ref": "#/components/schemas/OverviewPoint"
            },
            "title": "Series",
            "type": "array"
          },
          "totals": {
            "$ref": "#/components/schemas/OverviewTotals"
          }
        },
        "required": [
          "quiz_id",
          "range",
          "filters",
          "freshness",
          "series",
          "totals",
          "markers",
          "live_since",
          "live_since_approximate",
          "data_start"
        ],
        "title": "QuizOverview",
        "type": "object"
      },
      "QuizRow": {
        "additionalProperties": false,
        "properties": {
          "attributed_share": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "This quiz's revenue as a percentage of all quiz-linked revenue in the store for the range, 0 to 100; null when there is none",
            "title": "Attributed Share"
          },
          "avg_time_to_complete_ms": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Average milliseconds from the first answer to finishing, over visits that finished on a later page than their first answer; null without one",
            "title": "Avg Time To Complete Ms"
          },
          "completion_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Completions as a percentage of starts, 0 to 100; null without starts",
            "title": "Completion Rate"
          },
          "completions": {
            "description": "Visits that finished the quiz: reached its last page and answered whatever that page requires",
            "title": "Completions",
            "type": "integer"
          },
          "email_opt_ins": {
            "description": "Visits where the shopper submitted an email address",
            "title": "Email Opt Ins",
            "type": "integer"
          },
          "median_time_to_complete_ms": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Median milliseconds from the first answer to finishing, an estimate over visits that finished on a later page than their first answer; null without one",
            "title": "Median Time To Complete Ms"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "orders": {
            "description": "Shopify orders linked to the quiz by its cart, the checkout or the email the shopper gave, by the day they were placed",
            "title": "Orders",
            "type": "integer"
          },
          "phone_opt_ins": {
            "description": "Visits where the shopper submitted a phone number",
            "title": "Phone Opt Ins",
            "type": "integer"
          },
          "quiz_id": {
            "examples": [
              "quiz_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^quiz_[0-9a-f]{32}$",
            "title": "Quiz Id",
            "type": "string"
          },
          "revenue": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Money"
              },
              {
                "type": "null"
              }
            ],
            "description": "Checkout total of the linked orders in the store's currency, shipping and tax included, refunds not subtracted; null when no currency is known to label it with"
          },
          "starts": {
            "description": "Visits where the shopper answered or stepped forward at least once",
            "title": "Starts",
            "type": "integer"
          },
          "status": {
            "$ref": "#/components/schemas/AppStatus"
          },
          "views": {
            "description": "Visits that opened the quiz on the store, whether or not the shopper answered anything; previews are not counted",
            "title": "Views",
            "type": "integer"
          }
        },
        "required": [
          "quiz_id",
          "name",
          "status",
          "views",
          "starts",
          "completions",
          "completion_rate",
          "email_opt_ins",
          "phone_opt_ins",
          "orders",
          "revenue",
          "attributed_share",
          "avg_time_to_complete_ms",
          "median_time_to_complete_ms"
        ],
        "title": "QuizRow",
        "type": "object"
      },
      "QuizStructure": {
        "additionalProperties": false,
        "properties": {
          "dimensions": {
            "default": [],
            "description": "The scoring dimensions, in declared order",
            "items": {
              "$ref": "#/components/schemas/StructureDimension"
            },
            "title": "Dimensions",
            "type": "array"
          },
          "page_count": {
            "description": "How many pages the quiz's draft has",
            "title": "Page Count",
            "type": "integer"
          },
          "pages": {
            "default": [],
            "description": "In quiz order, the first 50",
            "items": {
              "$ref": "#/components/schemas/StructurePage"
            },
            "title": "Pages",
            "type": "array"
          }
        },
        "required": [
          "page_count"
        ],
        "title": "QuizStructure",
        "type": "object"
      },
      "QuizSummary": {
        "additionalProperties": false,
        "properties": {
          "archived": {
            "title": "Archived",
            "type": "boolean"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "id": {
            "examples": [
              "quiz_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^(quiz|pop)_[0-9a-f]{32}$",
            "title": "Id",
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/AppKind",
            "description": "The record kind: quiz | popup"
          },
          "latest_version": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VersionSummary"
              },
              {
                "type": "null"
              }
            ],
            "description": "The newest saved version, with include=latest_version only; null when none is saved"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "page_count": {
            "description": "How many pages the quiz's draft has",
            "title": "Page Count",
            "type": "integer"
          },
          "published_version": {
            "anyOf": [
              {
                "examples": [
                  "ver_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^ver_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The version shoppers see; null when none is published",
            "title": "Published Version"
          },
          "status": {
            "$ref": "#/components/schemas/AppStatus"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "urls": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "self: this quiz on the API | versions: its versions on the API | dashboard: the quiz in the editor",
            "title": "Urls",
            "type": "object"
          }
        },
        "required": [
          "id",
          "kind",
          "name",
          "status",
          "archived",
          "published_version",
          "page_count",
          "created_at",
          "updated_at",
          "urls"
        ],
        "title": "QuizSummary",
        "type": "object"
      },
      "RepublishRequest": {
        "additionalProperties": false,
        "properties": {
          "keep_results": {
            "default": false,
            "description": "True keeps the current counting period (a formatting fix); false starts a new one",
            "title": "Keep Results",
            "type": "boolean"
          },
          "version_id": {
            "examples": [
              "ver_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^ver_[0-9a-f]{32}$",
            "title": "Version Id",
            "type": "string"
          }
        },
        "required": [
          "version_id"
        ],
        "title": "RepublishRequest",
        "type": "object"
      },
      "RevenueTier": {
        "enum": [
          "added_from_quiz",
          "shown_bought_later",
          "bought_not_shown"
        ],
        "title": "RevenueTier",
        "type": "string"
      },
      "StartRequest": {
        "additionalProperties": false,
        "properties": {
          "confirm": {
            "const": true,
            "title": "Confirm",
            "type": "boolean"
          }
        },
        "required": [
          "confirm"
        ],
        "title": "StartRequest",
        "type": "object"
      },
      "StoreCredits": {
        "additionalProperties": false,
        "properties": {
          "limit": {
            "anyOf": [
              {
                "title": "Number of credits",
                "type": "integer"
              },
              {
                "const": "unlimited",
                "title": "Unlimited",
                "type": "string"
              }
            ],
            "description": "Monthly credit cap; 'unlimited' when plan is unmetered",
            "title": "Limit"
          },
          "overages_enabled": {
            "description": "Whether overage charges are permitted past the limit",
            "title": "Overages Enabled",
            "type": "boolean"
          },
          "threshold": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Hard overage cap (null when overages_enabled is false)",
            "title": "Threshold"
          },
          "used": {
            "description": "Credits consumed in the current billing cycle",
            "title": "Used",
            "type": "integer"
          }
        },
        "required": [
          "limit",
          "used",
          "overages_enabled",
          "threshold"
        ],
        "title": "StoreCredits",
        "type": "object"
      },
      "StoreResponse": {
        "additionalProperties": false,
        "properties": {
          "credits": {
            "$ref": "#/components/schemas/StoreCredits",
            "description": "The store's credits this month"
          },
          "currency": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "ISO code of the currency every money amount is in; null until the store's details sync",
            "title": "Currency"
          },
          "limits": {
            "$ref": "#/components/schemas/Limits",
            "description": "The rate limits in force for this key"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The store's display name, as the dashboard names it",
            "title": "Name"
          },
          "plan_class": {
            "description": "basic | plus | enterprise | paused; picks the limit table",
            "title": "Plan Class",
            "type": "string"
          },
          "scopes": {
            "description": "The scopes this key carries",
            "items": {
              "type": "string"
            },
            "title": "Scopes",
            "type": "array"
          },
          "shop_domain": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The store's myshopify.com domain; null until its details sync",
            "title": "Shop Domain"
          },
          "timezone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "IANA name of the store's own timezone, the one to read 'last week' in; null until its details sync. Analytics answer in the tz asked for, UTC by default",
            "title": "Timezone"
          }
        },
        "required": [
          "name",
          "shop_domain",
          "currency",
          "timezone",
          "plan_class",
          "limits",
          "scopes",
          "credits"
        ],
        "title": "StoreResponse",
        "type": "object"
      },
      "StructureComponent": {
        "additionalProperties": false,
        "properties": {
          "badges": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "Product blocks only: the texts of the badges on its cards, by card position then by product",
            "title": "Badges"
          },
          "component_key": {
            "description": "The component",
            "title": "Component Key",
            "type": "string"
          },
          "consent_required": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "The marketing consent box under this input must be ticked before the shopper can continue",
            "title": "Consent Required"
          },
          "kind": {
            "description": "What the component means to a reader: choice_single | choice_multi | choice_slider | slider | number | text | email | phone | date | formula | products | copy (a heading or a text block, whose label is its text) | other (an image, video, HTML block or any other content)",
            "title": "Kind",
            "type": "string"
          },
          "label": {
            "description": "The authored label or copy without markup; a copy block is cut at 500 characters",
            "title": "Label",
            "type": "string"
          },
          "option_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Choice questions only: how many options the question has",
            "title": "Option Count"
          },
          "options": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/StructureOption"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "Choice questions only, every option",
            "title": "Options"
          },
          "product_source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Product blocks only: where the products come from: manual | rankings | points | smart",
            "title": "Product Source"
          },
          "range": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StructureRange"
              },
              {
                "type": "null"
              }
            ],
            "description": "Sliders and number inputs: the stored bounds and step"
          },
          "required": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "Present on a question the shopper cannot leave empty",
            "title": "Required"
          },
          "type": {
            "description": "What a person calls this kind of component",
            "title": "Type",
            "type": "string"
          },
          "visible_if": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "The authored rule, as stored",
            "title": "Visible If"
          }
        },
        "required": [
          "component_key",
          "type",
          "kind",
          "label"
        ],
        "title": "StructureComponent",
        "type": "object"
      },
      "StructureDimension": {
        "additionalProperties": false,
        "properties": {
          "dimension_id": {
            "description": "The dimension",
            "title": "Dimension Id",
            "type": "string"
          },
          "label": {
            "description": "Its label",
            "title": "Label",
            "type": "string"
          }
        },
        "required": [
          "dimension_id",
          "label"
        ],
        "title": "StructureDimension",
        "type": "object"
      },
      "StructureJump": {
        "additionalProperties": false,
        "properties": {
          "condition": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "Absent on a jump that always applies",
            "title": "Condition"
          },
          "rule_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The jump rule",
            "title": "Rule Key"
          },
          "target_page_key": {
            "description": "The stored target page key",
            "title": "Target Page Key"
          }
        },
        "title": "StructureJump",
        "type": "object"
      },
      "StructureOption": {
        "additionalProperties": false,
        "properties": {
          "label": {
            "description": "Its label",
            "title": "Label",
            "type": "string"
          },
          "option_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The option",
            "title": "Option Id"
          },
          "scores": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "The scoring dimensions this option adds points to",
            "title": "Scores"
          }
        },
        "required": [
          "label"
        ],
        "title": "StructureOption",
        "type": "object"
      },
      "StructurePage": {
        "additionalProperties": false,
        "properties": {
          "component_count": {
            "description": "How many content components the page has",
            "title": "Component Count",
            "type": "integer"
          },
          "components": {
            "default": [],
            "description": "Content components in stored order, the first 40; layout, buttons and links are left out",
            "items": {
              "$ref": "#/components/schemas/StructureComponent"
            },
            "title": "Components",
            "type": "array"
          },
          "jumps": {
            "default": [],
            "description": "The page's jump rules in stored order",
            "items": {
              "$ref": "#/components/schemas/StructureJump"
            },
            "title": "Jumps",
            "type": "array"
          },
          "page_key": {
            "description": "The page",
            "title": "Page Key",
            "type": "string"
          },
          "redirect": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StructureRedirect"
              },
              {
                "type": "null"
              }
            ],
            "description": "Present on a page that sends shoppers to a link instead of showing what comes next"
          },
          "role": {
            "$ref": "#/components/schemas/PageRole",
            "description": "What the page is for: start (the first page), question, loading (a loading visual), results (it shows products)"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Its title",
            "title": "Title"
          },
          "visible_if": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "The authored rule, as stored",
            "title": "Visible If"
          }
        },
        "required": [
          "page_key",
          "role",
          "component_count"
        ],
        "title": "StructurePage",
        "type": "object"
      },
      "StructureRange": {
        "additionalProperties": false,
        "properties": {
          "max": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The highest value",
            "title": "Max"
          },
          "min": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The lowest value",
            "title": "Min"
          },
          "step": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The step between values",
            "title": "Step"
          }
        },
        "title": "StructureRange",
        "type": "object"
      },
      "StructureRedirect": {
        "additionalProperties": false,
        "properties": {
          "answer_values": {
            "description": "Whether a choice `{{token}}` fills with the picked option values, joined by a comma, instead of the text shoppers see",
            "title": "Answer Values",
            "type": "boolean"
          },
          "delay_seconds": {
            "description": "Whole seconds the page shows before the shopper is sent",
            "title": "Delay Seconds",
            "type": "integer"
          },
          "new_tab": {
            "description": "Whether the link opens in a new tab",
            "title": "New Tab",
            "type": "boolean"
          },
          "url": {
            "description": "The link shoppers are sent to; a `{{token}}` in it is filled from their answers",
            "title": "Url",
            "type": "string"
          }
        },
        "required": [
          "url",
          "delay_seconds",
          "new_tab",
          "answer_values"
        ],
        "title": "StructureRedirect",
        "type": "object"
      },
      "SummaryCount": {
        "additionalProperties": false,
        "properties": {
          "current": {
            "description": "The count over the current period",
            "title": "Current",
            "type": "integer"
          },
          "delta_pct": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The change from previous to current as a percentage of previous; null when previous is zero",
            "title": "Delta Pct"
          },
          "previous": {
            "description": "The count over the period of the same length just before it",
            "title": "Previous",
            "type": "integer"
          },
          "sparkline": {
            "description": "The current period in seven points, oldest first: one day each over 7 days, four or five days each over 30",
            "items": {
              "type": "integer"
            },
            "title": "Sparkline",
            "type": "array"
          }
        },
        "required": [
          "current",
          "previous",
          "delta_pct",
          "sparkline"
        ],
        "title": "SummaryCount",
        "type": "object"
      },
      "SummaryMoney": {
        "additionalProperties": false,
        "properties": {
          "current": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Money"
              },
              {
                "type": "null"
              }
            ],
            "description": "The amount over the current period; null when no currency is known to label it with"
          },
          "delta_pct": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The change from previous to current as a percentage of previous; null when previous is zero",
            "title": "Delta Pct"
          },
          "previous": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Money"
              },
              {
                "type": "null"
              }
            ],
            "description": "The amount over the period of the same length just before it; null when no currency is known to label it with"
          },
          "sparkline": {
            "description": "The current period in seven points, oldest first: one day each over 7 days, four or five days each over 30",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/Money"
                },
                {
                  "type": "null"
                }
              ]
            },
            "title": "Sparkline",
            "type": "array"
          }
        },
        "required": [
          "current",
          "previous",
          "delta_pct",
          "sparkline"
        ],
        "title": "SummaryMoney",
        "type": "object"
      },
      "TrafficRow": {
        "additionalProperties": false,
        "properties": {
          "completions": {
            "description": "Visits that finished the quiz: reached its last page and answered whatever that page requires",
            "title": "Completions",
            "type": "integer"
          },
          "email_opt_ins": {
            "description": "Visits where the shopper submitted an email address",
            "title": "Email Opt Ins",
            "type": "integer"
          },
          "phone_opt_ins": {
            "description": "Visits where the shopper submitted a phone number",
            "title": "Phone Opt Ins",
            "type": "integer"
          },
          "starts": {
            "description": "Visits where the shopper answered or stepped forward at least once",
            "title": "Starts",
            "type": "integer"
          },
          "unique_viewers": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Distinct browsers, counted exactly; null on the overflow row",
            "title": "Unique Viewers"
          },
          "value": {
            "description": "The referrer host or UTM value the shopper arrived with, as text; direct for no referrer and no tags, unknown when missing, other on the overflow row",
            "title": "Value",
            "type": "string"
          },
          "views": {
            "description": "Visits that opened the quiz on the store, whether or not the shopper answered anything; previews are not counted",
            "title": "Views",
            "type": "integer"
          }
        },
        "required": [
          "value",
          "views",
          "starts",
          "completions",
          "email_opt_ins",
          "phone_opt_ins",
          "unique_viewers"
        ],
        "title": "TrafficRow",
        "type": "object"
      },
      "VariantSpec": {
        "additionalProperties": false,
        "properties": {
          "version_id": {
            "examples": [
              "ver_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^ver_[0-9a-f]{32}$",
            "title": "Version Id",
            "type": "string"
          },
          "weight": {
            "default": 1,
            "description": "The arm's share of the split, a whole number weighed against the other arm's",
            "minimum": 1.0,
            "title": "Weight",
            "type": "integer"
          }
        },
        "required": [
          "version_id"
        ],
        "title": "VariantSpec",
        "type": "object"
      },
      "VersionCreate": {
        "additionalProperties": false,
        "properties": {
          "label": {
            "anyOf": [
              {
                "maxLength": 200,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Label"
          }
        },
        "title": "VersionCreate",
        "type": "object"
      },
      "VersionList": {
        "additionalProperties": false,
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/VersionSummary"
            },
            "title": "Data",
            "type": "array"
          },
          "has_more": {
            "title": "Has More",
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Send as cursor for the next page; null on the last",
            "title": "Next Cursor"
          }
        },
        "required": [
          "data",
          "has_more",
          "next_cursor"
        ],
        "title": "VersionList",
        "type": "object"
      },
      "VersionSummary": {
        "additionalProperties": false,
        "properties": {
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "id": {
            "examples": [
              "ver_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^ver_[0-9a-f]{32}$",
            "title": "Id",
            "type": "string"
          },
          "label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Label"
          },
          "number": {
            "description": "The version's number as the editor shows it (v14)",
            "title": "Number",
            "type": "integer"
          },
          "page_count": {
            "description": "How many pages the version has",
            "title": "Page Count",
            "type": "integer"
          },
          "published": {
            "description": "Whether this is the version shoppers see now",
            "title": "Published",
            "type": "boolean"
          },
          "quiz_id": {
            "examples": [
              "quiz_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^(quiz|pop)_[0-9a-f]{32}$",
            "title": "Quiz Id",
            "type": "string"
          }
        },
        "required": [
          "id",
          "quiz_id",
          "number",
          "label",
          "page_count",
          "published",
          "created_at"
        ],
        "title": "VersionSummary",
        "type": "object"
      },
      "WebhookAnswer": {
        "additionalProperties": false,
        "properties": {
          "kind": {
            "description": "What kind of answer this is",
            "enum": [
              "choice",
              "image",
              "text",
              "email",
              "phone",
              "number",
              "date",
              "other"
            ],
            "title": "Kind",
            "type": "string"
          },
          "label": {
            "description": "The question as the quiz labels it",
            "title": "Label",
            "type": "string"
          },
          "option_ids": {
            "description": "The chosen options' ids; empty for a typed answer",
            "items": {
              "type": "string"
            },
            "title": "Option Ids",
            "type": "array"
          },
          "page_key": {
            "description": "The page the component is on",
            "title": "Page Key",
            "type": "string"
          },
          "value": {
            "description": "The answer as stored: an option id or the typed text, a JSON number for a number, a {date, time} object for a date",
            "title": "Value"
          },
          "values": {
            "description": "The answer as the shopper saw it: option labels, or the typed value as text",
            "examples": [
              [
                "Blue"
              ]
            ],
            "items": {
              "type": "string"
            },
            "title": "Values",
            "type": "array"
          }
        },
        "required": [
          "page_key",
          "kind",
          "option_ids",
          "value",
          "values",
          "label"
        ],
        "title": "WebhookAnswer",
        "type": "object"
      },
      "WebhookCreate": {
        "additionalProperties": false,
        "properties": {
          "description": {
            "anyOf": [
              {
                "maxLength": 200,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Your own label for the endpoint, at most 200 characters",
            "title": "Description"
          },
          "include_pii": {
            "default": false,
            "description": "Send contact details (identities, email and phone answers); needs profiles:read, and identity.captured needs it",
            "title": "Include Pii",
            "type": "boolean"
          },
          "topics": {
            "description": "The topics to receive",
            "items": {
              "enum": [
                "quiz.started",
                "quiz.finished",
                "quiz.abandoned",
                "identity.captured",
                "quiz.published",
                "experiment.started",
                "experiment.ended",
                "profile.created",
                "profile.updated",
                "export.completed",
                "webhook.endpoint.disabled"
              ],
              "type": "string"
            },
            "minItems": 1,
            "title": "Topics",
            "type": "array"
          },
          "url": {
            "description": "Where deliveries go: a public https address",
            "maxLength": 2048,
            "minLength": 1,
            "title": "Url",
            "type": "string"
          }
        },
        "required": [
          "url",
          "topics"
        ],
        "title": "WebhookCreate",
        "type": "object"
      },
      "WebhookCreated": {
        "additionalProperties": false,
        "properties": {
          "endpoint": {
            "$ref": "#/components/schemas/WebhookSummary",
            "description": "The endpoint"
          },
          "secret": {
            "description": "The signing secret (whsec_...); shown only here",
            "title": "Secret",
            "type": "string"
          }
        },
        "required": [
          "endpoint",
          "secret"
        ],
        "title": "WebhookCreated",
        "type": "object"
      },
      "WebhookData_ExportSummary_": {
        "additionalProperties": false,
        "properties": {
          "object": {
            "$ref": "#/components/schemas/ExportSummary",
            "description": "The topic's object"
          }
        },
        "required": [
          "object"
        ],
        "title": "WebhookData_ExportSummary_",
        "type": "object"
      },
      "WebhookData_WebhookDisabled_": {
        "additionalProperties": false,
        "properties": {
          "object": {
            "$ref": "#/components/schemas/WebhookDisabled",
            "description": "The topic's object"
          }
        },
        "required": [
          "object"
        ],
        "title": "WebhookData_WebhookDisabled_",
        "type": "object"
      },
      "WebhookData_WebhookExperiment_": {
        "additionalProperties": false,
        "properties": {
          "object": {
            "$ref": "#/components/schemas/WebhookExperiment",
            "description": "The topic's object"
          }
        },
        "required": [
          "object"
        ],
        "title": "WebhookData_WebhookExperiment_",
        "type": "object"
      },
      "WebhookData_WebhookIdentityCaptured_": {
        "additionalProperties": false,
        "properties": {
          "object": {
            "$ref": "#/components/schemas/WebhookIdentityCaptured",
            "description": "The topic's object"
          }
        },
        "required": [
          "object"
        ],
        "title": "WebhookData_WebhookIdentityCaptured_",
        "type": "object"
      },
      "WebhookData_WebhookPing_": {
        "additionalProperties": false,
        "properties": {
          "object": {
            "$ref": "#/components/schemas/WebhookPing",
            "description": "The topic's object"
          }
        },
        "required": [
          "object"
        ],
        "title": "WebhookData_WebhookPing_",
        "type": "object"
      },
      "WebhookData_WebhookProfile_": {
        "additionalProperties": false,
        "properties": {
          "object": {
            "$ref": "#/components/schemas/WebhookProfile",
            "description": "The topic's object"
          }
        },
        "required": [
          "object"
        ],
        "title": "WebhookData_WebhookProfile_",
        "type": "object"
      },
      "WebhookData_WebhookPublished_": {
        "additionalProperties": false,
        "properties": {
          "object": {
            "$ref": "#/components/schemas/WebhookPublished",
            "description": "The topic's object"
          }
        },
        "required": [
          "object"
        ],
        "title": "WebhookData_WebhookPublished_",
        "type": "object"
      },
      "WebhookData_WebhookSessionStarted_": {
        "additionalProperties": false,
        "properties": {
          "object": {
            "$ref": "#/components/schemas/WebhookSessionStarted",
            "description": "The topic's object"
          }
        },
        "required": [
          "object"
        ],
        "title": "WebhookData_WebhookSessionStarted_",
        "type": "object"
      },
      "WebhookData_WebhookSessionSummary_": {
        "additionalProperties": false,
        "properties": {
          "object": {
            "$ref": "#/components/schemas/WebhookSessionSummary",
            "description": "The topic's object"
          }
        },
        "required": [
          "object"
        ],
        "title": "WebhookData_WebhookSessionSummary_",
        "type": "object"
      },
      "WebhookData_WebhookSession_": {
        "additionalProperties": false,
        "properties": {
          "object": {
            "$ref": "#/components/schemas/WebhookSession",
            "description": "The topic's object"
          }
        },
        "required": [
          "object"
        ],
        "title": "WebhookData_WebhookSession_",
        "type": "object"
      },
      "WebhookDevice": {
        "additionalProperties": false,
        "properties": {
          "browser": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The browser; null when the user agent did not say",
            "title": "Browser"
          },
          "browser_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The browser version; null when the user agent did not say",
            "title": "Browser Version"
          },
          "class": {
            "description": "mobile | tablet | desktop",
            "title": "Class",
            "type": "string"
          },
          "family": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The device family; null when the user agent did not say",
            "title": "Family"
          },
          "model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The device model; null when the user agent did not say",
            "title": "Model"
          },
          "os": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The operating system; null when the user agent did not say",
            "title": "Os"
          },
          "os_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The operating system version; null when the user agent did not say",
            "title": "Os Version"
          },
          "vendor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The device vendor; null when the user agent did not say",
            "title": "Vendor"
          }
        },
        "required": [
          "class",
          "family",
          "vendor",
          "model",
          "browser",
          "browser_version",
          "os",
          "os_version"
        ],
        "title": "WebhookDevice",
        "type": "object"
      },
      "WebhookDisabled": {
        "additionalProperties": false,
        "properties": {
          "disabled_at": {
            "description": "When it was disabled",
            "format": "date-time",
            "title": "Disabled At",
            "type": "string"
          },
          "endpoint_id": {
            "description": "The endpoint disabled",
            "examples": [
              "whe_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^whe_[0-9a-f]{32}$",
            "title": "Endpoint Id",
            "type": "string"
          },
          "reason": {
            "description": "gone: it answered 410 | failing_five_days: it kept failing for five days",
            "title": "Reason",
            "type": "string"
          }
        },
        "required": [
          "endpoint_id",
          "reason",
          "disabled_at"
        ],
        "title": "WebhookDisabled",
        "type": "object"
      },
      "WebhookEvent_ExportSummary_": {
        "additionalProperties": false,
        "properties": {
          "api_version": {
            "const": "v1",
            "default": "v1",
            "description": "The payload version",
            "title": "Api Version",
            "type": "string"
          },
          "created": {
            "description": "When the event happened",
            "format": "date-time",
            "title": "Created",
            "type": "string"
          },
          "data": {
            "$ref": "#/components/schemas/WebhookData_ExportSummary_",
            "description": "The event's object"
          },
          "id": {
            "description": "The event id, also sent as the webhook-id header; deduplicate on it",
            "examples": [
              "evt_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^evt_[0-9a-f]{32}$",
            "title": "Id",
            "type": "string"
          },
          "type": {
            "description": "The topic: quiz.started | quiz.finished | quiz.abandoned | identity.captured | quiz.published | experiment.started | experiment.ended | profile.created | profile.updated | export.completed | webhook.endpoint.disabled | ping",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "type",
          "created",
          "data"
        ],
        "title": "WebhookEvent_ExportSummary_",
        "type": "object"
      },
      "WebhookEvent_WebhookDisabled_": {
        "additionalProperties": false,
        "properties": {
          "api_version": {
            "const": "v1",
            "default": "v1",
            "description": "The payload version",
            "title": "Api Version",
            "type": "string"
          },
          "created": {
            "description": "When the event happened",
            "format": "date-time",
            "title": "Created",
            "type": "string"
          },
          "data": {
            "$ref": "#/components/schemas/WebhookData_WebhookDisabled_",
            "description": "The event's object"
          },
          "id": {
            "description": "The event id, also sent as the webhook-id header; deduplicate on it",
            "examples": [
              "evt_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^evt_[0-9a-f]{32}$",
            "title": "Id",
            "type": "string"
          },
          "type": {
            "description": "The topic: quiz.started | quiz.finished | quiz.abandoned | identity.captured | quiz.published | experiment.started | experiment.ended | profile.created | profile.updated | export.completed | webhook.endpoint.disabled | ping",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "type",
          "created",
          "data"
        ],
        "title": "WebhookEvent_WebhookDisabled_",
        "type": "object"
      },
      "WebhookEvent_WebhookExperiment_": {
        "additionalProperties": false,
        "properties": {
          "api_version": {
            "const": "v1",
            "default": "v1",
            "description": "The payload version",
            "title": "Api Version",
            "type": "string"
          },
          "created": {
            "description": "When the event happened",
            "format": "date-time",
            "title": "Created",
            "type": "string"
          },
          "data": {
            "$ref": "#/components/schemas/WebhookData_WebhookExperiment_",
            "description": "The event's object"
          },
          "id": {
            "description": "The event id, also sent as the webhook-id header; deduplicate on it",
            "examples": [
              "evt_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^evt_[0-9a-f]{32}$",
            "title": "Id",
            "type": "string"
          },
          "type": {
            "description": "The topic: quiz.started | quiz.finished | quiz.abandoned | identity.captured | quiz.published | experiment.started | experiment.ended | profile.created | profile.updated | export.completed | webhook.endpoint.disabled | ping",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "type",
          "created",
          "data"
        ],
        "title": "WebhookEvent_WebhookExperiment_",
        "type": "object"
      },
      "WebhookEvent_WebhookIdentityCaptured_": {
        "additionalProperties": false,
        "properties": {
          "api_version": {
            "const": "v1",
            "default": "v1",
            "description": "The payload version",
            "title": "Api Version",
            "type": "string"
          },
          "created": {
            "description": "When the event happened",
            "format": "date-time",
            "title": "Created",
            "type": "string"
          },
          "data": {
            "$ref": "#/components/schemas/WebhookData_WebhookIdentityCaptured_",
            "description": "The event's object"
          },
          "id": {
            "description": "The event id, also sent as the webhook-id header; deduplicate on it",
            "examples": [
              "evt_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^evt_[0-9a-f]{32}$",
            "title": "Id",
            "type": "string"
          },
          "type": {
            "description": "The topic: quiz.started | quiz.finished | quiz.abandoned | identity.captured | quiz.published | experiment.started | experiment.ended | profile.created | profile.updated | export.completed | webhook.endpoint.disabled | ping",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "type",
          "created",
          "data"
        ],
        "title": "WebhookEvent_WebhookIdentityCaptured_",
        "type": "object"
      },
      "WebhookEvent_WebhookPing_": {
        "additionalProperties": false,
        "properties": {
          "api_version": {
            "const": "v1",
            "default": "v1",
            "description": "The payload version",
            "title": "Api Version",
            "type": "string"
          },
          "created": {
            "description": "When the event happened",
            "format": "date-time",
            "title": "Created",
            "type": "string"
          },
          "data": {
            "$ref": "#/components/schemas/WebhookData_WebhookPing_",
            "description": "The event's object"
          },
          "id": {
            "description": "The event id, also sent as the webhook-id header; deduplicate on it",
            "examples": [
              "evt_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^evt_[0-9a-f]{32}$",
            "title": "Id",
            "type": "string"
          },
          "type": {
            "description": "The topic: quiz.started | quiz.finished | quiz.abandoned | identity.captured | quiz.published | experiment.started | experiment.ended | profile.created | profile.updated | export.completed | webhook.endpoint.disabled | ping",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "type",
          "created",
          "data"
        ],
        "title": "WebhookEvent_WebhookPing_",
        "type": "object"
      },
      "WebhookEvent_WebhookProfile_": {
        "additionalProperties": false,
        "properties": {
          "api_version": {
            "const": "v1",
            "default": "v1",
            "description": "The payload version",
            "title": "Api Version",
            "type": "string"
          },
          "created": {
            "description": "When the event happened",
            "format": "date-time",
            "title": "Created",
            "type": "string"
          },
          "data": {
            "$ref": "#/components/schemas/WebhookData_WebhookProfile_",
            "description": "The event's object"
          },
          "id": {
            "description": "The event id, also sent as the webhook-id header; deduplicate on it",
            "examples": [
              "evt_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^evt_[0-9a-f]{32}$",
            "title": "Id",
            "type": "string"
          },
          "type": {
            "description": "The topic: quiz.started | quiz.finished | quiz.abandoned | identity.captured | quiz.published | experiment.started | experiment.ended | profile.created | profile.updated | export.completed | webhook.endpoint.disabled | ping",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "type",
          "created",
          "data"
        ],
        "title": "WebhookEvent_WebhookProfile_",
        "type": "object"
      },
      "WebhookEvent_WebhookPublished_": {
        "additionalProperties": false,
        "properties": {
          "api_version": {
            "const": "v1",
            "default": "v1",
            "description": "The payload version",
            "title": "Api Version",
            "type": "string"
          },
          "created": {
            "description": "When the event happened",
            "format": "date-time",
            "title": "Created",
            "type": "string"
          },
          "data": {
            "$ref": "#/components/schemas/WebhookData_WebhookPublished_",
            "description": "The event's object"
          },
          "id": {
            "description": "The event id, also sent as the webhook-id header; deduplicate on it",
            "examples": [
              "evt_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^evt_[0-9a-f]{32}$",
            "title": "Id",
            "type": "string"
          },
          "type": {
            "description": "The topic: quiz.started | quiz.finished | quiz.abandoned | identity.captured | quiz.published | experiment.started | experiment.ended | profile.created | profile.updated | export.completed | webhook.endpoint.disabled | ping",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "type",
          "created",
          "data"
        ],
        "title": "WebhookEvent_WebhookPublished_",
        "type": "object"
      },
      "WebhookEvent_WebhookSessionStarted_": {
        "additionalProperties": false,
        "properties": {
          "api_version": {
            "const": "v1",
            "default": "v1",
            "description": "The payload version",
            "title": "Api Version",
            "type": "string"
          },
          "created": {
            "description": "When the event happened",
            "format": "date-time",
            "title": "Created",
            "type": "string"
          },
          "data": {
            "$ref": "#/components/schemas/WebhookData_WebhookSessionStarted_",
            "description": "The event's object"
          },
          "id": {
            "description": "The event id, also sent as the webhook-id header; deduplicate on it",
            "examples": [
              "evt_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^evt_[0-9a-f]{32}$",
            "title": "Id",
            "type": "string"
          },
          "type": {
            "description": "The topic: quiz.started | quiz.finished | quiz.abandoned | identity.captured | quiz.published | experiment.started | experiment.ended | profile.created | profile.updated | export.completed | webhook.endpoint.disabled | ping",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "type",
          "created",
          "data"
        ],
        "title": "WebhookEvent_WebhookSessionStarted_",
        "type": "object"
      },
      "WebhookEvent_WebhookSessionSummary_": {
        "additionalProperties": false,
        "properties": {
          "api_version": {
            "const": "v1",
            "default": "v1",
            "description": "The payload version",
            "title": "Api Version",
            "type": "string"
          },
          "created": {
            "description": "When the event happened",
            "format": "date-time",
            "title": "Created",
            "type": "string"
          },
          "data": {
            "$ref": "#/components/schemas/WebhookData_WebhookSessionSummary_",
            "description": "The event's object"
          },
          "id": {
            "description": "The event id, also sent as the webhook-id header; deduplicate on it",
            "examples": [
              "evt_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^evt_[0-9a-f]{32}$",
            "title": "Id",
            "type": "string"
          },
          "type": {
            "description": "The topic: quiz.started | quiz.finished | quiz.abandoned | identity.captured | quiz.published | experiment.started | experiment.ended | profile.created | profile.updated | export.completed | webhook.endpoint.disabled | ping",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "type",
          "created",
          "data"
        ],
        "title": "WebhookEvent_WebhookSessionSummary_",
        "type": "object"
      },
      "WebhookEvent_WebhookSession_": {
        "additionalProperties": false,
        "properties": {
          "api_version": {
            "const": "v1",
            "default": "v1",
            "description": "The payload version",
            "title": "Api Version",
            "type": "string"
          },
          "created": {
            "description": "When the event happened",
            "format": "date-time",
            "title": "Created",
            "type": "string"
          },
          "data": {
            "$ref": "#/components/schemas/WebhookData_WebhookSession_",
            "description": "The event's object"
          },
          "id": {
            "description": "The event id, also sent as the webhook-id header; deduplicate on it",
            "examples": [
              "evt_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^evt_[0-9a-f]{32}$",
            "title": "Id",
            "type": "string"
          },
          "type": {
            "description": "The topic: quiz.started | quiz.finished | quiz.abandoned | identity.captured | quiz.published | experiment.started | experiment.ended | profile.created | profile.updated | export.completed | webhook.endpoint.disabled | ping",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "id",
          "type",
          "created",
          "data"
        ],
        "title": "WebhookEvent_WebhookSession_",
        "type": "object"
      },
      "WebhookExperiment": {
        "additionalProperties": false,
        "properties": {
          "arms": {
            "description": "The arms in position order",
            "items": {
              "$ref": "#/components/schemas/WebhookExperimentArm"
            },
            "title": "Arms",
            "type": "array"
          },
          "ended_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the test ended; null on experiment.started",
            "title": "Ended At"
          },
          "experiment_id": {
            "description": "The experiment",
            "examples": [
              "expt_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^expt_[0-9a-f]{32}$",
            "title": "Experiment Id",
            "type": "string"
          },
          "name": {
            "description": "Its name",
            "title": "Name",
            "type": "string"
          },
          "outcome": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "How the test ended, on experiment.ended: winner_manual | winner_auto | winner_ai | ai_no_change | no_winner_notify | ended_manual | cancelled | reverted | plan_downgraded; null on experiment.started",
            "title": "Outcome"
          },
          "period": {
            "description": "The counting period the event closed or opened",
            "title": "Period",
            "type": "integer"
          },
          "quiz_id": {
            "description": "Its quiz",
            "examples": [
              "quiz_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^quiz_[0-9a-f]{32}$",
            "title": "Quiz Id",
            "type": "string"
          },
          "started_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the test started",
            "title": "Started At"
          },
          "status": {
            "description": "Its status as the lifecycle recorded it",
            "enum": [
              "running",
              "waiting",
              "ended"
            ],
            "title": "Status",
            "type": "string"
          },
          "winner": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WebhookExperimentArm"
              },
              {
                "type": "null"
              }
            ],
            "description": "The arm that won; null when none did"
          }
        },
        "required": [
          "experiment_id",
          "quiz_id",
          "name",
          "status",
          "arms",
          "winner",
          "period",
          "started_at",
          "ended_at",
          "outcome"
        ],
        "title": "WebhookExperiment",
        "type": "object"
      },
      "WebhookExperimentArm": {
        "additionalProperties": false,
        "properties": {
          "arm_id": {
            "description": "The arm",
            "examples": [
              "arm_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^arm_[0-9a-f]{32}$",
            "title": "Arm Id",
            "type": "string"
          },
          "is_control": {
            "description": "True for the live version the test compares against",
            "title": "Is Control",
            "type": "boolean"
          },
          "label": {
            "description": "The arm's label",
            "title": "Label",
            "type": "string"
          },
          "version_id": {
            "description": "The version the arm shows",
            "examples": [
              "ver_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^ver_[0-9a-f]{32}$",
            "title": "Version Id",
            "type": "string"
          },
          "version_number": {
            "description": "That version's number",
            "title": "Version Number",
            "type": "integer"
          }
        },
        "required": [
          "arm_id",
          "label",
          "is_control",
          "version_id",
          "version_number"
        ],
        "title": "WebhookExperimentArm",
        "type": "object"
      },
      "WebhookIdentity": {
        "additionalProperties": false,
        "properties": {
          "component_key": {
            "description": "The field that collected it",
            "title": "Component Key",
            "type": "string"
          },
          "consent": {
            "description": "True only when the shopper ticked the marketing-consent box beside this field",
            "title": "Consent",
            "type": "boolean"
          },
          "kind": {
            "description": "email | phone",
            "title": "Kind",
            "type": "string"
          },
          "page_key": {
            "description": "The page of the field that collected it",
            "title": "Page Key",
            "type": "string"
          },
          "value": {
            "description": "The value as stored: the email lowercase, the phone in E.164; the text as typed is in answers",
            "title": "Value",
            "type": "string"
          }
        },
        "required": [
          "kind",
          "value",
          "consent",
          "page_key",
          "component_key"
        ],
        "title": "WebhookIdentity",
        "type": "object"
      },
      "WebhookIdentityCaptured": {
        "additionalProperties": false,
        "properties": {
          "answered_count": {
            "description": "How many components answers holds",
            "title": "Answered Count",
            "type": "integer"
          },
          "answers": {
            "additionalProperties": {
              "$ref": "#/components/schemas/WebhookAnswer"
            },
            "description": "The session's answers keyed by component_key; a component on two pages holds its last answer. Email and phone answers only on endpoints with include_pii",
            "title": "Answers",
            "type": "object"
          },
          "arm_id": {
            "anyOf": [
              {
                "examples": [
                  "arm_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^arm_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The arm the session was shown; null outside a test",
            "title": "Arm Id"
          },
          "channel": {
            "description": "How the shopper arrived: direct | organic_search | paid_search | organic_social | paid_social | email | sms | affiliate | display | paid_other | referral | ai_assistant | other | shared_results",
            "title": "Channel",
            "type": "string"
          },
          "completed_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the session completed; null on identity.captured before completion",
            "title": "Completed At"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The shopper's country from their IP, ISO 3166-1 alpha-2; null when unknown",
            "title": "Country"
          },
          "device": {
            "$ref": "#/components/schemas/WebhookDevice",
            "description": "The device as parsed from the session's user agent when it opened"
          },
          "ended_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the session ended: finished, closed or idle for 30 minutes; null while it runs",
            "title": "Ended At"
          },
          "experiment_id": {
            "anyOf": [
              {
                "examples": [
                  "expt_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^expt_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The A/B test the session was split into; null outside one",
            "title": "Experiment Id"
          },
          "formulas": {
            "description": "The formula values the quiz computed",
            "items": {
              "$ref": "#/components/schemas/ProfileFormula"
            },
            "title": "Formulas",
            "type": "array"
          },
          "id": {
            "description": "The session's id, the same session_id the profiles API shows",
            "examples": [
              "sess_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^sess_[0-9a-f]{32}$",
            "title": "Id",
            "type": "string"
          },
          "identities": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/ProfileIdentity"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "Endpoints with include_pii only: the identities of the session's person",
            "title": "Identities"
          },
          "identity": {
            "$ref": "#/components/schemas/WebhookIdentity",
            "description": "The email or phone just captured"
          },
          "last_page": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The page_key of the last page the shopper visited; null before any",
            "title": "Last Page"
          },
          "page_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The page the session opened on, origin and path without the query string; null when the embed did not report one",
            "title": "Page Url"
          },
          "points": {
            "description": "The points per dimension the quiz computed",
            "items": {
              "$ref": "#/components/schemas/ProfilePoints"
            },
            "title": "Points",
            "type": "array"
          },
          "products_shown": {
            "description": "Every product the session showed; on quiz.finished those shown within a minute of completion",
            "items": {
              "$ref": "#/components/schemas/WebhookProduct"
            },
            "title": "Products Shown",
            "type": "array"
          },
          "property_mappings": {
            "description": "The quiz's enabled question-to-property mappings for integrations; contact questions only on endpoints with include_pii",
            "items": {
              "$ref": "#/components/schemas/WebhookPropertyMapping"
            },
            "title": "Property Mappings",
            "type": "array"
          },
          "quiz_id": {
            "description": "The quiz the session ran",
            "examples": [
              "quiz_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^quiz_[0-9a-f]{32}$",
            "title": "Quiz Id",
            "type": "string"
          },
          "quiz_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The quiz's name as the session's version carried it; null when the quiz was deleted before the delivery was built",
            "title": "Quiz Name"
          },
          "results_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The link to this session's results once completed; null before",
            "title": "Results Url"
          },
          "source_kind": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "share: started from a shared result | restart: started by Restart; null for a session the shopper opened themselves",
            "examples": [
              "share",
              "restart",
              null
            ],
            "title": "Source Kind"
          },
          "source_session_id": {
            "anyOf": [
              {
                "examples": [
                  "sess_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^sess_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The session this one was started from: a shared result (source_kind share) or a Restart (source_kind restart); null for a session the shopper opened themselves",
            "title": "Source Session Id"
          },
          "started_at": {
            "description": "When the session opened",
            "format": "date-time",
            "title": "Started At",
            "type": "string"
          },
          "terminal_page": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProfileResultPage"
              },
              {
                "type": "null"
              }
            ],
            "description": "The result page the session ended on, with the products it showed; null before completion"
          },
          "utm_campaign": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The utm_campaign of the page the session opened on; null when absent",
            "title": "Utm Campaign"
          },
          "utm_content": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The utm_content of the page the session opened on; null when absent",
            "title": "Utm Content"
          },
          "utm_medium": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The utm_medium of the page the session opened on; null when absent",
            "title": "Utm Medium"
          },
          "utm_source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The utm_source of the page the session opened on; null when absent",
            "title": "Utm Source"
          },
          "utm_term": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The utm_term of the page the session opened on; null when absent",
            "title": "Utm Term"
          },
          "version_id": {
            "anyOf": [
              {
                "examples": [
                  "ver_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^ver_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The version the session ran; null when that version row is gone",
            "title": "Version Id"
          },
          "version_number": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The number of that version; null when it is gone",
            "title": "Version Number"
          },
          "visitor_id": {
            "description": "The shopper's browser: the persistent visitor, or a visitor of this session only until analytics consent is given",
            "examples": [
              "vis_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^vis_[0-9a-f]{32}$",
            "title": "Visitor Id",
            "type": "string"
          }
        },
        "required": [
          "id",
          "quiz_id",
          "quiz_name",
          "version_id",
          "version_number",
          "visitor_id",
          "started_at",
          "ended_at",
          "channel",
          "device",
          "country",
          "page_url",
          "utm_source",
          "utm_medium",
          "utm_campaign",
          "utm_content",
          "utm_term",
          "answers",
          "last_page",
          "answered_count",
          "source_session_id",
          "source_kind",
          "completed_at",
          "results_url",
          "formulas",
          "points",
          "terminal_page",
          "products_shown",
          "property_mappings",
          "identity"
        ],
        "title": "WebhookIdentityCaptured",
        "type": "object"
      },
      "WebhookList": {
        "additionalProperties": false,
        "properties": {
          "data": {
            "description": "The endpoints",
            "items": {
              "$ref": "#/components/schemas/WebhookSummary"
            },
            "title": "Data",
            "type": "array"
          },
          "has_more": {
            "description": "Whether another page follows",
            "title": "Has More",
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Send as cursor for the next page; null on the last",
            "title": "Next Cursor"
          }
        },
        "required": [
          "data",
          "has_more",
          "next_cursor"
        ],
        "title": "WebhookList",
        "type": "object"
      },
      "WebhookPing": {
        "additionalProperties": false,
        "properties": {
          "endpoint_id": {
            "description": "The endpoint pinged",
            "examples": [
              "whe_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^whe_[0-9a-f]{32}$",
            "title": "Endpoint Id",
            "type": "string"
          }
        },
        "required": [
          "endpoint_id"
        ],
        "title": "WebhookPing",
        "type": "object"
      },
      "WebhookProduct": {
        "additionalProperties": false,
        "properties": {
          "block_key": {
            "description": "The product block that showed it",
            "title": "Block Key",
            "type": "string"
          },
          "currency": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The store's currency; null when unknown",
            "title": "Currency"
          },
          "handle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The product's handle; null when unknown",
            "title": "Handle"
          },
          "image": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The product's image URL; null when unknown",
            "title": "Image"
          },
          "page_key": {
            "description": "The page of that block",
            "title": "Page Key",
            "type": "string"
          },
          "position": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Its position in the block as shown; null when not recorded",
            "title": "Position"
          },
          "price": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The variant's price in the store's currency; null when unknown",
            "title": "Price"
          },
          "product_id": {
            "description": "The product's Shopify GID",
            "examples": [
              "gid://shopify/Product/8692896989320"
            ],
            "title": "Product Id",
            "type": "string"
          },
          "source": {
            "description": "How the block picked it: manual | rankings | points | smart",
            "title": "Source",
            "type": "string"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The product's title; null when unknown",
            "title": "Title"
          },
          "variant_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The variant's Shopify GID; null when the block showed the product only",
            "examples": [
              "gid://shopify/ProductVariant/40926435967056"
            ],
            "title": "Variant Id"
          },
          "variant_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The variant's title; null when unknown",
            "title": "Variant Title"
          }
        },
        "required": [
          "product_id",
          "variant_id",
          "block_key",
          "page_key",
          "position",
          "source",
          "handle",
          "title",
          "variant_title",
          "price",
          "currency",
          "image"
        ],
        "title": "WebhookProduct",
        "type": "object"
      },
      "WebhookProfile": {
        "additionalProperties": false,
        "properties": {
          "created_at": {
            "description": "When the profile was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "first_seen_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The start of the profile's first session; null when not known",
            "title": "First Seen At"
          },
          "id": {
            "description": "The profile",
            "examples": [
              "prof_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^prof_[0-9a-f]{32}$",
            "title": "Id",
            "type": "string"
          },
          "identities": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/ProfileIdentity"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "Endpoints with include_pii only: the profile's identities",
            "title": "Identities"
          },
          "identities_from_session": {
            "description": "Every identity kind that session contributed so far (email | phone | shopify_customer_id), not only what this event changed",
            "examples": [
              [
                "email"
              ]
            ],
            "items": {
              "type": "string"
            },
            "title": "Identities From Session",
            "type": "array"
          },
          "last_seen_at": {
            "description": "The latest moment the profile was seen",
            "format": "date-time",
            "title": "Last Seen At",
            "type": "string"
          },
          "quiz_id": {
            "anyOf": [
              {
                "examples": [
                  "quiz_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^quiz_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "That session's quiz; null with it",
            "title": "Quiz Id"
          },
          "session_id": {
            "anyOf": [
              {
                "examples": [
                  "sess_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^sess_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The session that captured the identity behind this event; null when none did or its row is gone",
            "title": "Session Id"
          },
          "share_orders": {
            "description": "Orders bought through this shopper's shared results",
            "items": {
              "$ref": "#/components/schemas/ProfileShareOrder"
            },
            "title": "Share Orders",
            "type": "array"
          },
          "urls": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "dashboard: the profile's page on the dashboard",
            "title": "Urls",
            "type": "object"
          }
        },
        "required": [
          "id",
          "created_at",
          "first_seen_at",
          "last_seen_at",
          "session_id",
          "quiz_id",
          "identities_from_session",
          "urls",
          "share_orders"
        ],
        "title": "WebhookProfile",
        "type": "object"
      },
      "WebhookPropertyMapping": {
        "additionalProperties": false,
        "properties": {
          "option_values": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The value written for each option id; null when the answer is written as is",
            "title": "Option Values"
          },
          "property_name": {
            "description": "The profile property the answer is written to",
            "title": "Property Name",
            "type": "string"
          },
          "question_key": {
            "description": "The question's component_key",
            "title": "Question Key",
            "type": "string"
          },
          "question_label": {
            "description": "The question as the quiz labels it",
            "title": "Question Label",
            "type": "string"
          }
        },
        "required": [
          "question_key",
          "question_label",
          "property_name",
          "option_values"
        ],
        "title": "WebhookPropertyMapping",
        "type": "object"
      },
      "WebhookPublished": {
        "additionalProperties": false,
        "properties": {
          "published_at": {
            "description": "When it went live",
            "format": "date-time",
            "title": "Published At",
            "type": "string"
          },
          "quiz_id": {
            "description": "The quiz",
            "examples": [
              "quiz_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^quiz_[0-9a-f]{32}$",
            "title": "Quiz Id",
            "type": "string"
          },
          "quiz_name": {
            "description": "The quiz's name when it was published",
            "title": "Quiz Name",
            "type": "string"
          },
          "version_id": {
            "description": "The version now live",
            "examples": [
              "ver_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^ver_[0-9a-f]{32}$",
            "title": "Version Id",
            "type": "string"
          },
          "version_number": {
            "description": "That version's number",
            "title": "Version Number",
            "type": "integer"
          }
        },
        "required": [
          "quiz_id",
          "quiz_name",
          "version_id",
          "version_number",
          "published_at"
        ],
        "title": "WebhookPublished",
        "type": "object"
      },
      "WebhookRedeliverFailed": {
        "additionalProperties": false,
        "properties": {
          "since": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Redeliver the failed events created since this moment; the last 7 days when absent",
            "title": "Since"
          }
        },
        "title": "WebhookRedeliverFailed",
        "type": "object"
      },
      "WebhookRedelivered": {
        "additionalProperties": false,
        "properties": {
          "count": {
            "description": "How many deliveries were queued again",
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "count"
        ],
        "title": "WebhookRedelivered",
        "type": "object"
      },
      "WebhookSecret": {
        "additionalProperties": false,
        "properties": {
          "secret": {
            "description": "The signing secret (whsec_...); shown only here",
            "title": "Secret",
            "type": "string"
          }
        },
        "required": [
          "secret"
        ],
        "title": "WebhookSecret",
        "type": "object"
      },
      "WebhookSession": {
        "additionalProperties": false,
        "properties": {
          "answered_count": {
            "description": "How many components answers holds",
            "title": "Answered Count",
            "type": "integer"
          },
          "answers": {
            "additionalProperties": {
              "$ref": "#/components/schemas/WebhookAnswer"
            },
            "description": "The session's answers keyed by component_key; a component on two pages holds its last answer. Email and phone answers only on endpoints with include_pii",
            "title": "Answers",
            "type": "object"
          },
          "arm_id": {
            "anyOf": [
              {
                "examples": [
                  "arm_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^arm_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The arm the session was shown; null outside a test",
            "title": "Arm Id"
          },
          "channel": {
            "description": "How the shopper arrived: direct | organic_search | paid_search | organic_social | paid_social | email | sms | affiliate | display | paid_other | referral | ai_assistant | other | shared_results",
            "title": "Channel",
            "type": "string"
          },
          "completed_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the session completed; null on identity.captured before completion",
            "title": "Completed At"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The shopper's country from their IP, ISO 3166-1 alpha-2; null when unknown",
            "title": "Country"
          },
          "device": {
            "$ref": "#/components/schemas/WebhookDevice",
            "description": "The device as parsed from the session's user agent when it opened"
          },
          "ended_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the session ended: finished, closed or idle for 30 minutes; null while it runs",
            "title": "Ended At"
          },
          "experiment_id": {
            "anyOf": [
              {
                "examples": [
                  "expt_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^expt_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The A/B test the session was split into; null outside one",
            "title": "Experiment Id"
          },
          "formulas": {
            "description": "The formula values the quiz computed",
            "items": {
              "$ref": "#/components/schemas/ProfileFormula"
            },
            "title": "Formulas",
            "type": "array"
          },
          "id": {
            "description": "The session's id, the same session_id the profiles API shows",
            "examples": [
              "sess_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^sess_[0-9a-f]{32}$",
            "title": "Id",
            "type": "string"
          },
          "identities": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/ProfileIdentity"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "Endpoints with include_pii only: the identities of the session's person",
            "title": "Identities"
          },
          "last_page": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The page_key of the last page the shopper visited; null before any",
            "title": "Last Page"
          },
          "page_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The page the session opened on, origin and path without the query string; null when the embed did not report one",
            "title": "Page Url"
          },
          "points": {
            "description": "The points per dimension the quiz computed",
            "items": {
              "$ref": "#/components/schemas/ProfilePoints"
            },
            "title": "Points",
            "type": "array"
          },
          "products_shown": {
            "description": "Every product the session showed; on quiz.finished those shown within a minute of completion",
            "items": {
              "$ref": "#/components/schemas/WebhookProduct"
            },
            "title": "Products Shown",
            "type": "array"
          },
          "property_mappings": {
            "description": "The quiz's enabled question-to-property mappings for integrations; contact questions only on endpoints with include_pii",
            "items": {
              "$ref": "#/components/schemas/WebhookPropertyMapping"
            },
            "title": "Property Mappings",
            "type": "array"
          },
          "quiz_id": {
            "description": "The quiz the session ran",
            "examples": [
              "quiz_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^quiz_[0-9a-f]{32}$",
            "title": "Quiz Id",
            "type": "string"
          },
          "quiz_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The quiz's name as the session's version carried it; null when the quiz was deleted before the delivery was built",
            "title": "Quiz Name"
          },
          "results_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The link to this session's results once completed; null before",
            "title": "Results Url"
          },
          "source_kind": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "share: started from a shared result | restart: started by Restart; null for a session the shopper opened themselves",
            "examples": [
              "share",
              "restart",
              null
            ],
            "title": "Source Kind"
          },
          "source_session_id": {
            "anyOf": [
              {
                "examples": [
                  "sess_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^sess_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The session this one was started from: a shared result (source_kind share) or a Restart (source_kind restart); null for a session the shopper opened themselves",
            "title": "Source Session Id"
          },
          "started_at": {
            "description": "When the session opened",
            "format": "date-time",
            "title": "Started At",
            "type": "string"
          },
          "terminal_page": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProfileResultPage"
              },
              {
                "type": "null"
              }
            ],
            "description": "The result page the session ended on, with the products it showed; null before completion"
          },
          "utm_campaign": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The utm_campaign of the page the session opened on; null when absent",
            "title": "Utm Campaign"
          },
          "utm_content": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The utm_content of the page the session opened on; null when absent",
            "title": "Utm Content"
          },
          "utm_medium": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The utm_medium of the page the session opened on; null when absent",
            "title": "Utm Medium"
          },
          "utm_source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The utm_source of the page the session opened on; null when absent",
            "title": "Utm Source"
          },
          "utm_term": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The utm_term of the page the session opened on; null when absent",
            "title": "Utm Term"
          },
          "version_id": {
            "anyOf": [
              {
                "examples": [
                  "ver_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^ver_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The version the session ran; null when that version row is gone",
            "title": "Version Id"
          },
          "version_number": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The number of that version; null when it is gone",
            "title": "Version Number"
          },
          "visitor_id": {
            "description": "The shopper's browser: the persistent visitor, or a visitor of this session only until analytics consent is given",
            "examples": [
              "vis_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^vis_[0-9a-f]{32}$",
            "title": "Visitor Id",
            "type": "string"
          }
        },
        "required": [
          "id",
          "quiz_id",
          "quiz_name",
          "version_id",
          "version_number",
          "visitor_id",
          "started_at",
          "ended_at",
          "channel",
          "device",
          "country",
          "page_url",
          "utm_source",
          "utm_medium",
          "utm_campaign",
          "utm_content",
          "utm_term",
          "answers",
          "last_page",
          "answered_count",
          "source_session_id",
          "source_kind",
          "completed_at",
          "results_url",
          "formulas",
          "points",
          "terminal_page",
          "products_shown",
          "property_mappings"
        ],
        "title": "WebhookSession",
        "type": "object"
      },
      "WebhookSessionStarted": {
        "additionalProperties": false,
        "properties": {
          "arm_id": {
            "anyOf": [
              {
                "examples": [
                  "arm_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^arm_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The arm the session was shown; null outside a test",
            "title": "Arm Id"
          },
          "channel": {
            "description": "How the shopper arrived: direct | organic_search | paid_search | organic_social | paid_social | email | sms | affiliate | display | paid_other | referral | ai_assistant | other | shared_results",
            "title": "Channel",
            "type": "string"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The shopper's country from their IP, ISO 3166-1 alpha-2; null when unknown",
            "title": "Country"
          },
          "device": {
            "$ref": "#/components/schemas/WebhookDevice",
            "description": "The device as parsed from the session's user agent when it opened"
          },
          "experiment_id": {
            "anyOf": [
              {
                "examples": [
                  "expt_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^expt_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The A/B test the session was split into; null outside one",
            "title": "Experiment Id"
          },
          "id": {
            "description": "The session's id, the same session_id the profiles API shows",
            "examples": [
              "sess_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^sess_[0-9a-f]{32}$",
            "title": "Id",
            "type": "string"
          },
          "page_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The page the session opened on, origin and path without the query string; null when the embed did not report one",
            "title": "Page Url"
          },
          "quiz_id": {
            "description": "The quiz the session ran",
            "examples": [
              "quiz_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^quiz_[0-9a-f]{32}$",
            "title": "Quiz Id",
            "type": "string"
          },
          "quiz_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The quiz's name as the session's version carried it; null when the quiz was deleted before the delivery was built",
            "title": "Quiz Name"
          },
          "region": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The shopper's region within the country from their IP; null when unknown",
            "title": "Region"
          },
          "source_kind": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "share: started from a shared result | restart: started by Restart; null for a session the shopper opened themselves",
            "examples": [
              "share",
              "restart",
              null
            ],
            "title": "Source Kind"
          },
          "source_session_id": {
            "anyOf": [
              {
                "examples": [
                  "sess_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^sess_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The session this one was started from: a shared result (source_kind share) or a Restart (source_kind restart); null for a session the shopper opened themselves",
            "title": "Source Session Id"
          },
          "started_at": {
            "description": "When the session opened",
            "format": "date-time",
            "title": "Started At",
            "type": "string"
          },
          "utm_campaign": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The utm_campaign of the page the session opened on; null when absent",
            "title": "Utm Campaign"
          },
          "utm_content": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The utm_content of the page the session opened on; null when absent",
            "title": "Utm Content"
          },
          "utm_medium": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The utm_medium of the page the session opened on; null when absent",
            "title": "Utm Medium"
          },
          "utm_source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The utm_source of the page the session opened on; null when absent",
            "title": "Utm Source"
          },
          "utm_term": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The utm_term of the page the session opened on; null when absent",
            "title": "Utm Term"
          },
          "version_id": {
            "anyOf": [
              {
                "examples": [
                  "ver_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^ver_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The version the session ran; null when that version row is gone",
            "title": "Version Id"
          },
          "version_number": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The number of that version; null when it is gone",
            "title": "Version Number"
          },
          "visitor_id": {
            "description": "The shopper's browser: the persistent visitor, or a visitor of this session only until analytics consent is given",
            "examples": [
              "vis_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^vis_[0-9a-f]{32}$",
            "title": "Visitor Id",
            "type": "string"
          }
        },
        "required": [
          "id",
          "quiz_id",
          "quiz_name",
          "version_id",
          "version_number",
          "visitor_id",
          "channel",
          "country",
          "region",
          "page_url",
          "utm_source",
          "utm_medium",
          "utm_campaign",
          "utm_content",
          "utm_term",
          "started_at",
          "device",
          "source_session_id",
          "source_kind"
        ],
        "title": "WebhookSessionStarted",
        "type": "object"
      },
      "WebhookSessionSummary": {
        "additionalProperties": false,
        "properties": {
          "answered_count": {
            "description": "How many components answers holds",
            "title": "Answered Count",
            "type": "integer"
          },
          "answers": {
            "additionalProperties": {
              "$ref": "#/components/schemas/WebhookAnswer"
            },
            "description": "The session's answers keyed by component_key; a component on two pages holds its last answer. Email and phone answers only on endpoints with include_pii",
            "title": "Answers",
            "type": "object"
          },
          "arm_id": {
            "anyOf": [
              {
                "examples": [
                  "arm_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^arm_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The arm the session was shown; null outside a test",
            "title": "Arm Id"
          },
          "channel": {
            "description": "How the shopper arrived: direct | organic_search | paid_search | organic_social | paid_social | email | sms | affiliate | display | paid_other | referral | ai_assistant | other | shared_results",
            "title": "Channel",
            "type": "string"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The shopper's country from their IP, ISO 3166-1 alpha-2; null when unknown",
            "title": "Country"
          },
          "device": {
            "$ref": "#/components/schemas/WebhookDevice",
            "description": "The device as parsed from the session's user agent when it opened"
          },
          "ended_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the session ended: finished, closed or idle for 30 minutes; null while it runs",
            "title": "Ended At"
          },
          "experiment_id": {
            "anyOf": [
              {
                "examples": [
                  "expt_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^expt_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The A/B test the session was split into; null outside one",
            "title": "Experiment Id"
          },
          "id": {
            "description": "The session's id, the same session_id the profiles API shows",
            "examples": [
              "sess_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^sess_[0-9a-f]{32}$",
            "title": "Id",
            "type": "string"
          },
          "identities": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/ProfileIdentity"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "Endpoints with include_pii only: the identities of the session's person",
            "title": "Identities"
          },
          "last_page": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The page_key of the last page the shopper visited; null before any",
            "title": "Last Page"
          },
          "page_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The page the session opened on, origin and path without the query string; null when the embed did not report one",
            "title": "Page Url"
          },
          "quiz_id": {
            "description": "The quiz the session ran",
            "examples": [
              "quiz_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^quiz_[0-9a-f]{32}$",
            "title": "Quiz Id",
            "type": "string"
          },
          "quiz_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The quiz's name as the session's version carried it; null when the quiz was deleted before the delivery was built",
            "title": "Quiz Name"
          },
          "source_kind": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "share: started from a shared result | restart: started by Restart; null for a session the shopper opened themselves",
            "examples": [
              "share",
              "restart",
              null
            ],
            "title": "Source Kind"
          },
          "source_session_id": {
            "anyOf": [
              {
                "examples": [
                  "sess_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^sess_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The session this one was started from: a shared result (source_kind share) or a Restart (source_kind restart); null for a session the shopper opened themselves",
            "title": "Source Session Id"
          },
          "started_at": {
            "description": "When the session opened",
            "format": "date-time",
            "title": "Started At",
            "type": "string"
          },
          "utm_campaign": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The utm_campaign of the page the session opened on; null when absent",
            "title": "Utm Campaign"
          },
          "utm_content": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The utm_content of the page the session opened on; null when absent",
            "title": "Utm Content"
          },
          "utm_medium": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The utm_medium of the page the session opened on; null when absent",
            "title": "Utm Medium"
          },
          "utm_source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The utm_source of the page the session opened on; null when absent",
            "title": "Utm Source"
          },
          "utm_term": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The utm_term of the page the session opened on; null when absent",
            "title": "Utm Term"
          },
          "version_id": {
            "anyOf": [
              {
                "examples": [
                  "ver_7c9e6679742540de944be07fc1f90ae7"
                ],
                "pattern": "^ver_[0-9a-f]{32}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The version the session ran; null when that version row is gone",
            "title": "Version Id"
          },
          "version_number": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The number of that version; null when it is gone",
            "title": "Version Number"
          },
          "visitor_id": {
            "description": "The shopper's browser: the persistent visitor, or a visitor of this session only until analytics consent is given",
            "examples": [
              "vis_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^vis_[0-9a-f]{32}$",
            "title": "Visitor Id",
            "type": "string"
          }
        },
        "required": [
          "id",
          "quiz_id",
          "quiz_name",
          "version_id",
          "version_number",
          "visitor_id",
          "started_at",
          "ended_at",
          "channel",
          "device",
          "country",
          "page_url",
          "utm_source",
          "utm_medium",
          "utm_campaign",
          "utm_content",
          "utm_term",
          "answers",
          "last_page",
          "answered_count",
          "source_session_id",
          "source_kind"
        ],
        "title": "WebhookSessionSummary",
        "type": "object"
      },
      "WebhookSummary": {
        "additionalProperties": false,
        "properties": {
          "consecutive_failures": {
            "description": "Failed deliveries in a row; a success resets it",
            "title": "Consecutive Failures",
            "type": "integer"
          },
          "created_at": {
            "description": "When the endpoint was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Your own label for the endpoint; null when unset",
            "title": "Description"
          },
          "disabled_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it was disabled; null while enabled",
            "title": "Disabled At"
          },
          "disabled_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "merchant: you disabled it | gone: it answered 410 | failing_five_days: it kept failing for five days; null while enabled",
            "title": "Disabled Reason"
          },
          "failing_since": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the current run of failures began; null when the last delivery succeeded",
            "examples": [
              "2026-09-01T12:00:00Z",
              null
            ],
            "title": "Failing Since"
          },
          "id": {
            "description": "The endpoint",
            "examples": [
              "whe_7c9e6679742540de944be07fc1f90ae7"
            ],
            "pattern": "^whe_[0-9a-f]{32}$",
            "title": "Id",
            "type": "string"
          },
          "include_pii": {
            "description": "Whether payloads carry contact details (identities and email and phone answers)",
            "title": "Include Pii",
            "type": "boolean"
          },
          "last_delivered_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When a delivery last succeeded; null before any",
            "title": "Last Delivered At"
          },
          "status": {
            "description": "pending: waiting for its first successful ping | active | disabled | paused_plan: the store's plan has no API access",
            "enum": [
              "pending",
              "active",
              "disabled",
              "paused_plan"
            ],
            "title": "Status",
            "type": "string"
          },
          "topics": {
            "description": "The topics the endpoint receives",
            "items": {
              "enum": [
                "quiz.started",
                "quiz.finished",
                "quiz.abandoned",
                "identity.captured",
                "quiz.published",
                "experiment.started",
                "experiment.ended",
                "profile.created",
                "profile.updated",
                "export.completed",
                "webhook.endpoint.disabled"
              ],
              "type": "string"
            },
            "title": "Topics",
            "type": "array"
          },
          "updated_at": {
            "description": "When it last changed",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "url": {
            "description": "Where deliveries are sent",
            "title": "Url",
            "type": "string"
          },
          "verified_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When its first ping succeeded; null before",
            "title": "Verified At"
          }
        },
        "required": [
          "id",
          "url",
          "topics",
          "status",
          "include_pii",
          "description",
          "created_at",
          "updated_at",
          "verified_at",
          "disabled_at",
          "disabled_reason",
          "consecutive_failures",
          "failing_since",
          "last_delivered_at"
        ],
        "title": "WebhookSummary",
        "type": "object"
      },
      "WebhookUpdate": {
        "additionalProperties": false,
        "properties": {
          "description": {
            "anyOf": [
              {
                "maxLength": 200,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Your own label; null clears it, absent leaves it",
            "title": "Description"
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "false disables the endpoint, true enables it again; absent leaves it",
            "title": "Enabled"
          },
          "include_pii": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "Send contact details; absent leaves it",
            "title": "Include Pii"
          },
          "topics": {
            "anyOf": [
              {
                "items": {
                  "enum": [
                    "quiz.started",
                    "quiz.finished",
                    "quiz.abandoned",
                    "identity.captured",
                    "quiz.published",
                    "experiment.started",
                    "experiment.ended",
                    "profile.created",
                    "profile.updated",
                    "export.completed",
                    "webhook.endpoint.disabled"
                  ],
                  "type": "string"
                },
                "minItems": 1,
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "The topics to receive; absent leaves them",
            "title": "Topics"
          }
        },
        "title": "WebhookUpdate",
        "type": "object"
      }
    },
    "securitySchemes": {
      "ApiKey": {
        "description": "An `oct_live_...` key minted on the dashboard",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "The public REST API for a store's quizzes, analytics, shopper profiles, exports and webhooks.\n\nCreate a key on the dashboard (Developer > API keys) and send it as a Bearer token. See [Plans](#plans) for API availability.\n\n## Authentication and limits\n\n### Keys\n\nA store admin creates keys on the dashboard (Developer > API keys). A key is shown once and never again, and may carry an expiry chosen when it is created. Send it as a Bearer token:\n\n```\nAuthorization: Bearer oct_live_...\n```\n\nA key carries scopes chosen when it is created and changeable on the dashboard at any time (`quizzes:read`, `quizzes:write`, `quizzes:publish`, `analytics:read`, `experiments:read`, `experiments:write`, `profiles:read`, `webhooks:manage`); the default is read-only (`quizzes:read`, `analytics:read`). A route that needs a scope the key lacks answers `403 insufficient_scope` and names the scope it needs. A missing, malformed, revoked or expired key answers `401 invalid_api_key` with `WWW-Authenticate: Bearer`.\n\nRevoking a key or changing its scopes takes effect on the next request (within two minutes at the outside). To rotate, create the new key first, switch, then revoke the old one.\n\n### Plans\n\nThe API is available on the Plus and Enterprise plans. A key of a store on another plan answers `403 plan_required`; a plan change gates within five minutes.\n\n### Limits\n\nEvery key has a leaky bucket and every store has one larger bucket shared by all its keys: three times a key's on Plus, six times on Enterprise (`bot_multiplier`). A request costs 1 (reads), 2 (writes) or 3 (analytics) units; the bucket drains at a steady rate. An analytics call is charged 1 when the key is accepted and 2 more once an answer body is served, so a `304`, a `404` or a `422` costs 1. The key's bucket is charged first; a request the key's bucket rejects never touches the store's. `GET /v1/store` returns the three numbers in force (`capacity`, `leak_per_second`, `bot_multiplier`).\n\nEvery limited response carries:\n\n```\nRateLimit: limit=72, remaining=42, reset=2\nRateLimit-Policy: 72;w=6\n```\n\nThe headers are absent on a `401` and on a `403` answered before the limit is checked (`plan_required`, `insufficient_scope`). `remaining` is what the bucket can still take now and `reset` is the number of seconds until it is empty again; on an admitted request the headers describe the key's bucket, on a `429` they describe the bucket that rejected (the store's bucket reports its own, larger limit). Past the limit the answer is `429 rate_limited` with a `Retry-After` header (seconds, also in the body as `retry_after`). When limits cannot be checked at all, reads are admitted and writes and analytics bodies answer `503 limiter_unavailable` with `Retry-After: 2`.\n\n### Analytics caching\n\nAnalytics are cached for a short time. If the cache is unavailable or an answer is not ready after two seconds, the answer is computed directly and may be slower. Rate-limit checks still apply: if they cannot run, the request returns `503 limiter_unavailable`.\n\n## Pagination\n\nList endpoints page by cursor:\n\n```\nGET /v1/quizzes?limit=50\nGET /v1/quizzes?limit=50&cursor=<next_cursor from the previous page>\n```\n\n- `limit` is 20 by default, at least 1 and at most 100.\n- The response is `{\"data\": [...], \"has_more\": true, \"next_cursor\": \"...\"}`. When `has_more` is false, `next_cursor` is null.\n- A cursor is opaque and positional: it names a place in the list, never a filter. Send it back unchanged with the same filters. A cursor that was not issued by the API answers `422 validation_error`.\n- Lists are newest first and stable under inserts: a row created after the first page was read appears on a later request of the first page, never in the middle of a walk.\n- Quiz and version lists order by creation time, with quiz UUID and public version UUID respectively breaking ties. Profile lists order by last-seen time, then profile UUID. These lists accept limits from 1 through 100.\n- `POST /v1/profiles/search` pages the same way: send the same body with every page and the `cursor` and `limit` as query parameters; `total` is exact up to 5,000 and `total_capped` says when counting stopped there. Totals on sparse filters can take about a second on very large stores.\n- `/v1/analytics/quizzes` pages by offset (`offset`, `limit`, `sort`, `dir`, and `q`), with no cursor; its default limit is 25 and its maximum is 1000. It answers `data`, `has_more` and `total`, and echoes `limit`, `offset`, `sort` and `dir`.\n- A query parameter the route does not declare answers `422 validation_error` naming it.\n\nIds are prefixed strings (`quiz_...`, `ver_...`, `key_...`); an id of the wrong kind, of another store, or that does not exist answers `404 not_found`.\n\n## Errors\n\nEvery non-2xx response is an RFC 9457 problem body with the media type `application/problem+json`:\n\n```json\n{\n  \"type\": \"https://api.octaneai.com/errors/insufficient_scope\",\n  \"title\": \"insufficient_scope\",\n  \"detail\": \"The API key does not carry the scope this route needs\",\n  \"status\": 403,\n  \"request_id\": \"7c9e6679-7425-40de-944b-e07fc1f90ae7\",\n  \"required\": [\"quizzes:read\"]\n}\n```\n\n`type` is a stable identifier on the API's host, `title` is the machine code, `detail` is for people, and `request_id` is the same value as the `Request-Id` response header. Quote the `request_id` when you write to support: it finds the request in the store's API logs.\n\n| status | title | when |\n|---|---|---|\n| 401 | `invalid_api_key` | the key is missing, malformed, revoked or expired; the response carries `WWW-Authenticate: Bearer` |\n| 403 | `plan_required` | the store's plan has no API access, or does not include the view; for a view, `feature` names it and `plan` the lowest plan that includes it |\n| 403 | `insufficient_scope` | the key lacks the scope named in `required` |\n| 403 | `experiments_disabled` | the store's plan does not include experiments; creating, changing, starting or republishing one is refused, reading and ending still answer |\n| 404 | `not_found` | no such resource for this store (an id of another store answers the same); `detail` is always `Not found` and never echoes the id |\n| 405 | `method_not_allowed` | the route exists, the method does not |\n| 409 | `conflict` | the request cannot apply in the resource's current state: publishing a version with no pages, or starting an export of a dataset that is still being built |\n| 409 | `endpoint_limit` | the store already has as many webhook endpoints as its plan allows |\n| 409 | `webhook_conflict` | the webhook request conflicts with the endpoint's state: its URL already has an endpoint configured differently, a test was sent to a disabled endpoint, or the event being redelivered was skipped while the plan was paused |\n| 409 | `ai_run_in_progress` | the AI assistant is editing the quiz right now; archive, unarchive or write again when it has finished |\n| 422 | `validation_error` | the request did not validate; `errors` lists `field` and `message`, a query parameter the route does not declare included |\n| 422 | `invalid_experiment` | the experiment cannot be set up or changed that way; `detail` says why |\n| 422 | `webhook_url_unsafe` | the webhook URL is not a public https address |\n| 422 | `webhook_pii_required` | an endpoint that subscribes to `identity.captured` must include contact details (`include_pii: true`) |\n| 4xx | `http_error`, `request_failed` | a refusal without a code of its own; `detail` says why |\n| 429 | `rate_limited` | the key's or the store's bucket is full; see `Retry-After` (also `retry_after` in the body). A store-level reject has already spent the key's own bucket for that request; there is no refund. |\n| 500 | `internal_error` | something on our side; send the `request_id` |\n| 502 | `upstream_error` | a service this request depends on failed; retry shortly |\n| 503 | `limiter_unavailable` | limits could not be checked for a write or analytics call; retry after `Retry-After` |\n| 503 | `dependency_unavailable` | a backing service is temporarily unavailable; retry after `Retry-After` |\n| 504 | `timeout` | the request ran past 30 seconds |\n\nThe body is the `Problem` schema of the OpenAPI document: the five fields above on every error, `required` on `insufficient_scope`, `feature` and `plan` on a `plan_required` view, `retry_after` on `429` and `503`, `errors` on `validation_error`.\n\n## Versioning\n\nThe version is in the path: `/v1`. Within `v1` the API only grows:\n\n- New endpoints, new optional parameters and new response fields may appear at any time. Clients must ignore fields they do not know.\n- Nothing is removed, renamed or retyped, and no input becomes required, without a deprecation window. A deprecated endpoint or field keeps working for at least 90 days and answers with `Deprecation` and `Sunset` headers naming the date; the replacement is available for the whole window.\n\nWithin `/v1` the API only grows; nothing is removed or renamed.",
    "title": "Octane AI Merchant API",
    "version": "v1",
    "x-released": false
  },
  "openapi": "3.1.0",
  "paths": {
    "/v1/analytics/breakdown": {
      "get": {
        "operationId": "analytics_breakdown",
        "parameters": [
          {
            "in": "query",
            "name": "by",
            "required": true,
            "schema": {
              "enum": [
                "channel",
                "device",
                "new_returning",
                "country"
              ],
              "title": "By",
              "type": "string"
            }
          },
          {
            "description": "First day, inclusive, in tz; 29 days before `to` when absent",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "First day, inclusive, in tz; 29 days before `to` when absent",
              "title": "From"
            }
          },
          {
            "description": "Last day, inclusive, in tz; today when absent",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Last day, inclusive, in tz; today when absent",
              "title": "To"
            }
          },
          {
            "in": "query",
            "name": "tz",
            "required": false,
            "schema": {
              "default": "UTC",
              "maxLength": 64,
              "title": "Tz",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "channel",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Channel"
            }
          },
          {
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Device"
            }
          },
          {
            "in": "query",
            "name": "new_returning",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "New Returning"
            }
          },
          {
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Country"
            }
          },
          {
            "in": "header",
            "name": "if-none-match",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 1024,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "If-None-Match"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "by": "channel",
                  "filters": {},
                  "freshness": {
                    "as_of": "2026-09-07T12:00:00Z",
                    "closed_days_through": "2026-09-06",
                    "next_refresh_at": "2026-09-07T13:00:00Z",
                    "pending": false,
                    "stale": false,
                    "today_live": true
                  },
                  "range": {
                    "days": 7,
                    "end": "2026-09-07",
                    "start": "2026-09-01",
                    "timezone": "UTC"
                  },
                  "rows": [
                    {
                      "completions": 5,
                      "email_opt_ins": 2,
                      "phone_opt_ins": 1,
                      "starts": 8,
                      "unique_viewers_approx": 9,
                      "value": "direct",
                      "views": 10
                    }
                  ]
                },
                "schema": {
                  "$ref": "#/components/schemas/AnalyticsBreakdown"
                }
              }
            },
            "description": "Analytics for the range. ETag identifies the cached response.",
            "headers": {
              "ETag": {
                "example": "\"5a23d8\"",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "304": {
            "description": "If-None-Match matches the cached response; no body is sent.",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "analytics:read"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "503": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "detail": "A backing service is temporarily unavailable; retry shortly",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "retry_after": 2,
                      "status": 503,
                      "title": "dependency_unavailable",
                      "type": "https://api.octaneai.com/errors/dependency_unavailable"
                    }
                  },
                  "limiter_unavailable": {
                    "value": {
                      "detail": "Request limits cannot be checked right now; retry shortly",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "retry_after": 2,
                      "status": 503,
                      "title": "limiter_unavailable",
                      "type": "https://api.octaneai.com/errors/limiter_unavailable"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Request limits could not be checked for the body, or the store's details could not be read."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Store analytics by dimension",
        "tags": [
          "analytics"
        ],
        "x-rate-class": "analytics",
        "x-scope": "analytics:read"
      }
    },
    "/v1/analytics/overview": {
      "get": {
        "operationId": "analytics_overview",
        "parameters": [
          {
            "description": "First day, inclusive, in tz; 29 days before `to` when absent",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "First day, inclusive, in tz; 29 days before `to` when absent",
              "title": "From"
            }
          },
          {
            "description": "Last day, inclusive, in tz; today when absent",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Last day, inclusive, in tz; today when absent",
              "title": "To"
            }
          },
          {
            "in": "query",
            "name": "tz",
            "required": false,
            "schema": {
              "default": "UTC",
              "maxLength": 64,
              "title": "Tz",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "channel",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Channel"
            }
          },
          {
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Device"
            }
          },
          {
            "in": "query",
            "name": "new_returning",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "New Returning"
            }
          },
          {
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Country"
            }
          },
          {
            "description": "The points of `series`: day (ranges of 366 days or less), week (Monday to Sunday), month, or auto (day up to 366 days, week up to 1,098 days, month past that); weeks and months are counted in tz",
            "in": "query",
            "name": "interval",
            "required": false,
            "schema": {
              "default": "day",
              "description": "The points of `series`: day (ranges of 366 days or less), week (Monday to Sunday), month, or auto (day up to 366 days, week up to 1,098 days, month past that); weeks and months are counted in tz",
              "enum": [
                "day",
                "week",
                "month",
                "auto"
              ],
              "title": "Interval",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "if-none-match",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 1024,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "If-None-Match"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data_start": "2026-09-01",
                  "filters": {},
                  "freshness": {
                    "as_of": "2026-09-07T12:00:00Z",
                    "closed_days_through": "2026-09-06",
                    "next_refresh_at": "2026-09-07T13:00:00Z",
                    "pending": false,
                    "stale": false,
                    "today_live": true
                  },
                  "range": {
                    "days": 7,
                    "end": "2026-09-07",
                    "start": "2026-09-01",
                    "timezone": "UTC"
                  },
                  "series": [
                    {
                      "avg_time_to_complete_ms": 42000.0,
                      "completions": 5,
                      "completions_with_order": 1,
                      "consent_denied": 0,
                      "day": "2026-09-01",
                      "email_opt_ins": 2,
                      "median_time_to_complete_ms": 40000.0,
                      "orders": 1,
                      "orders_inside_window": 1,
                      "phone_opt_ins": 1,
                      "revenue": {
                        "amount": "12.50",
                        "currency": "USD"
                      },
                      "revenue_by_bucket": {
                        "added_from_quiz": {
                          "amount": "12.50",
                          "currency": "USD"
                        },
                        "bought_not_shown": {
                          "amount": "0",
                          "currency": "USD"
                        },
                        "shown_bought_later": {
                          "amount": "0",
                          "currency": "USD"
                        }
                      },
                      "starts": 8,
                      "unique_viewers_approx": 9,
                      "views": 10
                    }
                  ],
                  "totals": {
                    "aov": {
                      "amount": "12.50",
                      "currency": "USD"
                    },
                    "avg_quiz_to_checkout_ms": 60000.0,
                    "avg_time_to_complete_ms": 42000.0,
                    "completion_rate": 62.5,
                    "completions": 5,
                    "completions_with_order": 1,
                    "consent_denied": 0,
                    "conversion_rate": 20.0,
                    "email_opt_ins": 2,
                    "median_quiz_to_checkout_ms": 60000.0,
                    "median_time_to_complete_ms": 40000.0,
                    "orders": 1,
                    "orders_inside_window": 1,
                    "phone_opt_ins": 1,
                    "revenue": {
                      "amount": "12.50",
                      "currency": "USD"
                    },
                    "revenue_by_bucket": {
                      "added_from_quiz": {
                        "amount": "12.50",
                        "currency": "USD"
                      },
                      "bought_not_shown": {
                        "amount": "0",
                        "currency": "USD"
                      },
                      "shown_bought_later": {
                        "amount": "0",
                        "currency": "USD"
                      }
                    },
                    "start_rate": 80.0,
                    "starts": 8,
                    "unique_viewers_approx": 9,
                    "views": 10
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/AccountOverview"
                }
              }
            },
            "description": "Analytics for the range. ETag identifies the cached response.",
            "headers": {
              "ETag": {
                "example": "\"5a23d8\"",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "304": {
            "description": "If-None-Match matches the cached response; no body is sent.",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "analytics:read"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "503": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "detail": "A backing service is temporarily unavailable; retry shortly",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "retry_after": 2,
                      "status": 503,
                      "title": "dependency_unavailable",
                      "type": "https://api.octaneai.com/errors/dependency_unavailable"
                    }
                  },
                  "limiter_unavailable": {
                    "value": {
                      "detail": "Request limits cannot be checked right now; retry shortly",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "retry_after": 2,
                      "status": 503,
                      "title": "limiter_unavailable",
                      "type": "https://api.octaneai.com/errors/limiter_unavailable"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Request limits could not be checked for the body, or the store's details could not be read."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Store analytics overview",
        "tags": [
          "analytics"
        ],
        "x-rate-class": "analytics",
        "x-scope": "analytics:read"
      }
    },
    "/v1/analytics/products": {
      "get": {
        "operationId": "analytics_products",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "bucket",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "added_from_quiz",
                    "shown_bought_later",
                    "bought_not_shown"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Bucket"
            }
          },
          {
            "in": "query",
            "name": "sort",
            "required": false,
            "schema": {
              "default": "revenue",
              "enum": [
                "revenue",
                "units",
                "orders"
              ],
              "title": "Sort",
              "type": "string"
            }
          },
          {
            "description": "First day, inclusive, in tz; 29 days before `to` when absent",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "First day, inclusive, in tz; 29 days before `to` when absent",
              "title": "From"
            }
          },
          {
            "description": "Last day, inclusive, in tz; today when absent",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Last day, inclusive, in tz; today when absent",
              "title": "To"
            }
          },
          {
            "in": "query",
            "name": "tz",
            "required": false,
            "schema": {
              "default": "UTC",
              "maxLength": 64,
              "title": "Tz",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "if-none-match",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 1024,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "If-None-Match"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "freshness": {
                    "as_of": "2026-09-07T12:00:00Z",
                    "closed_days_through": "2026-09-06",
                    "next_refresh_at": "2026-09-07T13:00:00Z",
                    "pending": false,
                    "stale": false,
                    "today_live": true
                  },
                  "line_revenue": {
                    "amount": "12.50",
                    "currency": "USD"
                  },
                  "orders_matched_by_email": 1,
                  "range": {
                    "days": 7,
                    "end": "2026-09-07",
                    "start": "2026-09-01",
                    "timezone": "UTC"
                  },
                  "rows": [
                    {
                      "had_variants": false,
                      "in_store": true,
                      "line_revenue": {
                        "amount": "12.50",
                        "currency": "USD"
                      },
                      "orders_approx": 1,
                      "product_id": "gid://shopify/Product/1",
                      "quiz_name": "Routine",
                      "revenue_by_bucket": {
                        "added_from_quiz": {
                          "amount": "12.50",
                          "currency": "USD"
                        },
                        "bought_not_shown": {
                          "amount": "0",
                          "currency": "USD"
                        },
                        "shown_bought_later": {
                          "amount": "0",
                          "currency": "USD"
                        }
                      },
                      "shown_on": {
                        "block_key": "product-abc12",
                        "page_key": "result",
                        "page_title": "Your match"
                      },
                      "times_shown": 5,
                      "title": "Serum",
                      "units": 1
                    }
                  ],
                  "sort": "revenue",
                  "total_products": 1,
                  "totals_by_bucket": {
                    "added_from_quiz": {
                      "amount": "12.50",
                      "currency": "USD"
                    },
                    "bought_not_shown": {
                      "amount": "0",
                      "currency": "USD"
                    },
                    "shown_bought_later": {
                      "amount": "0",
                      "currency": "USD"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/AnalyticsProducts"
                }
              }
            },
            "description": "Analytics for the range. ETag identifies the cached response.",
            "headers": {
              "ETag": {
                "example": "\"5a23d8\"",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "304": {
            "description": "If-None-Match matches the cached response; no body is sent.",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "analytics:read"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "503": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "detail": "A backing service is temporarily unavailable; retry shortly",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "retry_after": 2,
                      "status": 503,
                      "title": "dependency_unavailable",
                      "type": "https://api.octaneai.com/errors/dependency_unavailable"
                    }
                  },
                  "limiter_unavailable": {
                    "value": {
                      "detail": "Request limits cannot be checked right now; retry shortly",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "retry_after": 2,
                      "status": 503,
                      "title": "limiter_unavailable",
                      "type": "https://api.octaneai.com/errors/limiter_unavailable"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Request limits could not be checked for the body, or the store's details could not be read."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Products attributed to the store's quizzes",
        "tags": [
          "analytics"
        ],
        "x-rate-class": "analytics",
        "x-scope": "analytics:read"
      }
    },
    "/v1/analytics/quizzes": {
      "get": {
        "operationId": "analytics_quizzes",
        "parameters": [
          {
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 200,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Q"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 25,
              "maximum": 1000,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "default": 0,
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "sort",
            "required": false,
            "schema": {
              "default": "name",
              "enum": [
                "name",
                "views",
                "starts",
                "completion_rate",
                "opt_ins",
                "orders",
                "revenue",
                "share"
              ],
              "title": "Sort",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "dir",
            "required": false,
            "schema": {
              "default": "asc",
              "enum": [
                "asc",
                "desc"
              ],
              "title": "Dir",
              "type": "string"
            }
          },
          {
            "description": "First day, inclusive, in tz; 29 days before `to` when absent",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "First day, inclusive, in tz; 29 days before `to` when absent",
              "title": "From"
            }
          },
          {
            "description": "Last day, inclusive, in tz; today when absent",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Last day, inclusive, in tz; today when absent",
              "title": "To"
            }
          },
          {
            "in": "query",
            "name": "tz",
            "required": false,
            "schema": {
              "default": "UTC",
              "maxLength": 64,
              "title": "Tz",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "if-none-match",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 1024,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "If-None-Match"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [
                    {
                      "attributed_share": 40.0,
                      "avg_time_to_complete_ms": 42000.0,
                      "completion_rate": 62.5,
                      "completions": 5,
                      "email_opt_ins": 2,
                      "median_time_to_complete_ms": 40000.0,
                      "name": "Routine",
                      "orders": 1,
                      "phone_opt_ins": 1,
                      "quiz_id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                      "revenue": {
                        "amount": "12.50",
                        "currency": "USD"
                      },
                      "starts": 8,
                      "status": "published",
                      "views": 10
                    }
                  ],
                  "dir": "asc",
                  "freshness": {
                    "as_of": "2026-09-07T12:00:00Z",
                    "closed_days_through": "2026-09-06",
                    "next_refresh_at": "2026-09-07T13:00:00Z",
                    "pending": false,
                    "stale": false,
                    "today_live": true
                  },
                  "has_more": false,
                  "limit": 25,
                  "offset": 0,
                  "range": {
                    "days": 7,
                    "end": "2026-09-07",
                    "start": "2026-09-01",
                    "timezone": "UTC"
                  },
                  "sort": "name",
                  "total": 1
                },
                "schema": {
                  "$ref": "#/components/schemas/AnalyticsQuizzes"
                }
              }
            },
            "description": "Analytics for the range. ETag identifies the cached response.",
            "headers": {
              "ETag": {
                "example": "\"5a23d8\"",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "304": {
            "description": "If-None-Match matches the cached response; no body is sent.",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "analytics:read"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "503": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "detail": "A backing service is temporarily unavailable; retry shortly",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "retry_after": 2,
                      "status": 503,
                      "title": "dependency_unavailable",
                      "type": "https://api.octaneai.com/errors/dependency_unavailable"
                    }
                  },
                  "limiter_unavailable": {
                    "value": {
                      "detail": "Request limits cannot be checked right now; retry shortly",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "retry_after": 2,
                      "status": 503,
                      "title": "limiter_unavailable",
                      "type": "https://api.octaneai.com/errors/limiter_unavailable"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Request limits could not be checked for the body, or the store's details could not be read."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Compare quiz analytics",
        "tags": [
          "analytics"
        ],
        "x-rate-class": "analytics",
        "x-scope": "analytics:read"
      }
    },
    "/v1/analytics/summary": {
      "get": {
        "operationId": "analytics_summary",
        "parameters": [
          {
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "default": "7d",
              "enum": [
                "7d",
                "30d"
              ],
              "title": "Period",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "tz",
            "required": false,
            "schema": {
              "default": "UTC",
              "maxLength": 64,
              "title": "Tz",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "if-none-match",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 1024,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "If-None-Match"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "completions": {
                    "current": 10,
                    "delta_pct": 100.0,
                    "previous": 5,
                    "sparkline": [
                      1,
                      2,
                      1,
                      2,
                      1,
                      2,
                      1
                    ]
                  },
                  "freshness": {
                    "as_of": "2026-09-07T12:00:00Z",
                    "closed_days_through": "2026-09-06",
                    "next_refresh_at": "2026-09-07T13:00:00Z",
                    "pending": false,
                    "stale": false,
                    "today_live": true
                  },
                  "opt_ins": {
                    "current": 10,
                    "delta_pct": 100.0,
                    "previous": 5,
                    "sparkline": [
                      1,
                      2,
                      1,
                      2,
                      1,
                      2,
                      1
                    ]
                  },
                  "orders": {
                    "current": 10,
                    "delta_pct": 100.0,
                    "previous": 5,
                    "sparkline": [
                      1,
                      2,
                      1,
                      2,
                      1,
                      2,
                      1
                    ]
                  },
                  "period": "7d",
                  "previous_range": {
                    "days": 7,
                    "end": "2026-08-31",
                    "start": "2026-08-25",
                    "timezone": "UTC"
                  },
                  "range": {
                    "days": 7,
                    "end": "2026-09-07",
                    "start": "2026-09-01",
                    "timezone": "UTC"
                  },
                  "revenue": {
                    "current": {
                      "amount": "12.50",
                      "currency": "USD"
                    },
                    "previous": {
                      "amount": "0",
                      "currency": "USD"
                    },
                    "sparkline": [
                      {
                        "amount": "12.50",
                        "currency": "USD"
                      },
                      {
                        "amount": "0",
                        "currency": "USD"
                      },
                      {
                        "amount": "0",
                        "currency": "USD"
                      },
                      {
                        "amount": "0",
                        "currency": "USD"
                      },
                      {
                        "amount": "0",
                        "currency": "USD"
                      },
                      {
                        "amount": "0",
                        "currency": "USD"
                      },
                      {
                        "amount": "0",
                        "currency": "USD"
                      }
                    ]
                  },
                  "starts": {
                    "current": 10,
                    "delta_pct": 100.0,
                    "previous": 5,
                    "sparkline": [
                      1,
                      2,
                      1,
                      2,
                      1,
                      2,
                      1
                    ]
                  },
                  "views": {
                    "current": 10,
                    "delta_pct": 100.0,
                    "previous": 5,
                    "sparkline": [
                      1,
                      2,
                      1,
                      2,
                      1,
                      2,
                      1
                    ]
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/AnalyticsSummary"
                }
              }
            },
            "description": "Analytics for the range. ETag identifies the cached response.",
            "headers": {
              "ETag": {
                "example": "\"5a23d8\"",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "304": {
            "description": "If-None-Match matches the cached response; no body is sent.",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "analytics:read"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "503": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "detail": "A backing service is temporarily unavailable; retry shortly",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "retry_after": 2,
                      "status": 503,
                      "title": "dependency_unavailable",
                      "type": "https://api.octaneai.com/errors/dependency_unavailable"
                    }
                  },
                  "limiter_unavailable": {
                    "value": {
                      "detail": "Request limits cannot be checked right now; retry shortly",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "retry_after": 2,
                      "status": 503,
                      "title": "limiter_unavailable",
                      "type": "https://api.octaneai.com/errors/limiter_unavailable"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Request limits could not be checked for the body, or the store's details could not be read."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Store analytics summary",
        "tags": [
          "analytics"
        ],
        "x-rate-class": "analytics",
        "x-scope": "analytics:read"
      }
    },
    "/v1/events": {
      "get": {
        "operationId": "events_list",
        "parameters": [
          {
            "in": "query",
            "name": "topic",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "quiz.started",
                    "quiz.finished",
                    "quiz.abandoned",
                    "identity.captured",
                    "quiz.published",
                    "experiment.started",
                    "experiment.ended",
                    "profile.created",
                    "profile.updated",
                    "export.completed",
                    "webhook.endpoint.disabled"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Topic"
            }
          },
          {
            "description": "From the previous page's nextCursor",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 200,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "From the previous page's nextCursor",
              "title": "Cursor"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 20,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [
                    {
                      "created": "2026-09-07T09:11:58Z",
                      "endpoint_id": "whe_3f2504e04f8911d39a0c0305e82c3301",
                      "id": "evt_6ba7b8109dad11d180b400c04fd430c8",
                      "topic": "quiz.finished",
                      "type": "quiz.finished"
                    }
                  ],
                  "has_more": false
                },
                "schema": {
                  "$ref": "#/components/schemas/EventList"
                }
              }
            },
            "description": "One page of the store's retained events, newest first."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "webhooks:manage"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "List distinct events retained for webhook delivery",
        "tags": [
          "webhooks"
        ],
        "x-rate-class": "read",
        "x-scope": "webhooks:manage"
      }
    },
    "/v1/experiments": {
      "get": {
        "operationId": "experiments_list",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 200,
              "maximum": 500,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "default": 0,
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [
                    {
                      "ai_fallback": "when_clear",
                      "app_id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                      "arms": [
                        {
                          "id": "arm_00000000000000000000000000000001",
                          "is_control": true,
                          "label": "Live version",
                          "position": 0,
                          "version_id": "ver_00000000000000000000000000000001",
                          "version_number": 1,
                          "weight": 1
                        },
                        {
                          "id": "arm_00000000000000000000000000000002",
                          "is_control": false,
                          "label": "Variant B",
                          "position": 1,
                          "version_id": "ver_00000000000000000000000000000002",
                          "version_number": 2,
                          "weight": 1
                        }
                      ],
                      "created_at": "2026-09-16T12:00:00Z",
                      "decision_metric": "completion_rate",
                      "decision_option": "when_clear",
                      "fallback": "notify",
                      "id": "expt_7c9e6679742540de944be07fc1f90ae7",
                      "long_run_reminders": true,
                      "name": "Skip the email page",
                      "period": 0,
                      "period_reason": "started",
                      "protect_metrics": [],
                      "revenue_tiers": [
                        "added_from_quiz",
                        "shown_bought_later",
                        "bought_not_shown"
                      ],
                      "revision": 0,
                      "status": "draft",
                      "timezone": "UTC",
                      "updated_at": "2026-09-16T12:00:00Z",
                      "weekly_digest": true
                    }
                  ]
                },
                "schema": {
                  "$ref": "#/components/schemas/ExperimentList"
                }
              }
            },
            "description": "Experiments, newest first; limit and offset page the list."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "experiments:read"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "List experiments across the store",
        "tags": [
          "experiments"
        ],
        "x-rate-class": "read",
        "x-scope": "experiments:read"
      },
      "post": {
        "operationId": "experiment_create",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExperimentCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "example": {
                  "ai_fallback": "when_clear",
                  "app_id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                  "arms": [
                    {
                      "id": "arm_00000000000000000000000000000001",
                      "is_control": true,
                      "label": "Live version",
                      "position": 0,
                      "version_id": "ver_00000000000000000000000000000001",
                      "version_number": 1,
                      "weight": 1
                    },
                    {
                      "id": "arm_00000000000000000000000000000002",
                      "is_control": false,
                      "label": "Variant B",
                      "position": 1,
                      "version_id": "ver_00000000000000000000000000000002",
                      "version_number": 2,
                      "weight": 1
                    }
                  ],
                  "created_at": "2026-09-16T12:00:00Z",
                  "decision_metric": "completion_rate",
                  "decision_option": "when_clear",
                  "fallback": "notify",
                  "id": "expt_7c9e6679742540de944be07fc1f90ae7",
                  "long_run_reminders": true,
                  "name": "Skip the email page",
                  "period": 0,
                  "period_reason": "started",
                  "protect_metrics": [],
                  "revenue_tiers": [
                    "added_from_quiz",
                    "shown_bought_later",
                    "bought_not_shown"
                  ],
                  "revision": 0,
                  "status": "draft",
                  "timezone": "UTC",
                  "updated_at": "2026-09-16T12:00:00Z",
                  "weekly_digest": true
                },
                "schema": {
                  "$ref": "#/components/schemas/ExperimentResponse"
                }
              }
            },
            "description": "A draft with the live version and one variant."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "experiments:write"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "409": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A test is already open on this quiz; end it before starting another.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 409,
                  "title": "conflict",
                  "type": "https://api.octaneai.com/errors/conflict"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A test is already open on this quiz; end it before starting another."
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Automatic decisions wait a full seven days, whatever the numbers look like earlier.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "invalid_experiment",
                  "type": "https://api.octaneai.com/errors/invalid_experiment"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Automatic decisions wait a full seven days, whatever the numbers look like earlier."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "503": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Request limits cannot be checked right now; retry shortly",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 503,
                  "title": "limiter_unavailable",
                  "type": "https://api.octaneai.com/errors/limiter_unavailable"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Request limits cannot be checked right now; retry shortly."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Create a draft experiment",
        "tags": [
          "experiments"
        ],
        "x-rate-class": "write",
        "x-scope": "experiments:write"
      }
    },
    "/v1/experiments/attention": {
      "get": {
        "operationId": "experiments_attention",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "items": []
                },
                "schema": {
                  "$ref": "#/components/schemas/ExperimentAttentionResponse"
                }
              }
            },
            "description": "What the store's experiments need from the merchant."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "experiments:read"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "503": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Request limits cannot be checked right now; retry shortly",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 503,
                  "title": "limiter_unavailable",
                  "type": "https://api.octaneai.com/errors/limiter_unavailable"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Request limits cannot be checked right now; retry shortly."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Read experiment attention rows",
        "tags": [
          "experiments"
        ],
        "x-rate-class": "analytics",
        "x-scope": "experiments:read"
      }
    },
    "/v1/experiments/{experiment_id}": {
      "get": {
        "operationId": "experiment_get",
        "parameters": [
          {
            "in": "path",
            "name": "experiment_id",
            "required": true,
            "schema": {
              "title": "Experiment Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "ai_fallback": "when_clear",
                  "app_id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                  "arms": [
                    {
                      "id": "arm_00000000000000000000000000000001",
                      "is_control": true,
                      "label": "Live version",
                      "position": 0,
                      "version_id": "ver_00000000000000000000000000000001",
                      "version_number": 1,
                      "weight": 1
                    },
                    {
                      "id": "arm_00000000000000000000000000000002",
                      "is_control": false,
                      "label": "Variant B",
                      "position": 1,
                      "version_id": "ver_00000000000000000000000000000002",
                      "version_number": 2,
                      "weight": 1
                    }
                  ],
                  "created_at": "2026-09-16T12:00:00Z",
                  "decision_metric": "completion_rate",
                  "decision_option": "when_clear",
                  "events": [],
                  "fallback": "notify",
                  "id": "expt_7c9e6679742540de944be07fc1f90ae7",
                  "long_run_reminders": true,
                  "name": "Skip the email page",
                  "period": 0,
                  "period_reason": "started",
                  "protect_metrics": [],
                  "revenue_tiers": [
                    "added_from_quiz",
                    "shown_bought_later",
                    "bought_not_shown"
                  ],
                  "revision": 0,
                  "status": "draft",
                  "timezone": "UTC",
                  "updated_at": "2026-09-16T12:00:00Z",
                  "weekly_digest": true
                },
                "schema": {
                  "$ref": "#/components/schemas/ExperimentDetailResponse"
                }
              }
            },
            "description": "The experiment, its two arms and its ordered events."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "experiments:read"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Read an experiment and its events",
        "tags": [
          "experiments"
        ],
        "x-rate-class": "read",
        "x-scope": "experiments:read"
      },
      "patch": {
        "operationId": "experiment_patch",
        "parameters": [
          {
            "in": "path",
            "name": "experiment_id",
            "required": true,
            "schema": {
              "title": "Experiment Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExperimentPatch"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "ai_fallback": "when_clear",
                  "app_id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                  "arms": [
                    {
                      "id": "arm_00000000000000000000000000000001",
                      "is_control": true,
                      "label": "Live version",
                      "position": 0,
                      "version_id": "ver_00000000000000000000000000000001",
                      "version_number": 1,
                      "weight": 1
                    },
                    {
                      "id": "arm_00000000000000000000000000000002",
                      "is_control": false,
                      "label": "Variant B",
                      "position": 1,
                      "version_id": "ver_00000000000000000000000000000002",
                      "version_number": 2,
                      "weight": 1
                    }
                  ],
                  "created_at": "2026-09-16T12:00:00Z",
                  "decision_metric": "completion_rate",
                  "decision_option": "when_clear",
                  "fallback": "notify",
                  "id": "expt_7c9e6679742540de944be07fc1f90ae7",
                  "long_run_reminders": true,
                  "name": "Skip the email page",
                  "period": 0,
                  "period_reason": "started",
                  "protect_metrics": [],
                  "revenue_tiers": [
                    "added_from_quiz",
                    "shown_bought_later",
                    "bought_not_shown"
                  ],
                  "revision": 0,
                  "status": "draft",
                  "timezone": "UTC",
                  "updated_at": "2026-09-16T12:00:00Z",
                  "weekly_digest": true
                },
                "schema": {
                  "$ref": "#/components/schemas/ExperimentResponse"
                }
              }
            },
            "description": "The experiment after the action. Start and end require confirm: true."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "experiments:write"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "409": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "This test has ended; its settings are frozen.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 409,
                  "title": "conflict",
                  "type": "https://api.octaneai.com/errors/conflict"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "This test has ended; its settings are frozen."
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Automatic decisions wait a full seven days, whatever the numbers look like earlier.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "invalid_experiment",
                  "type": "https://api.octaneai.com/errors/invalid_experiment"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Automatic decisions wait a full seven days, whatever the numbers look like earlier."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "503": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Request limits cannot be checked right now; retry shortly",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 503,
                  "title": "limiter_unavailable",
                  "type": "https://api.octaneai.com/errors/limiter_unavailable"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Request limits cannot be checked right now; retry shortly."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Change experiment settings",
        "tags": [
          "experiments"
        ],
        "x-rate-class": "write",
        "x-scope": "experiments:write"
      }
    },
    "/v1/experiments/{experiment_id}/arms/{arm_id}": {
      "get": {
        "operationId": "experiment_arm_get",
        "parameters": [
          {
            "in": "path",
            "name": "experiment_id",
            "required": true,
            "schema": {
              "title": "Experiment Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "arm_id",
            "required": true,
            "schema": {
              "title": "Arm Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "experiment_id": "expt_7c9e6679742540de944be07fc1f90ae7",
                  "id": "arm_00000000000000000000000000000001",
                  "is_control": true,
                  "label": "Live version",
                  "position": 0,
                  "version_id": "ver_00000000000000000000000000000001",
                  "version_number": 1,
                  "weight": 1
                },
                "schema": {
                  "$ref": "#/components/schemas/ExperimentArmDetail"
                }
              }
            },
            "description": "One arm of the experiment: the version it renders and its share of the split."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "experiments:read"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Read one arm of an experiment",
        "tags": [
          "experiments"
        ],
        "x-rate-class": "read",
        "x-scope": "experiments:read"
      }
    },
    "/v1/experiments/{experiment_id}/arms/{arm_id}/republish": {
      "post": {
        "operationId": "experiment_arm_republish",
        "parameters": [
          {
            "in": "path",
            "name": "experiment_id",
            "required": true,
            "schema": {
              "title": "Experiment Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "arm_id",
            "required": true,
            "schema": {
              "title": "Arm Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RepublishRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "ai_fallback": "when_clear",
                  "app_id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                  "arms": [
                    {
                      "id": "arm_00000000000000000000000000000001",
                      "is_control": true,
                      "label": "Live version",
                      "position": 0,
                      "version_id": "ver_00000000000000000000000000000001",
                      "version_number": 1,
                      "weight": 1
                    },
                    {
                      "id": "arm_00000000000000000000000000000002",
                      "is_control": false,
                      "label": "Variant B",
                      "position": 1,
                      "version_id": "ver_00000000000000000000000000000002",
                      "version_number": 2,
                      "weight": 1
                    }
                  ],
                  "created_at": "2026-09-16T12:00:00Z",
                  "decision_metric": "completion_rate",
                  "decision_option": "when_clear",
                  "fallback": "notify",
                  "id": "expt_7c9e6679742540de944be07fc1f90ae7",
                  "long_run_reminders": true,
                  "name": "Skip the email page",
                  "period": 0,
                  "period_reason": "started",
                  "protect_metrics": [],
                  "revenue_tiers": [
                    "added_from_quiz",
                    "shown_bought_later",
                    "bought_not_shown"
                  ],
                  "revision": 0,
                  "status": "draft",
                  "timezone": "UTC",
                  "updated_at": "2026-09-16T12:00:00Z",
                  "weekly_digest": true
                },
                "schema": {
                  "$ref": "#/components/schemas/ExperimentResponse"
                }
              }
            },
            "description": "The experiment after the action. Start and end require confirm: true."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "experiments:write"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "409": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "This test has ended.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 409,
                  "title": "conflict",
                  "type": "https://api.octaneai.com/errors/conflict"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "This test has ended."
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The variant must be a different version from the live one.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "invalid_experiment",
                  "type": "https://api.octaneai.com/errors/invalid_experiment"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The variant must be a different version from the live one."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "503": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Request limits cannot be checked right now; retry shortly",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 503,
                  "title": "limiter_unavailable",
                  "type": "https://api.octaneai.com/errors/limiter_unavailable"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Request limits cannot be checked right now; retry shortly."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Republish an experiment arm",
        "tags": [
          "experiments"
        ],
        "x-rate-class": "write",
        "x-scope": "experiments:write"
      }
    },
    "/v1/experiments/{experiment_id}/end": {
      "post": {
        "operationId": "experiment_end",
        "parameters": [
          {
            "in": "path",
            "name": "experiment_id",
            "required": true,
            "schema": {
              "title": "Experiment Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EndRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "ai_fallback": "when_clear",
                  "app_id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                  "arms": [
                    {
                      "id": "arm_00000000000000000000000000000001",
                      "is_control": true,
                      "label": "Live version",
                      "position": 0,
                      "version_id": "ver_00000000000000000000000000000001",
                      "version_number": 1,
                      "weight": 1
                    },
                    {
                      "id": "arm_00000000000000000000000000000002",
                      "is_control": false,
                      "label": "Variant B",
                      "position": 1,
                      "version_id": "ver_00000000000000000000000000000002",
                      "version_number": 2,
                      "weight": 1
                    }
                  ],
                  "created_at": "2026-09-16T12:00:00Z",
                  "decision_metric": "completion_rate",
                  "decision_option": "when_clear",
                  "fallback": "notify",
                  "id": "expt_7c9e6679742540de944be07fc1f90ae7",
                  "long_run_reminders": true,
                  "name": "Skip the email page",
                  "period": 0,
                  "period_reason": "started",
                  "protect_metrics": [],
                  "revenue_tiers": [
                    "added_from_quiz",
                    "shown_bought_later",
                    "bought_not_shown"
                  ],
                  "revision": 0,
                  "status": "draft",
                  "timezone": "UTC",
                  "updated_at": "2026-09-16T12:00:00Z",
                  "weekly_digest": true
                },
                "schema": {
                  "$ref": "#/components/schemas/ExperimentResponse"
                }
              }
            },
            "description": "The experiment after the action. Start and end require confirm: true."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "experiments:write"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "409": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A test that never started has no winner.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 409,
                  "title": "conflict",
                  "type": "https://api.octaneai.com/errors/conflict"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A test that never started has no winner."
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "That arm is not part of this test.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "invalid_experiment",
                  "type": "https://api.octaneai.com/errors/invalid_experiment"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "That arm is not part of this test."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "503": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Request limits cannot be checked right now; retry shortly",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 503,
                  "title": "limiter_unavailable",
                  "type": "https://api.octaneai.com/errors/limiter_unavailable"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Request limits cannot be checked right now; retry shortly."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "End an experiment, optionally publishing a winner",
        "tags": [
          "experiments"
        ],
        "x-rate-class": "write",
        "x-scope": "experiments:write"
      }
    },
    "/v1/experiments/{experiment_id}/results": {
      "get": {
        "operationId": "experiment_results",
        "parameters": [
          {
            "in": "path",
            "name": "experiment_id",
            "required": true,
            "schema": {
              "title": "Experiment Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "arms": [],
                  "as_of": "2026-09-16T12:00:00Z",
                  "attribution_line": "Orders can arrive up to 7 days after a visit, so the newest visits look poorer on both versions for now.",
                  "attribution_window_days": 7,
                  "changed_since": false,
                  "changes": [],
                  "events": [],
                  "experiment": {
                    "ai_fallback": "when_clear",
                    "app_id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                    "arms": [
                      {
                        "id": "arm_00000000000000000000000000000001",
                        "is_control": true,
                        "label": "Live version",
                        "position": 0,
                        "version_id": "ver_00000000000000000000000000000001",
                        "version_number": 1,
                        "weight": 1
                      },
                      {
                        "id": "arm_00000000000000000000000000000002",
                        "is_control": false,
                        "label": "Variant B",
                        "position": 1,
                        "version_id": "ver_00000000000000000000000000000002",
                        "version_number": 2,
                        "weight": 1
                      }
                    ],
                    "created_at": "2026-09-16T12:00:00Z",
                    "decision_metric": "completion_rate",
                    "decision_option": "when_clear",
                    "fallback": "notify",
                    "id": "expt_7c9e6679742540de944be07fc1f90ae7",
                    "long_run_reminders": true,
                    "name": "Skip the email page",
                    "period": 0,
                    "period_reason": "started",
                    "protect_metrics": [],
                    "revenue_tiers": [
                      "added_from_quiz",
                      "shown_bought_later",
                      "bought_not_shown"
                    ],
                    "revision": 0,
                    "status": "draft",
                    "timezone": "UTC",
                    "updated_at": "2026-09-16T12:00:00Z",
                    "weekly_digest": true
                  },
                  "explainer_keys": [
                    "views",
                    "starts",
                    "completions",
                    "completionRate",
                    "experimentLift",
                    "experimentInterval"
                  ],
                  "frozen": false,
                  "gates": [
                    {
                      "detail": "Completion rate is measured on both versions.",
                      "key": "decision_metric",
                      "label": "Decision metric",
                      "met": true
                    },
                    {
                      "detail": "168 hours to go.",
                      "key": "min_days",
                      "label": "7-day minimum",
                      "met": false
                    },
                    {
                      "detail": "No completions on either version yet.",
                      "key": "enough_data",
                      "label": "Enough data",
                      "met": false
                    },
                    {
                      "detail": "Not enough shoppers to check yet.",
                      "key": "split_health",
                      "label": "Split healthy",
                      "met": true
                    },
                    {
                      "detail": "No protected metric stands in the way.",
                      "key": "protected",
                      "label": "Protected metrics",
                      "met": true
                    }
                  ],
                  "header": {
                    "current_read": "No completions on either version yet.",
                    "day_line": "Day 1",
                    "next": "Publishes the winner at the first clear result, once the test starts.",
                    "testing": "Live version (v1) 50% vs Variant B (v2) 50%"
                  },
                  "metrics": [],
                  "periods": [],
                  "progress": {
                    "day": 1,
                    "line": "",
                    "observed": {
                      "control": 0,
                      "variant": 0
                    },
                    "tier": "min_days"
                  },
                  "protection": [],
                  "split": {
                    "expected": [
                      0.5,
                      0.5
                    ],
                    "expected_share": 0.5,
                    "latched": false,
                    "log_odds": 0.0,
                    "n": 0,
                    "surfaced": false,
                    "units_per_arm": [
                      0,
                      0
                    ]
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ExperimentResultsResponse"
                }
              }
            },
            "description": "The complete results, including decision evidence, gates, periods and attention context."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "experiments:read"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "503": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Request limits cannot be checked right now; retry shortly",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 503,
                  "title": "limiter_unavailable",
                  "type": "https://api.octaneai.com/errors/limiter_unavailable"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Request limits cannot be checked right now; retry shortly."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Read the complete experiment results",
        "tags": [
          "experiments"
        ],
        "x-rate-class": "analytics",
        "x-scope": "experiments:read"
      }
    },
    "/v1/experiments/{experiment_id}/start": {
      "post": {
        "operationId": "experiment_start",
        "parameters": [
          {
            "in": "path",
            "name": "experiment_id",
            "required": true,
            "schema": {
              "title": "Experiment Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "ai_fallback": "when_clear",
                  "app_id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                  "arms": [
                    {
                      "id": "arm_00000000000000000000000000000001",
                      "is_control": true,
                      "label": "Live version",
                      "position": 0,
                      "version_id": "ver_00000000000000000000000000000001",
                      "version_number": 1,
                      "weight": 1
                    },
                    {
                      "id": "arm_00000000000000000000000000000002",
                      "is_control": false,
                      "label": "Variant B",
                      "position": 1,
                      "version_id": "ver_00000000000000000000000000000002",
                      "version_number": 2,
                      "weight": 1
                    }
                  ],
                  "created_at": "2026-09-16T12:00:00Z",
                  "decision_metric": "completion_rate",
                  "decision_option": "when_clear",
                  "fallback": "notify",
                  "id": "expt_7c9e6679742540de944be07fc1f90ae7",
                  "long_run_reminders": true,
                  "name": "Skip the email page",
                  "period": 0,
                  "period_reason": "started",
                  "protect_metrics": [],
                  "revenue_tiers": [
                    "added_from_quiz",
                    "shown_bought_later",
                    "bought_not_shown"
                  ],
                  "revision": 0,
                  "status": "draft",
                  "timezone": "UTC",
                  "updated_at": "2026-09-16T12:00:00Z",
                  "weekly_digest": true
                },
                "schema": {
                  "$ref": "#/components/schemas/ExperimentResponse"
                }
              }
            },
            "description": "The experiment after the action. Start and end require confirm: true."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "experiments:write"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "409": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Only a draft test can be started.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 409,
                  "title": "conflict",
                  "type": "https://api.octaneai.com/errors/conflict"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Only a draft test can be started."
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Automatic decisions wait a full seven days, whatever the numbers look like earlier.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "invalid_experiment",
                  "type": "https://api.octaneai.com/errors/invalid_experiment"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Automatic decisions wait a full seven days, whatever the numbers look like earlier."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "503": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Request limits cannot be checked right now; retry shortly",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 503,
                  "title": "limiter_unavailable",
                  "type": "https://api.octaneai.com/errors/limiter_unavailable"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Request limits cannot be checked right now; retry shortly."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Start splitting shoppers",
        "tags": [
          "experiments"
        ],
        "x-rate-class": "write",
        "x-scope": "experiments:write"
      }
    },
    "/v1/exports": {
      "get": {
        "operationId": "exports_list",
        "parameters": [
          {
            "description": "From the previous page's nextCursor",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 200,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "From the previous page's nextCursor",
              "title": "Cursor"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 20,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [
                    {
                      "bytes": 58311,
                      "completed_at": "2026-09-01T12:00:09Z",
                      "dataset": "profiles",
                      "expires_at": "2026-10-01T12:00:00Z",
                      "filters": {
                        "from": "2026-08-01",
                        "quiz_id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                        "to": "2026-08-31"
                      },
                      "format": "csv",
                      "id": "exp_3f2504e04f8911d39a0c0305e82c3301",
                      "requested_at": "2026-09-01T12:00:00Z",
                      "row_count": 1240,
                      "source": "api",
                      "started_at": "2026-09-01T12:00:02Z",
                      "status": "completed",
                      "urls": {
                        "self": "https://api.octaneai.com/v1/exports/exp_3f2504e04f8911d39a0c0305e82c3301"
                      }
                    }
                  ],
                  "has_more": false
                },
                "schema": {
                  "$ref": "#/components/schemas/ExportList"
                }
              }
            },
            "description": "One page of the store's exports, newest first, without download links."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "any"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "List exports",
        "tags": [
          "exports"
        ],
        "x-rate-class": "read",
        "x-scope": "any"
      },
      "post": {
        "operationId": "export_create",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExportCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "example": {
                  "dataset": "profiles",
                  "expires_at": "2026-10-01T12:00:00Z",
                  "filters": {
                    "from": "2026-08-01",
                    "quiz_id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                    "to": "2026-08-31"
                  },
                  "format": "csv",
                  "id": "exp_3f2504e04f8911d39a0c0305e82c3301",
                  "requested_at": "2026-09-01T12:00:00Z",
                  "source": "api",
                  "status": "pending",
                  "urls": {
                    "self": "https://api.octaneai.com/v1/exports/exp_3f2504e04f8911d39a0c0305e82c3301"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ExportSummary"
                }
              }
            },
            "description": "The export is queued. Poll urls.self until status is completed, then follow download_url.",
            "headers": {
              "Location": {
                "example": "https://api.octaneai.com/v1/exports/exp_3f2504e04f8911d39a0c0305e82c3301",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "profiles:read | analytics:read"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "409": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "An export of this dataset is already being built; wait for it to finish",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 409,
                  "title": "conflict",
                  "type": "https://api.octaneai.com/errors/conflict"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "An export of this dataset is still being built; wait for it to finish."
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "503": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Request limits cannot be checked right now; retry shortly",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 503,
                  "title": "limiter_unavailable",
                  "type": "https://api.octaneai.com/errors/limiter_unavailable"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Request limits cannot be checked right now; retry shortly."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Request an export",
        "tags": [
          "exports"
        ],
        "x-rate-class": "write",
        "x-scope": "profiles:read | analytics:read"
      }
    },
    "/v1/exports/{export_id}": {
      "get": {
        "operationId": "export_get",
        "parameters": [
          {
            "in": "path",
            "name": "export_id",
            "required": true,
            "schema": {
              "title": "Export Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "bytes": 58311,
                  "completed_at": "2026-09-01T12:00:09Z",
                  "dataset": "profiles",
                  "download_url": "https://octaneai-api-exports.s3.amazonaws.com/exports/...?X-Amz-Expires=900&...",
                  "download_url_expires_at": "2026-09-01T12:15:09Z",
                  "expires_at": "2026-10-01T12:00:00Z",
                  "filters": {
                    "from": "2026-08-01",
                    "quiz_id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                    "to": "2026-08-31"
                  },
                  "format": "csv",
                  "id": "exp_3f2504e04f8911d39a0c0305e82c3301",
                  "requested_at": "2026-09-01T12:00:00Z",
                  "row_count": 1240,
                  "source": "api",
                  "started_at": "2026-09-01T12:00:02Z",
                  "status": "completed",
                  "urls": {
                    "self": "https://api.octaneai.com/v1/exports/exp_3f2504e04f8911d39a0c0305e82c3301"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ExportSummary"
                }
              }
            },
            "description": "The export; while completed, a download link fresh for 15 minutes. Never cached."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "profiles:read | analytics:read"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Get an export and its download link",
        "tags": [
          "exports"
        ],
        "x-rate-class": "read",
        "x-scope": "profiles:read | analytics:read"
      }
    },
    "/v1/profiles": {
      "get": {
        "operationId": "profiles_list",
        "parameters": [
          {
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 320,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Q"
            }
          },
          {
            "description": "From the previous page's nextCursor",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 200,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "From the previous page's nextCursor",
              "title": "Cursor"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 20,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "quiz_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Quiz Id"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "From"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "To"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [
                    {
                      "completed_count": 1,
                      "email": "shopper@example.com",
                      "first_seen_at": "2026-09-01T12:00:00Z",
                      "id": "prof_50e1b7e458f14dfca7a2a5b971af2821",
                      "last_order_at": "2026-09-01T12:40:00Z",
                      "last_seen_at": "2026-09-01T12:00:00Z",
                      "orders_count": 1,
                      "phone": "+14155552671",
                      "quizzes": [
                        {
                          "id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                          "name": "Find your routine"
                        }
                      ],
                      "removed": false,
                      "returning": false,
                      "sessions_count": 1,
                      "shopify_customer_id": "gid://shopify/Customer/7208153301032",
                      "spent": {
                        "amount": "79.97",
                        "currency": "USD"
                      }
                    }
                  ],
                  "has_more": false,
                  "returning_total": 0,
                  "total": 1
                },
                "schema": {
                  "$ref": "#/components/schemas/ProfileList"
                }
              }
            },
            "description": "One page of shopper profiles. Contact data requires profiles:read and is never cached."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "profiles:read"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "List or find shopper profiles",
        "tags": [
          "profiles"
        ],
        "x-rate-class": "read",
        "x-scope": "profiles:read"
      }
    },
    "/v1/profiles/search": {
      "post": {
        "operationId": "profiles_search",
        "parameters": [
          {
            "description": "From the previous page's next_cursor",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 200,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "From the previous page's next_cursor",
              "title": "Cursor"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 20,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProfileSearch",
                "examples": [
                  {
                    "groups": [
                      {
                        "all": [
                          {
                            "component_key": "image_choice-48su5",
                            "kind": "choice",
                            "op": "in",
                            "option_labels": [
                              "Dry"
                            ],
                            "page_key": "skin",
                            "quiz_id": "quiz_7c9e6679742540de944be07fc1f90ae7"
                          },
                          {
                            "component_key": "number_input-re853",
                            "kind": "number",
                            "max": 50,
                            "min": 30,
                            "op": "between",
                            "page_key": "skin",
                            "quiz_id": "quiz_7c9e6679742540de944be07fc1f90ae7"
                          }
                        ]
                      },
                      {
                        "all": [
                          {
                            "dimension_id": "dry",
                            "kind": "points",
                            "op": "gt",
                            "quiz_id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                            "value": 10
                          }
                        ]
                      }
                    ],
                    "match": "any_session"
                  },
                  {
                    "groups": [
                      {
                        "all": [
                          {
                            "component_key": "image_choice-48su5",
                            "kind": "choice",
                            "op": "in",
                            "option_labels": [
                              "Dry"
                            ],
                            "page_key": "skin",
                            "quiz_id": "quiz_7c9e6679742540de944be07fc1f90ae7"
                          },
                          {
                            "any": [
                              {
                                "component_key": "number_input-re853",
                                "kind": "number",
                                "op": "gt",
                                "page_key": "skin",
                                "quiz_id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                                "value": 40
                              },
                              {
                                "component_key": "text_input-9k2ma",
                                "kind": "text",
                                "op": "contains",
                                "page_key": "skin",
                                "quiz_id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                                "value": "eczema"
                              }
                            ]
                          }
                        ]
                      }
                    ],
                    "match": "any_session"
                  }
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [
                    {
                      "completed_count": 1,
                      "email": "shopper@example.com",
                      "first_seen_at": "2026-09-01T12:00:00Z",
                      "id": "prof_50e1b7e458f14dfca7a2a5b971af2821",
                      "last_order_at": "2026-09-01T12:40:00Z",
                      "last_seen_at": "2026-09-01T12:00:00Z",
                      "orders_count": 1,
                      "phone": "+14155552671",
                      "quizzes": [
                        {
                          "id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                          "name": "Find your routine"
                        }
                      ],
                      "removed": false,
                      "returning": false,
                      "sessions_count": 1,
                      "shopify_customer_id": "gid://shopify/Customer/7208153301032",
                      "spent": {
                        "amount": "79.97",
                        "currency": "USD"
                      }
                    }
                  ],
                  "has_more": false,
                  "returning_total": 0,
                  "total": 1,
                  "total_capped": false
                },
                "schema": {
                  "$ref": "#/components/schemas/ProfileList"
                }
              }
            },
            "description": "One page of the matching profiles, newest last-seen first; total is exact up to 5,000 and total_capped says when it stopped there."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "profiles:read"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Find shopper profiles by what they answered",
        "tags": [
          "profiles"
        ],
        "x-rate-class": "search",
        "x-scope": "profiles:read"
      }
    },
    "/v1/profiles/{profile_id}": {
      "get": {
        "operationId": "profile_get",
        "parameters": [
          {
            "in": "path",
            "name": "profile_id",
            "required": true,
            "schema": {
              "title": "Profile Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "completed_count": 1,
                  "first_seen_at": "2026-09-01T12:00:00Z",
                  "id": "prof_50e1b7e458f14dfca7a2a5b971af2821",
                  "identities": [
                    {
                      "consent": true,
                      "first_seen_at": "2026-09-01T12:00:00Z",
                      "kind": "email",
                      "last_seen_at": "2026-09-01T12:00:00Z",
                      "value": "shopper@example.com"
                    },
                    {
                      "consent": false,
                      "first_seen_at": "2026-09-01T12:00:00Z",
                      "kind": "phone",
                      "value": "+14155552671"
                    },
                    {
                      "consent": false,
                      "first_seen_at": "2026-09-01T12:00:00Z",
                      "kind": "shopify_customer_id",
                      "last_seen_at": "2026-09-01T12:00:00Z",
                      "value": "gid://shopify/Customer/7208153301032"
                    }
                  ],
                  "last_order_at": "2026-09-01T12:40:00Z",
                  "last_seen_at": "2026-09-01T12:00:00Z",
                  "latest_results": [
                    {
                      "answers": [
                        {
                          "component_key": "image_choice-48su5",
                          "image_urls": [
                            "https://cdn.shopify.com/s/files/1/0001/skin-dry.jpg"
                          ],
                          "kind": "image",
                          "page_key": "skin",
                          "page_title": "Your skin",
                          "question": "Skin type?",
                          "removed": false,
                          "value": "dry",
                          "values": [
                            "Dry"
                          ]
                        },
                        {
                          "component_key": "number_input-re853",
                          "image_urls": [],
                          "kind": "number",
                          "page_key": "skin",
                          "page_title": "Your skin",
                          "question": "Your age",
                          "removed": false,
                          "value": 42,
                          "values": [
                            "42"
                          ]
                        },
                        {
                          "component_key": "email_input-abc12",
                          "image_urls": [],
                          "kind": "email",
                          "page_key": "contact",
                          "page_title": "Stay in touch",
                          "question": "Email",
                          "removed": false,
                          "value": "shopper@example.com",
                          "values": [
                            "shopper@example.com"
                          ]
                        }
                      ],
                      "completed_at": "2026-09-01T12:04:00Z",
                      "formulas": [
                        {
                          "component_key": "formula-tidtk",
                          "kind": "formula",
                          "label": "Hydration score",
                          "page_key": "result",
                          "value": 72
                        },
                        {
                          "component_key": "value_table-k3x9q",
                          "kind": "table",
                          "label": "Shade",
                          "page_key": "result",
                          "value_text": "Honey 11"
                        }
                      ],
                      "points": [
                        {
                          "dimension_id": "dry",
                          "name": "Dry",
                          "total": 14
                        },
                        {
                          "dimension_id": "oily",
                          "name": "Oily",
                          "total": 6
                        }
                      ],
                      "points_total": 20,
                      "quiz_id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                      "quiz_name": "Find your routine",
                      "result_page": {
                        "page_count": 3,
                        "page_key": "result",
                        "position": 3,
                        "shown_products": [
                          {
                            "block_key": "products-k3x9q",
                            "currency": "USD",
                            "handle": "hydrating-serum",
                            "image": "https://cdn.shopify.com/s/files/1/0001/serum.jpg",
                            "price": 39.0,
                            "product_id": "gid://shopify/Product/8692896989320",
                            "title": "Hydrating Serum",
                            "variant_id": "gid://shopify/ProductVariant/40926435967056",
                            "variant_title": "30 ml"
                          }
                        ],
                        "title": "Your match"
                      },
                      "results_url": "https://shop.example.com/pages/find-your-routine#pqs=sess_9b2d4a5e6f7a4b8c9d0e1f2a3b4c5d6e",
                      "session_id": "sess_9b2d4a5e6f7a4b8c9d0e1f2a3b4c5d6e",
                      "started_at": "2026-09-01T12:00:00Z",
                      "version_number": 2,
                      "winner": {
                        "dimension_id": "dry",
                        "name": "Dry",
                        "total": 14
                      }
                    }
                  ],
                  "orders": [
                    {
                      "amount": {
                        "amount": "79.97",
                        "currency": "USD"
                      },
                      "created_at": "2026-09-01T12:40:00Z",
                      "matched_tier": "line_item_property",
                      "order_id": "5820135686408",
                      "order_name": "#1042",
                      "quiz_id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                      "quiz_name": "Find your routine",
                      "session_id": "sess_9b2d4a5e6f7a4b8c9d0e1f2a3b4c5d6e"
                    }
                  ],
                  "orders_count": 1,
                  "quizzes_taken_count": 1,
                  "removed": false,
                  "returning": false,
                  "returning_count": 0,
                  "sessions": [
                    {
                      "channel": "email",
                      "completed_at": "2026-09-01T12:04:00Z",
                      "country": "US",
                      "device_class": "mobile",
                      "ended_at": "2026-09-01T12:04:00Z",
                      "last_open_channel": "organic_social",
                      "last_opened_at": "2026-09-02T09:15:00Z",
                      "last_page_key": "result",
                      "last_page_position": 3,
                      "last_page_title": "Your match",
                      "opens": 2,
                      "order": {
                        "amount": {
                          "amount": "79.97",
                          "currency": "USD"
                        },
                        "created_at": "2026-09-01T12:40:00Z",
                        "matched_tier": "line_item_property",
                        "minutes_after": 36,
                        "order_id": "5820135686408",
                        "order_name": "#1042"
                      },
                      "page_count": 3,
                      "pages_visited": 3,
                      "quiz_id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                      "quiz_name": "Find your routine",
                      "results_url": "https://shop.example.com/pages/find-your-routine#pqs=sess_9b2d4a5e6f7a4b8c9d0e1f2a3b4c5d6e",
                      "returning": false,
                      "session_id": "sess_9b2d4a5e6f7a4b8c9d0e1f2a3b4c5d6e",
                      "started_at": "2026-09-01T12:00:00Z",
                      "status": "completed",
                      "version_number": 2
                    }
                  ],
                  "sessions_count": 1,
                  "share_orders": [
                    {
                      "amount": {
                        "amount": "54.00",
                        "currency": "USD"
                      },
                      "buyer_person_id": "prof_6a1f0c9d2e3b4a5c8d7e6f5a4b3c2d1e",
                      "created_at": "2026-09-02T10:02:00Z",
                      "matched_tier": "cart_attribute",
                      "order_id": "5820135686501",
                      "order_name": "#1057",
                      "quiz_id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                      "quiz_name": "Find your routine",
                      "session_id": "sess_2f6c1d0e4b7a4c5d8e9f0a1b2c3d4e5f",
                      "via": "retake"
                    }
                  ],
                  "spent": {
                    "amount": "79.97",
                    "currency": "USD"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProfileDetail"
                }
              }
            },
            "description": "The shopper's identities, latest answers and results, sessions, and linked orders."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "profiles:read"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Get a shopper profile",
        "tags": [
          "profiles"
        ],
        "x-rate-class": "read",
        "x-scope": "profiles:read"
      }
    },
    "/v1/quizzes": {
      "get": {
        "operationId": "quizzes_list",
        "parameters": [
          {
            "description": "From the previous page's nextCursor",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 200,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "From the previous page's nextCursor",
              "title": "Cursor"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 20,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "draft",
                    "published"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "in": "query",
            "name": "archived",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Archived"
            }
          },
          {
            "description": "The record kind: quiz | popup | all",
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "default": "quiz",
              "description": "The record kind: quiz | popup | all",
              "enum": [
                "quiz",
                "popup",
                "all"
              ],
              "title": "Kind",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "include",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "const": "latest_version",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Include"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [
                    {
                      "archived": false,
                      "created_at": "2026-09-01T12:00:00Z",
                      "id": "quiz_2ccb8aebb27c463fa783cafb3bf858e0",
                      "kind": "quiz",
                      "latest_version": {
                        "created_at": "2026-09-01T12:00:00Z",
                        "id": "ver_15ce0be06b904d0180b1155da02a6c6f",
                        "label": "Autumn launch",
                        "number": 2,
                        "page_count": 3,
                        "published": true,
                        "quiz_id": "quiz_2ccb8aebb27c463fa783cafb3bf858e0"
                      },
                      "name": "Skin routine finder",
                      "page_count": 3,
                      "published_version": "ver_15ce0be06b904d0180b1155da02a6c6f",
                      "status": "published",
                      "updated_at": "2026-09-03T09:00:00Z",
                      "urls": {
                        "dashboard": "https://editor.octaneai.com/bot_123/editor/quiz_2ccb8aebb27c463fa783cafb3bf858e0",
                        "self": "https://api.octaneai.com/v1/quizzes/quiz_2ccb8aebb27c463fa783cafb3bf858e0",
                        "versions": "https://api.octaneai.com/v1/quizzes/quiz_2ccb8aebb27c463fa783cafb3bf858e0/versions"
                      }
                    },
                    {
                      "archived": false,
                      "created_at": "2026-09-01T12:00:00Z",
                      "id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                      "kind": "quiz",
                      "name": "Find your routine",
                      "page_count": 3,
                      "status": "draft",
                      "updated_at": "2026-09-01T12:00:00Z",
                      "urls": {
                        "dashboard": "https://editor.octaneai.com/bot_123/editor/quiz_7c9e6679742540de944be07fc1f90ae7",
                        "self": "https://api.octaneai.com/v1/quizzes/quiz_7c9e6679742540de944be07fc1f90ae7",
                        "versions": "https://api.octaneai.com/v1/quizzes/quiz_7c9e6679742540de944be07fc1f90ae7/versions"
                      }
                    }
                  ],
                  "has_more": true,
                  "next_cursor": "eyJhdCI6IjIwMjYtMDktMDFUMTI6MDA6MDBaIiwiaWQiOiI3YzllNjY3OSJ9"
                },
                "schema": {
                  "$ref": "#/components/schemas/QuizList"
                }
              }
            },
            "description": "One page of quiz summaries. include=latest_version adds the latest saved version."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "quizzes:read"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "List quizzes",
        "tags": [
          "quizzes"
        ],
        "x-rate-class": "read",
        "x-scope": "quizzes:read"
      }
    },
    "/v1/quizzes/{quiz_id}": {
      "delete": {
        "operationId": "quiz_delete",
        "parameters": [
          {
            "in": "path",
            "name": "quiz_id",
            "required": true,
            "schema": {
              "title": "Quiz Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The quiz was soft-deleted."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "quizzes:write"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "503": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Request limits cannot be checked right now; retry shortly",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 503,
                  "title": "limiter_unavailable",
                  "type": "https://api.octaneai.com/errors/limiter_unavailable"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Request limits cannot be checked right now; retry shortly."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Soft-delete a quiz",
        "tags": [
          "quizzes"
        ],
        "x-rate-class": "write",
        "x-scope": "quizzes:write"
      },
      "get": {
        "operationId": "quiz_get",
        "parameters": [
          {
            "in": "path",
            "name": "quiz_id",
            "required": true,
            "schema": {
              "title": "Quiz Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "archived": false,
                  "created_at": "2026-09-01T12:00:00Z",
                  "id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                  "kind": "quiz",
                  "name": "Find your routine",
                  "page_count": 3,
                  "status": "draft",
                  "structure": {
                    "dimensions": [
                      {
                        "dimension_id": "dry",
                        "label": "Dry skin"
                      },
                      {
                        "dimension_id": "oily",
                        "label": "Oily skin"
                      }
                    ],
                    "page_count": 3,
                    "pages": [
                      {
                        "component_count": 0,
                        "page_key": "welcome",
                        "role": "start",
                        "title": "Find your routine"
                      },
                      {
                        "component_count": 2,
                        "components": [
                          {
                            "component_key": "multi_choice-k3x9q",
                            "kind": "choice_single",
                            "label": "How does your skin feel by noon?",
                            "option_count": 2,
                            "options": [
                              {
                                "label": "Tight",
                                "option_id": "b1f4d2e0-6c3a-4f0e-9b2a-1d5c7e8f9a01",
                                "scores": [
                                  "dry"
                                ]
                              },
                              {
                                "label": "Shiny",
                                "option_id": "c2a5e3f1-7d4b-4a1f-8c3b-2e6d8f9a0b12",
                                "scores": [
                                  "oily"
                                ]
                              }
                            ],
                            "required": true,
                            "type": "Multiple Choice"
                          },
                          {
                            "component_key": "sliders-p8m2t",
                            "kind": "slider",
                            "label": "How many products do you use?",
                            "range": {
                              "max": 10,
                              "min": 1,
                              "step": 1
                            },
                            "required": true,
                            "type": "Slider"
                          }
                        ],
                        "jumps": [
                          {
                            "condition": {
                              "=": [
                                {
                                  "var": "multi_choice-k3x9q"
                                },
                                "tight"
                              ]
                            },
                            "rule_key": "jump_1",
                            "target_page_key": "results"
                          }
                        ],
                        "page_key": "skin",
                        "role": "question",
                        "title": "Your skin"
                      },
                      {
                        "component_count": 2,
                        "components": [
                          {
                            "component_key": "heading-v7r1c",
                            "kind": "copy",
                            "label": "Your routine",
                            "type": "Heading"
                          },
                          {
                            "component_key": "shopify_product_block-a4n8s",
                            "kind": "products",
                            "label": "Products",
                            "product_source": "points",
                            "type": "Products"
                          }
                        ],
                        "page_key": "results",
                        "role": "results",
                        "title": "Your routine"
                      }
                    ]
                  },
                  "updated_at": "2026-09-01T12:00:00Z",
                  "urls": {
                    "dashboard": "https://editor.octaneai.com/bot_123/editor/quiz_7c9e6679742540de944be07fc1f90ae7",
                    "self": "https://api.octaneai.com/v1/quizzes/quiz_7c9e6679742540de944be07fc1f90ae7",
                    "versions": "https://api.octaneai.com/v1/quizzes/quiz_7c9e6679742540de944be07fc1f90ae7/versions"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/QuizDetail"
                }
              }
            },
            "description": "The quiz summary and its structure: pages in order with their role, content components, rules and jumps, and the scoring dimensions. Never the quiz document; null and empty fields are left out."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "quizzes:read"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Get a quiz",
        "tags": [
          "quizzes"
        ],
        "x-rate-class": "read",
        "x-scope": "quizzes:read"
      }
    },
    "/v1/quizzes/{quiz_id}/analytics/answers": {
      "get": {
        "operationId": "quiz_analytics_answers",
        "parameters": [
          {
            "in": "path",
            "name": "quiz_id",
            "required": true,
            "schema": {
              "title": "Quiz Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "component_key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 200,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Component Key"
            }
          },
          {
            "description": "First day, inclusive, in tz; 29 days before `to` when absent",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "First day, inclusive, in tz; 29 days before `to` when absent",
              "title": "From"
            }
          },
          {
            "description": "Last day, inclusive, in tz; today when absent",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Last day, inclusive, in tz; today when absent",
              "title": "To"
            }
          },
          {
            "in": "query",
            "name": "tz",
            "required": false,
            "schema": {
              "default": "UTC",
              "maxLength": 64,
              "title": "Tz",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "channel",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Channel"
            }
          },
          {
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Device"
            }
          },
          {
            "in": "query",
            "name": "new_returning",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "New Returning"
            }
          },
          {
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Country"
            }
          },
          {
            "in": "header",
            "name": "if-none-match",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 1024,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "If-None-Match"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "answered": 5,
                  "buckets": [],
                  "currency": "USD",
                  "filters": {},
                  "freshness": {
                    "as_of": "2026-09-07T12:00:00Z",
                    "closed_days_through": "2026-09-06",
                    "next_refresh_at": "2026-09-07T13:00:00Z",
                    "pending": false,
                    "stale": false,
                    "today_live": true
                  },
                  "options": [
                    {
                      "answer_orders": 1,
                      "answer_revenue": {
                        "amount": "12.50",
                        "currency": "USD"
                      },
                      "buyer_rate": 50.0,
                      "buyers": 1,
                      "chose": 3,
                      "chose_share": 60.0,
                      "completed": 2,
                      "completion_rate": 66.67,
                      "image_url": "https://cdn.shopify.com/s/files/1/0001/skin-dry.jpg",
                      "kind": "image",
                      "label": "Dry",
                      "opt_in_rate": 50.0,
                      "opted_in": 1,
                      "option_id": "opt-1",
                      "removed": false
                    }
                  ],
                  "question": {
                    "component_key": "choice-abc12",
                    "kind": "choice",
                    "page_key": "skin",
                    "page_title": "Skin",
                    "question": "Skin type?"
                  },
                  "questions": [
                    {
                      "component_key": "choice-abc12",
                      "kind": "choice",
                      "page_key": "skin",
                      "page_title": "Skin",
                      "question": "Skin type?"
                    }
                  ],
                  "quiz_id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                  "range": {
                    "days": 7,
                    "end": "2026-09-07",
                    "start": "2026-09-01",
                    "timezone": "UTC"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/AnalyticsAnswers"
                }
              }
            },
            "description": "Analytics for the range. ETag identifies the cached response.",
            "headers": {
              "ETag": {
                "example": "\"5a23d8\"",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "304": {
            "description": "If-None-Match matches the cached response; no body is sent.",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "analytics:read"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "503": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "detail": "A backing service is temporarily unavailable; retry shortly",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "retry_after": 2,
                      "status": 503,
                      "title": "dependency_unavailable",
                      "type": "https://api.octaneai.com/errors/dependency_unavailable"
                    }
                  },
                  "limiter_unavailable": {
                    "value": {
                      "detail": "Request limits cannot be checked right now; retry shortly",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "retry_after": 2,
                      "status": 503,
                      "title": "limiter_unavailable",
                      "type": "https://api.octaneai.com/errors/limiter_unavailable"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Request limits could not be checked for the body, or the store's details could not be read."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Quiz answer conversion",
        "tags": [
          "analytics"
        ],
        "x-rate-class": "analytics",
        "x-scope": "analytics:read"
      }
    },
    "/v1/quizzes/{quiz_id}/analytics/breakdown": {
      "get": {
        "operationId": "quiz_analytics_breakdown",
        "parameters": [
          {
            "in": "path",
            "name": "quiz_id",
            "required": true,
            "schema": {
              "title": "Quiz Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "by",
            "required": true,
            "schema": {
              "enum": [
                "channel",
                "device",
                "new_returning",
                "country"
              ],
              "title": "By",
              "type": "string"
            }
          },
          {
            "description": "First day, inclusive, in tz; 29 days before `to` when absent",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "First day, inclusive, in tz; 29 days before `to` when absent",
              "title": "From"
            }
          },
          {
            "description": "Last day, inclusive, in tz; today when absent",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Last day, inclusive, in tz; today when absent",
              "title": "To"
            }
          },
          {
            "in": "query",
            "name": "tz",
            "required": false,
            "schema": {
              "default": "UTC",
              "maxLength": 64,
              "title": "Tz",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "channel",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Channel"
            }
          },
          {
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Device"
            }
          },
          {
            "in": "query",
            "name": "new_returning",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "New Returning"
            }
          },
          {
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Country"
            }
          },
          {
            "in": "header",
            "name": "if-none-match",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 1024,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "If-None-Match"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "by": "channel",
                  "filters": {},
                  "freshness": {
                    "as_of": "2026-09-07T12:00:00Z",
                    "closed_days_through": "2026-09-06",
                    "next_refresh_at": "2026-09-07T13:00:00Z",
                    "pending": false,
                    "stale": false,
                    "today_live": true
                  },
                  "quiz_id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                  "range": {
                    "days": 7,
                    "end": "2026-09-07",
                    "start": "2026-09-01",
                    "timezone": "UTC"
                  },
                  "rows": [
                    {
                      "completions": 5,
                      "email_opt_ins": 2,
                      "phone_opt_ins": 1,
                      "starts": 8,
                      "unique_viewers_approx": 9,
                      "value": "direct",
                      "views": 10
                    }
                  ]
                },
                "schema": {
                  "$ref": "#/components/schemas/AnalyticsBreakdown"
                }
              }
            },
            "description": "Analytics for the range. ETag identifies the cached response.",
            "headers": {
              "ETag": {
                "example": "\"5a23d8\"",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "304": {
            "description": "If-None-Match matches the cached response; no body is sent.",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "analytics:read"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "503": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "detail": "A backing service is temporarily unavailable; retry shortly",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "retry_after": 2,
                      "status": 503,
                      "title": "dependency_unavailable",
                      "type": "https://api.octaneai.com/errors/dependency_unavailable"
                    }
                  },
                  "limiter_unavailable": {
                    "value": {
                      "detail": "Request limits cannot be checked right now; retry shortly",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "retry_after": 2,
                      "status": 503,
                      "title": "limiter_unavailable",
                      "type": "https://api.octaneai.com/errors/limiter_unavailable"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Request limits could not be checked for the body, or the store's details could not be read."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Quiz analytics by dimension",
        "tags": [
          "analytics"
        ],
        "x-rate-class": "analytics",
        "x-scope": "analytics:read"
      }
    },
    "/v1/quizzes/{quiz_id}/analytics/funnel": {
      "get": {
        "operationId": "quiz_analytics_funnel",
        "parameters": [
          {
            "in": "path",
            "name": "quiz_id",
            "required": true,
            "schema": {
              "title": "Quiz Id",
              "type": "string"
            }
          },
          {
            "description": "First day, inclusive, in tz; 29 days before `to` when absent",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "First day, inclusive, in tz; 29 days before `to` when absent",
              "title": "From"
            }
          },
          {
            "description": "Last day, inclusive, in tz; today when absent",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Last day, inclusive, in tz; today when absent",
              "title": "To"
            }
          },
          {
            "in": "query",
            "name": "tz",
            "required": false,
            "schema": {
              "default": "UTC",
              "maxLength": 64,
              "title": "Tz",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "channel",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Channel"
            }
          },
          {
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Device"
            }
          },
          {
            "in": "query",
            "name": "new_returning",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "New Returning"
            }
          },
          {
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Country"
            }
          },
          {
            "in": "header",
            "name": "if-none-match",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 1024,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "If-None-Match"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "completions": 7,
                  "filters": {},
                  "freshness": {
                    "as_of": "2026-09-07T12:00:00Z",
                    "closed_days_through": "2026-09-06",
                    "next_refresh_at": "2026-09-07T13:00:00Z",
                    "pending": false,
                    "stale": false,
                    "today_live": true
                  },
                  "in_progress": 0,
                  "not_started": 2,
                  "pages": [
                    {
                      "avg_time_on_page_ms": 5000.0,
                      "dropped_share_of_starts": 12.5,
                      "page_key": "welcome",
                      "removed": false,
                      "sessions_continued": 7,
                      "sessions_dropped": 1,
                      "sessions_reached": 8,
                      "sessions_reached_by_jump": 0,
                      "sessions_skipped": 0,
                      "sessions_went_back": 0,
                      "title": "Welcome"
                    }
                  ],
                  "quiz_id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                  "range": {
                    "days": 7,
                    "end": "2026-09-07",
                    "start": "2026-09-01",
                    "timezone": "UTC"
                  },
                  "starts": 8,
                  "views": 10
                },
                "schema": {
                  "$ref": "#/components/schemas/AnalyticsFunnel"
                }
              }
            },
            "description": "Analytics for the range. ETag identifies the cached response.",
            "headers": {
              "ETag": {
                "example": "\"5a23d8\"",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "304": {
            "description": "If-None-Match matches the cached response; no body is sent.",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "analytics:read"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "503": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "detail": "A backing service is temporarily unavailable; retry shortly",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "retry_after": 2,
                      "status": 503,
                      "title": "dependency_unavailable",
                      "type": "https://api.octaneai.com/errors/dependency_unavailable"
                    }
                  },
                  "limiter_unavailable": {
                    "value": {
                      "detail": "Request limits cannot be checked right now; retry shortly",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "retry_after": 2,
                      "status": 503,
                      "title": "limiter_unavailable",
                      "type": "https://api.octaneai.com/errors/limiter_unavailable"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Request limits could not be checked for the body, or the store's details could not be read."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Quiz completion funnel",
        "tags": [
          "analytics"
        ],
        "x-rate-class": "analytics",
        "x-scope": "analytics:read"
      }
    },
    "/v1/quizzes/{quiz_id}/analytics/image_analysis": {
      "get": {
        "description": "What became of the photos shoppers sent to each Image analysis block of the quiz: the visits\nthat reached the block's page, sent a photo and had one read, the photos by outcome, the photos\nthat used credits and the checks photos failed. Ranges are capped at 92 days.",
        "operationId": "quiz_analytics_image_analysis",
        "parameters": [
          {
            "in": "path",
            "name": "quiz_id",
            "required": true,
            "schema": {
              "title": "Quiz Id",
              "type": "string"
            }
          },
          {
            "description": "First day, inclusive, in tz; 29 days before `to` when absent",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "First day, inclusive, in tz; 29 days before `to` when absent",
              "title": "From"
            }
          },
          {
            "description": "Last day, inclusive, in tz; today when absent",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Last day, inclusive, in tz; today when absent",
              "title": "To"
            }
          },
          {
            "in": "query",
            "name": "tz",
            "required": false,
            "schema": {
              "default": "UTC",
              "maxLength": 64,
              "title": "Tz",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "channel",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Channel"
            }
          },
          {
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Device"
            }
          },
          {
            "in": "query",
            "name": "new_returning",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "New Returning"
            }
          },
          {
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Country"
            }
          },
          {
            "in": "header",
            "name": "if-none-match",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 1024,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "If-None-Match"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "blocks": [
                    {
                      "attempts": 104,
                      "charged_reads": 98,
                      "component_key": "dog_photo",
                      "failed_checks": [
                        {
                          "check": "its whole body",
                          "current": true,
                          "retake_share": 70.0,
                          "retakes": 21
                        },
                        {
                          "check": "a sharp image",
                          "current": false,
                          "retake_share": 30.0,
                          "retakes": 9
                        }
                      ],
                      "label": "Dog photo",
                      "page_key": "dog",
                      "page_title": "Your dog",
                      "read_rate": 80.0,
                      "reads": 66,
                      "refused": 2,
                      "removed": false,
                      "retake_rate": 28.85,
                      "retakes": 30,
                      "send_rate": 66.67,
                      "sessions_reached": 120,
                      "sessions_read": 64,
                      "sessions_sent": 80,
                      "unavailable": 6
                    }
                  ],
                  "filters": {},
                  "freshness": {
                    "as_of": "2026-09-07T12:00:00Z",
                    "closed_days_through": "2026-09-06",
                    "next_refresh_at": "2026-09-07T13:00:00Z",
                    "pending": false,
                    "stale": false,
                    "today_live": true
                  },
                  "quiz_id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                  "range": {
                    "days": 7,
                    "end": "2026-09-07",
                    "start": "2026-09-01",
                    "timezone": "UTC"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/AnalyticsImageAnalysis"
                }
              }
            },
            "description": "Analytics for the range. ETag identifies the cached response.",
            "headers": {
              "ETag": {
                "example": "\"5a23d8\"",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "304": {
            "description": "If-None-Match matches the cached response; no body is sent.",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "analytics:read"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "503": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "detail": "A backing service is temporarily unavailable; retry shortly",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "retry_after": 2,
                      "status": 503,
                      "title": "dependency_unavailable",
                      "type": "https://api.octaneai.com/errors/dependency_unavailable"
                    }
                  },
                  "limiter_unavailable": {
                    "value": {
                      "detail": "Request limits cannot be checked right now; retry shortly",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "retry_after": 2,
                      "status": 503,
                      "title": "limiter_unavailable",
                      "type": "https://api.octaneai.com/errors/limiter_unavailable"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Request limits could not be checked for the body, or the store's details could not be read."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Quiz image analysis",
        "tags": [
          "analytics"
        ],
        "x-rate-class": "analytics",
        "x-scope": "analytics:read"
      }
    },
    "/v1/quizzes/{quiz_id}/analytics/overview": {
      "get": {
        "operationId": "quiz_analytics_overview",
        "parameters": [
          {
            "in": "path",
            "name": "quiz_id",
            "required": true,
            "schema": {
              "title": "Quiz Id",
              "type": "string"
            }
          },
          {
            "description": "First day, inclusive, in tz; 29 days before `to` when absent",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "First day, inclusive, in tz; 29 days before `to` when absent",
              "title": "From"
            }
          },
          {
            "description": "Last day, inclusive, in tz; today when absent",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Last day, inclusive, in tz; today when absent",
              "title": "To"
            }
          },
          {
            "in": "query",
            "name": "tz",
            "required": false,
            "schema": {
              "default": "UTC",
              "maxLength": 64,
              "title": "Tz",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "channel",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Channel"
            }
          },
          {
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Device"
            }
          },
          {
            "in": "query",
            "name": "new_returning",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "New Returning"
            }
          },
          {
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Country"
            }
          },
          {
            "description": "The points of `series`: day (ranges of 366 days or less), week (Monday to Sunday), month, or auto (day up to 366 days, week up to 1,098 days, month past that); weeks and months are counted in tz",
            "in": "query",
            "name": "interval",
            "required": false,
            "schema": {
              "default": "day",
              "description": "The points of `series`: day (ranges of 366 days or less), week (Monday to Sunday), month, or auto (day up to 366 days, week up to 1,098 days, month past that); weeks and months are counted in tz",
              "enum": [
                "day",
                "week",
                "month",
                "auto"
              ],
              "title": "Interval",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "if-none-match",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 1024,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "If-None-Match"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data_start": "2026-09-01",
                  "filters": {},
                  "freshness": {
                    "as_of": "2026-09-07T12:00:00Z",
                    "closed_days_through": "2026-09-06",
                    "next_refresh_at": "2026-09-07T13:00:00Z",
                    "pending": false,
                    "stale": false,
                    "today_live": true
                  },
                  "live_since": "2026-09-01T00:00:00Z",
                  "live_since_approximate": false,
                  "markers": [
                    {
                      "approximate": false,
                      "day": "2026-09-03",
                      "published_at": "2026-09-03T09:00:00Z",
                      "version_number": 3
                    }
                  ],
                  "quiz_id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                  "range": {
                    "days": 7,
                    "end": "2026-09-07",
                    "start": "2026-09-01",
                    "timezone": "UTC"
                  },
                  "series": [
                    {
                      "avg_time_to_complete_ms": 42000.0,
                      "completions": 5,
                      "completions_with_order": 1,
                      "consent_denied": 0,
                      "day": "2026-09-01",
                      "email_opt_ins": 2,
                      "median_time_to_complete_ms": 40000.0,
                      "orders": 1,
                      "orders_inside_window": 1,
                      "phone_opt_ins": 1,
                      "revenue": {
                        "amount": "12.50",
                        "currency": "USD"
                      },
                      "revenue_by_bucket": {
                        "added_from_quiz": {
                          "amount": "12.50",
                          "currency": "USD"
                        },
                        "bought_not_shown": {
                          "amount": "0",
                          "currency": "USD"
                        },
                        "shown_bought_later": {
                          "amount": "0",
                          "currency": "USD"
                        }
                      },
                      "starts": 8,
                      "unique_viewers_approx": 9,
                      "views": 10
                    }
                  ],
                  "totals": {
                    "aov": {
                      "amount": "12.50",
                      "currency": "USD"
                    },
                    "avg_quiz_to_checkout_ms": 60000.0,
                    "avg_time_to_complete_ms": 42000.0,
                    "completion_rate": 62.5,
                    "completions": 5,
                    "completions_with_order": 1,
                    "consent_denied": 0,
                    "conversion_rate": 20.0,
                    "email_opt_ins": 2,
                    "median_quiz_to_checkout_ms": 60000.0,
                    "median_time_to_complete_ms": 40000.0,
                    "orders": 1,
                    "orders_inside_window": 1,
                    "phone_opt_ins": 1,
                    "revenue": {
                      "amount": "12.50",
                      "currency": "USD"
                    },
                    "revenue_by_bucket": {
                      "added_from_quiz": {
                        "amount": "12.50",
                        "currency": "USD"
                      },
                      "bought_not_shown": {
                        "amount": "0",
                        "currency": "USD"
                      },
                      "shown_bought_later": {
                        "amount": "0",
                        "currency": "USD"
                      }
                    },
                    "start_rate": 80.0,
                    "starts": 8,
                    "unique_viewers_approx": 9,
                    "views": 10
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/QuizOverview"
                }
              }
            },
            "description": "Analytics for the range. ETag identifies the cached response.",
            "headers": {
              "ETag": {
                "example": "\"5a23d8\"",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "304": {
            "description": "If-None-Match matches the cached response; no body is sent.",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "analytics:read"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "503": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "detail": "A backing service is temporarily unavailable; retry shortly",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "retry_after": 2,
                      "status": 503,
                      "title": "dependency_unavailable",
                      "type": "https://api.octaneai.com/errors/dependency_unavailable"
                    }
                  },
                  "limiter_unavailable": {
                    "value": {
                      "detail": "Request limits cannot be checked right now; retry shortly",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "retry_after": 2,
                      "status": 503,
                      "title": "limiter_unavailable",
                      "type": "https://api.octaneai.com/errors/limiter_unavailable"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Request limits could not be checked for the body, or the store's details could not be read."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Quiz analytics overview",
        "tags": [
          "analytics"
        ],
        "x-rate-class": "analytics",
        "x-scope": "analytics:read"
      }
    },
    "/v1/quizzes/{quiz_id}/analytics/paths": {
      "get": {
        "operationId": "quiz_analytics_paths",
        "parameters": [
          {
            "in": "path",
            "name": "quiz_id",
            "required": true,
            "schema": {
              "title": "Quiz Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "default": "all",
              "enum": [
                "all",
                "finished",
                "left"
              ],
              "title": "Cohort",
              "type": "string"
            }
          },
          {
            "description": "First day, inclusive, in tz; 29 days before `to` when absent",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "First day, inclusive, in tz; 29 days before `to` when absent",
              "title": "From"
            }
          },
          {
            "description": "Last day, inclusive, in tz; today when absent",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Last day, inclusive, in tz; today when absent",
              "title": "To"
            }
          },
          {
            "in": "query",
            "name": "tz",
            "required": false,
            "schema": {
              "default": "UTC",
              "maxLength": 64,
              "title": "Tz",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "channel",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Channel"
            }
          },
          {
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Device"
            }
          },
          {
            "in": "query",
            "name": "new_returning",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "New Returning"
            }
          },
          {
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Country"
            }
          },
          {
            "in": "header",
            "name": "if-none-match",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 1024,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "If-None-Match"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "cohort": "all",
                  "data_start": "2026-09-01",
                  "edges": [
                    {
                      "cause": "jump",
                      "from_page_key": "welcome",
                      "jump_rule_key": "jr_1",
                      "moves": 3,
                      "sessions_moved": 3,
                      "to_page_key": "gone"
                    },
                    {
                      "cause": "restart",
                      "from_page_key": "welcome",
                      "moves": 2,
                      "sessions_moved": 2,
                      "to_page_key": "welcome"
                    }
                  ],
                  "filters": {},
                  "freshness": {
                    "as_of": "2026-09-07T12:00:00Z",
                    "closed_days_through": "2026-09-06",
                    "next_refresh_at": "2026-09-07T13:00:00Z",
                    "pending": false,
                    "stale": false,
                    "today_live": true
                  },
                  "nodes": [
                    {
                      "entries": 10,
                      "entries_by_jump": 1,
                      "exits_closed": 1,
                      "exits_restarted": 2,
                      "exits_timed_out": 1,
                      "finished_here": 0,
                      "median_time_on_page_ms": 5000.0,
                      "page_key": "welcome",
                      "removed": false,
                      "still_here": 1,
                      "title": "Welcome"
                    },
                    {
                      "entries": 3,
                      "entries_by_jump": 3,
                      "exits_closed": 0,
                      "exits_restarted": 0,
                      "exits_timed_out": 0,
                      "finished_here": 3,
                      "page_key": "gone",
                      "removed": true,
                      "still_here": 0,
                      "title": "Page removed"
                    }
                  ],
                  "other_paths": {
                    "moves": 1,
                    "routes": 1
                  },
                  "quiz_id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                  "range": {
                    "days": 7,
                    "end": "2026-09-07",
                    "start": "2026-09-01",
                    "timezone": "UTC"
                  },
                  "rules": [
                    {
                      "fired": 3,
                      "jump_rule_key": "jr_1",
                      "source_entries": 10,
                      "source_page_key": "welcome"
                    }
                  ],
                  "sessions": 8,
                  "visibility_skips": [
                    {
                      "page_key": "skin",
                      "removed": false,
                      "times_hidden": 3,
                      "title": "Skin"
                    }
                  ]
                },
                "schema": {
                  "$ref": "#/components/schemas/AnalyticsPaths"
                }
              }
            },
            "description": "Analytics for the range. ETag identifies the cached response.",
            "headers": {
              "ETag": {
                "example": "\"5a23d8\"",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "304": {
            "description": "If-None-Match matches the cached response; no body is sent.",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "analytics:read"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "503": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "detail": "A backing service is temporarily unavailable; retry shortly",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "retry_after": 2,
                      "status": 503,
                      "title": "dependency_unavailable",
                      "type": "https://api.octaneai.com/errors/dependency_unavailable"
                    }
                  },
                  "limiter_unavailable": {
                    "value": {
                      "detail": "Request limits cannot be checked right now; retry shortly",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "retry_after": 2,
                      "status": 503,
                      "title": "limiter_unavailable",
                      "type": "https://api.octaneai.com/errors/limiter_unavailable"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Request limits could not be checked for the body, or the store's details could not be read."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Quiz page-to-page journeys",
        "tags": [
          "analytics"
        ],
        "x-rate-class": "analytics",
        "x-scope": "analytics:read"
      }
    },
    "/v1/quizzes/{quiz_id}/analytics/products": {
      "get": {
        "operationId": "quiz_analytics_products",
        "parameters": [
          {
            "in": "path",
            "name": "quiz_id",
            "required": true,
            "schema": {
              "title": "Quiz Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "bucket",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "added_from_quiz",
                    "shown_bought_later",
                    "bought_not_shown"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Bucket"
            }
          },
          {
            "in": "query",
            "name": "sort",
            "required": false,
            "schema": {
              "default": "revenue",
              "enum": [
                "revenue",
                "units",
                "orders"
              ],
              "title": "Sort",
              "type": "string"
            }
          },
          {
            "description": "First day, inclusive, in tz; 29 days before `to` when absent",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "First day, inclusive, in tz; 29 days before `to` when absent",
              "title": "From"
            }
          },
          {
            "description": "Last day, inclusive, in tz; today when absent",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Last day, inclusive, in tz; today when absent",
              "title": "To"
            }
          },
          {
            "in": "query",
            "name": "tz",
            "required": false,
            "schema": {
              "default": "UTC",
              "maxLength": 64,
              "title": "Tz",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "if-none-match",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 1024,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "If-None-Match"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "freshness": {
                    "as_of": "2026-09-07T12:00:00Z",
                    "closed_days_through": "2026-09-06",
                    "next_refresh_at": "2026-09-07T13:00:00Z",
                    "pending": false,
                    "stale": false,
                    "today_live": true
                  },
                  "line_revenue": {
                    "amount": "12.50",
                    "currency": "USD"
                  },
                  "orders_matched_by_email": 1,
                  "quiz_id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                  "range": {
                    "days": 7,
                    "end": "2026-09-07",
                    "start": "2026-09-01",
                    "timezone": "UTC"
                  },
                  "rows": [
                    {
                      "had_variants": false,
                      "in_store": true,
                      "line_revenue": {
                        "amount": "12.50",
                        "currency": "USD"
                      },
                      "orders_approx": 1,
                      "product_id": "gid://shopify/Product/1",
                      "quiz_name": "Routine",
                      "revenue_by_bucket": {
                        "added_from_quiz": {
                          "amount": "12.50",
                          "currency": "USD"
                        },
                        "bought_not_shown": {
                          "amount": "0",
                          "currency": "USD"
                        },
                        "shown_bought_later": {
                          "amount": "0",
                          "currency": "USD"
                        }
                      },
                      "shown_on": {
                        "block_key": "product-abc12",
                        "page_key": "result",
                        "page_title": "Your match"
                      },
                      "times_shown": 5,
                      "title": "Serum",
                      "units": 1
                    }
                  ],
                  "sort": "revenue",
                  "total_products": 1,
                  "totals_by_bucket": {
                    "added_from_quiz": {
                      "amount": "12.50",
                      "currency": "USD"
                    },
                    "bought_not_shown": {
                      "amount": "0",
                      "currency": "USD"
                    },
                    "shown_bought_later": {
                      "amount": "0",
                      "currency": "USD"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/AnalyticsProducts"
                }
              }
            },
            "description": "Analytics for the range. ETag identifies the cached response.",
            "headers": {
              "ETag": {
                "example": "\"5a23d8\"",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "304": {
            "description": "If-None-Match matches the cached response; no body is sent.",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "analytics:read"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "503": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "detail": "A backing service is temporarily unavailable; retry shortly",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "retry_after": 2,
                      "status": 503,
                      "title": "dependency_unavailable",
                      "type": "https://api.octaneai.com/errors/dependency_unavailable"
                    }
                  },
                  "limiter_unavailable": {
                    "value": {
                      "detail": "Request limits cannot be checked right now; retry shortly",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "retry_after": 2,
                      "status": 503,
                      "title": "limiter_unavailable",
                      "type": "https://api.octaneai.com/errors/limiter_unavailable"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Request limits could not be checked for the body, or the store's details could not be read."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Products attributed to a quiz",
        "tags": [
          "analytics"
        ],
        "x-rate-class": "analytics",
        "x-scope": "analytics:read"
      }
    },
    "/v1/quizzes/{quiz_id}/analytics/traffic": {
      "get": {
        "operationId": "quiz_analytics_traffic",
        "parameters": [
          {
            "in": "path",
            "name": "quiz_id",
            "required": true,
            "schema": {
              "title": "Quiz Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "by",
            "required": true,
            "schema": {
              "enum": [
                "referrer_host",
                "utm_source",
                "utm_medium",
                "utm_campaign"
              ],
              "title": "By",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 25,
              "maximum": 50,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "First day, inclusive, in tz; 29 days before `to` when absent",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "First day, inclusive, in tz; 29 days before `to` when absent",
              "title": "From"
            }
          },
          {
            "description": "Last day, inclusive, in tz; today when absent",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Last day, inclusive, in tz; today when absent",
              "title": "To"
            }
          },
          {
            "in": "query",
            "name": "tz",
            "required": false,
            "schema": {
              "default": "UTC",
              "maxLength": 64,
              "title": "Tz",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "channel",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Channel"
            }
          },
          {
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Device"
            }
          },
          {
            "in": "query",
            "name": "new_returning",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "New Returning"
            }
          },
          {
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Country"
            }
          },
          {
            "in": "header",
            "name": "if-none-match",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 1024,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "If-None-Match"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "by": "referrer_host",
                  "filters": {},
                  "freshness": {
                    "as_of": "2026-09-07T12:00:00Z",
                    "closed_days_through": "2026-09-06",
                    "next_refresh_at": "2026-09-07T13:00:00Z",
                    "pending": false,
                    "stale": false,
                    "today_live": true
                  },
                  "other": {
                    "completions": 5,
                    "email_opt_ins": 2,
                    "phone_opt_ins": 1,
                    "starts": 8,
                    "value": "other",
                    "views": 10
                  },
                  "quiz_id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                  "range": {
                    "days": 7,
                    "end": "2026-09-07",
                    "start": "2026-09-01",
                    "timezone": "UTC"
                  },
                  "rows": [
                    {
                      "completions": 5,
                      "email_opt_ins": 2,
                      "phone_opt_ins": 1,
                      "starts": 8,
                      "unique_viewers": 9,
                      "value": "google.com",
                      "views": 10
                    }
                  ]
                },
                "schema": {
                  "$ref": "#/components/schemas/AnalyticsTraffic"
                }
              }
            },
            "description": "Analytics for the range. ETag identifies the cached response.",
            "headers": {
              "ETag": {
                "example": "\"5a23d8\"",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "304": {
            "description": "If-None-Match matches the cached response; no body is sent.",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "analytics:read"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "503": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "detail": "A backing service is temporarily unavailable; retry shortly",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "retry_after": 2,
                      "status": 503,
                      "title": "dependency_unavailable",
                      "type": "https://api.octaneai.com/errors/dependency_unavailable"
                    }
                  },
                  "limiter_unavailable": {
                    "value": {
                      "detail": "Request limits cannot be checked right now; retry shortly",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "retry_after": 2,
                      "status": 503,
                      "title": "limiter_unavailable",
                      "type": "https://api.octaneai.com/errors/limiter_unavailable"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Request limits could not be checked for the body, or the store's details could not be read."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Quiz traffic sources",
        "tags": [
          "analytics"
        ],
        "x-rate-class": "analytics",
        "x-scope": "analytics:read"
      }
    },
    "/v1/quizzes/{quiz_id}/analytics/versions": {
      "get": {
        "operationId": "quiz_analytics_versions",
        "parameters": [
          {
            "in": "path",
            "name": "quiz_id",
            "required": true,
            "schema": {
              "title": "Quiz Id",
              "type": "string"
            }
          },
          {
            "description": "First day, inclusive, in tz; 29 days before `to` when absent",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "First day, inclusive, in tz; 29 days before `to` when absent",
              "title": "From"
            }
          },
          {
            "description": "Last day, inclusive, in tz; today when absent",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Last day, inclusive, in tz; today when absent",
              "title": "To"
            }
          },
          {
            "in": "query",
            "name": "tz",
            "required": false,
            "schema": {
              "default": "UTC",
              "maxLength": 64,
              "title": "Tz",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "if-none-match",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 1024,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "If-None-Match"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "explainer_keys": [],
                  "freshness": {
                    "as_of": "2026-09-07T12:00:00Z",
                    "closed_days_through": "2026-09-06",
                    "next_refresh_at": "2026-09-07T13:00:00Z",
                    "pending": false,
                    "stale": false,
                    "today_live": true
                  },
                  "quiz_id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                  "range": {
                    "days": 7,
                    "end": "2026-09-07",
                    "start": "2026-09-01",
                    "timezone": "UTC"
                  },
                  "versions": []
                },
                "schema": {
                  "$ref": "#/components/schemas/AnalyticsVersions"
                }
              }
            },
            "description": "Version analytics with public version ids."
          },
          "304": {
            "description": "The version analytics have not changed."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "analytics:read"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "503": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "detail": "A backing service is temporarily unavailable; retry shortly",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "retry_after": 2,
                      "status": 503,
                      "title": "dependency_unavailable",
                      "type": "https://api.octaneai.com/errors/dependency_unavailable"
                    }
                  },
                  "limiter_unavailable": {
                    "value": {
                      "detail": "Request limits cannot be checked right now; retry shortly",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "retry_after": 2,
                      "status": 503,
                      "title": "limiter_unavailable",
                      "type": "https://api.octaneai.com/errors/limiter_unavailable"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Request limits could not be checked for the body, or the store's details could not be read."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Read quiz analytics by version",
        "tags": [
          "analytics"
        ],
        "x-rate-class": "analytics",
        "x-scope": "analytics:read"
      }
    },
    "/v1/quizzes/{quiz_id}/archive": {
      "post": {
        "operationId": "quiz_archive",
        "parameters": [
          {
            "in": "path",
            "name": "quiz_id",
            "required": true,
            "schema": {
              "title": "Quiz Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "archived": true,
                  "created_at": "2026-09-01T12:00:00Z",
                  "id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                  "kind": "quiz",
                  "name": "Find your routine",
                  "page_count": 3,
                  "status": "draft",
                  "updated_at": "2026-09-01T12:00:00Z",
                  "urls": {
                    "dashboard": "https://editor.octaneai.com/bot_123/editor/quiz_7c9e6679742540de944be07fc1f90ae7",
                    "self": "https://api.octaneai.com/v1/quizzes/quiz_7c9e6679742540de944be07fc1f90ae7",
                    "versions": "https://api.octaneai.com/v1/quizzes/quiz_7c9e6679742540de944be07fc1f90ae7/versions"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/QuizSummary"
                }
              }
            },
            "description": "The quiz is archived."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "quizzes:write"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "409": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The AI assistant is editing this quiz right now. Wait for it to finish, then save.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 409,
                  "title": "ai_run_in_progress",
                  "type": "https://api.octaneai.com/errors/ai_run_in_progress"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The AI assistant is editing the quiz; try again when it has finished."
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "503": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Request limits cannot be checked right now; retry shortly",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 503,
                  "title": "limiter_unavailable",
                  "type": "https://api.octaneai.com/errors/limiter_unavailable"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Request limits cannot be checked right now; retry shortly."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Archive a quiz",
        "tags": [
          "quizzes"
        ],
        "x-rate-class": "write",
        "x-scope": "quizzes:write"
      }
    },
    "/v1/quizzes/{quiz_id}/experiments": {
      "get": {
        "operationId": "quiz_experiments_list",
        "parameters": [
          {
            "in": "path",
            "name": "quiz_id",
            "required": true,
            "schema": {
              "title": "Quiz Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 200,
              "maximum": 500,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "default": 0,
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [
                    {
                      "ai_fallback": "when_clear",
                      "app_id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                      "arms": [
                        {
                          "id": "arm_00000000000000000000000000000001",
                          "is_control": true,
                          "label": "Live version",
                          "position": 0,
                          "version_id": "ver_00000000000000000000000000000001",
                          "version_number": 1,
                          "weight": 1
                        },
                        {
                          "id": "arm_00000000000000000000000000000002",
                          "is_control": false,
                          "label": "Variant B",
                          "position": 1,
                          "version_id": "ver_00000000000000000000000000000002",
                          "version_number": 2,
                          "weight": 1
                        }
                      ],
                      "created_at": "2026-09-16T12:00:00Z",
                      "decision_metric": "completion_rate",
                      "decision_option": "when_clear",
                      "fallback": "notify",
                      "id": "expt_7c9e6679742540de944be07fc1f90ae7",
                      "long_run_reminders": true,
                      "name": "Skip the email page",
                      "period": 0,
                      "period_reason": "started",
                      "protect_metrics": [],
                      "revenue_tiers": [
                        "added_from_quiz",
                        "shown_bought_later",
                        "bought_not_shown"
                      ],
                      "revision": 0,
                      "status": "draft",
                      "timezone": "UTC",
                      "updated_at": "2026-09-16T12:00:00Z",
                      "weekly_digest": true
                    }
                  ]
                },
                "schema": {
                  "$ref": "#/components/schemas/ExperimentList"
                }
              }
            },
            "description": "Experiments, newest first; limit and offset page the list."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "experiments:read"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "List a quiz's experiments",
        "tags": [
          "experiments"
        ],
        "x-rate-class": "read",
        "x-scope": "experiments:read"
      }
    },
    "/v1/quizzes/{quiz_id}/unarchive": {
      "post": {
        "operationId": "quiz_unarchive",
        "parameters": [
          {
            "in": "path",
            "name": "quiz_id",
            "required": true,
            "schema": {
              "title": "Quiz Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "archived": false,
                  "created_at": "2026-09-01T12:00:00Z",
                  "id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                  "kind": "quiz",
                  "name": "Find your routine",
                  "page_count": 3,
                  "status": "draft",
                  "updated_at": "2026-09-01T12:00:00Z",
                  "urls": {
                    "dashboard": "https://editor.octaneai.com/bot_123/editor/quiz_7c9e6679742540de944be07fc1f90ae7",
                    "self": "https://api.octaneai.com/v1/quizzes/quiz_7c9e6679742540de944be07fc1f90ae7",
                    "versions": "https://api.octaneai.com/v1/quizzes/quiz_7c9e6679742540de944be07fc1f90ae7/versions"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/QuizSummary"
                }
              }
            },
            "description": "The quiz is no longer archived."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "quizzes:write"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "409": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The AI assistant is editing this quiz right now. Wait for it to finish, then save.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 409,
                  "title": "ai_run_in_progress",
                  "type": "https://api.octaneai.com/errors/ai_run_in_progress"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The AI assistant is editing the quiz; try again when it has finished."
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "503": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Request limits cannot be checked right now; retry shortly",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 503,
                  "title": "limiter_unavailable",
                  "type": "https://api.octaneai.com/errors/limiter_unavailable"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Request limits cannot be checked right now; retry shortly."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Unarchive a quiz",
        "tags": [
          "quizzes"
        ],
        "x-rate-class": "write",
        "x-scope": "quizzes:write"
      }
    },
    "/v1/quizzes/{quiz_id}/versions": {
      "get": {
        "operationId": "quiz_versions_list",
        "parameters": [
          {
            "in": "path",
            "name": "quiz_id",
            "required": true,
            "schema": {
              "title": "Quiz Id",
              "type": "string"
            }
          },
          {
            "description": "From the previous page's nextCursor",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 200,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "From the previous page's nextCursor",
              "title": "Cursor"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 20,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [
                    {
                      "created_at": "2026-09-01T12:00:00Z",
                      "id": "ver_15ce0be06b904d0180b1155da02a6c6f",
                      "label": "Autumn launch",
                      "number": 2,
                      "page_count": 3,
                      "published": false,
                      "quiz_id": "quiz_7c9e6679742540de944be07fc1f90ae7"
                    }
                  ],
                  "has_more": false
                },
                "schema": {
                  "$ref": "#/components/schemas/VersionList"
                }
              }
            },
            "description": "One page of saved version summaries, newest first."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "quizzes:read"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "List saved versions",
        "tags": [
          "quizzes"
        ],
        "x-rate-class": "read",
        "x-scope": "quizzes:read"
      },
      "post": {
        "operationId": "quiz_version_create",
        "parameters": [
          {
            "in": "path",
            "name": "quiz_id",
            "required": true,
            "schema": {
              "title": "Quiz Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VersionCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "example": {
                  "created_at": "2026-09-01T12:00:00Z",
                  "id": "ver_15ce0be06b904d0180b1155da02a6c6f",
                  "label": "Autumn launch",
                  "number": 2,
                  "page_count": 3,
                  "published": false,
                  "quiz_id": "quiz_7c9e6679742540de944be07fc1f90ae7"
                },
                "schema": {
                  "$ref": "#/components/schemas/VersionSummary"
                }
              }
            },
            "description": "The draft was saved as a version."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "quizzes:write"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "503": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Request limits cannot be checked right now; retry shortly",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 503,
                  "title": "limiter_unavailable",
                  "type": "https://api.octaneai.com/errors/limiter_unavailable"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Request limits cannot be checked right now; retry shortly."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Save the draft as a version",
        "tags": [
          "quizzes"
        ],
        "x-rate-class": "write",
        "x-scope": "quizzes:write"
      }
    },
    "/v1/quizzes/{quiz_id}/versions/{version_id}": {
      "get": {
        "operationId": "quiz_version_get",
        "parameters": [
          {
            "in": "path",
            "name": "version_id",
            "required": true,
            "schema": {
              "title": "Version Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "quiz_id",
            "required": true,
            "schema": {
              "title": "Quiz Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "created_at": "2026-09-01T12:00:00Z",
                  "id": "ver_15ce0be06b904d0180b1155da02a6c6f",
                  "label": "Autumn launch",
                  "number": 2,
                  "page_count": 3,
                  "published": false,
                  "quiz_id": "quiz_7c9e6679742540de944be07fc1f90ae7"
                },
                "schema": {
                  "$ref": "#/components/schemas/VersionSummary"
                }
              }
            },
            "description": "The saved version summary."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "quizzes:read"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Get a saved version summary",
        "tags": [
          "quizzes"
        ],
        "x-rate-class": "read",
        "x-scope": "quizzes:read"
      }
    },
    "/v1/quizzes/{quiz_id}/versions/{version_id}/publish": {
      "post": {
        "description": "Publishing an older version_id is the rollback of what shoppers see; the draft is not changed.",
        "operationId": "quiz_version_publish",
        "parameters": [
          {
            "in": "path",
            "name": "version_id",
            "required": true,
            "schema": {
              "title": "Version Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "quiz_id",
            "required": true,
            "schema": {
              "title": "Quiz Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "archived": false,
                  "created_at": "2026-09-01T12:00:00Z",
                  "id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                  "kind": "quiz",
                  "name": "Find your routine",
                  "page_count": 3,
                  "published_version": "ver_15ce0be06b904d0180b1155da02a6c6f",
                  "status": "published",
                  "updated_at": "2026-09-01T12:00:00Z",
                  "urls": {
                    "dashboard": "https://editor.octaneai.com/bot_123/editor/quiz_7c9e6679742540de944be07fc1f90ae7",
                    "self": "https://api.octaneai.com/v1/quizzes/quiz_7c9e6679742540de944be07fc1f90ae7",
                    "versions": "https://api.octaneai.com/v1/quizzes/quiz_7c9e6679742540de944be07fc1f90ae7/versions"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/QuizSummary"
                }
              }
            },
            "description": "The selected version is now published."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "quizzes:publish"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "409": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Cannot publish a version with no pages; an app must have at least one page.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 409,
                  "title": "conflict",
                  "type": "https://api.octaneai.com/errors/conflict"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The selected version has no pages."
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The variant must be a different version from the live one; end the test or publish its winner instead.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "invalid_experiment",
                  "type": "https://api.octaneai.com/errors/invalid_experiment"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The version is the variant of a running test."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "503": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Request limits cannot be checked right now; retry shortly",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 503,
                  "title": "limiter_unavailable",
                  "type": "https://api.octaneai.com/errors/limiter_unavailable"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Request limits cannot be checked right now; retry shortly."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Publish a saved version",
        "tags": [
          "quizzes"
        ],
        "x-rate-class": "write",
        "x-scope": "quizzes:publish"
      }
    },
    "/v1/store": {
      "get": {
        "operationId": "store_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "credits": {
                    "limit": 50000,
                    "overages_enabled": true,
                    "threshold": 60000,
                    "used": 12450
                  },
                  "currency": "USD",
                  "limits": {
                    "analytics_soft_ttl_seconds": 60,
                    "bot_multiplier": 3,
                    "capacity": 72,
                    "export_page_pause_ms": 100,
                    "leak_per_second": 12,
                    "webhook_endpoints": 5,
                    "webhook_sends_per_second": 50
                  },
                  "name": "Bench store",
                  "plan_class": "plus",
                  "scopes": [
                    "analytics:read",
                    "quizzes:read"
                  ],
                  "shop_domain": "bench-store.myshopify.com",
                  "timezone": "America/New_York"
                },
                "schema": {
                  "$ref": "#/components/schemas/StoreResponse"
                }
              }
            },
            "description": "The store behind the key: who it is, its currency and timezone, its plan class, limits, the key's scopes and credit usage."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "any"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "The store behind the key",
        "tags": [
          "store"
        ],
        "x-rate-class": "read",
        "x-scope": "any"
      }
    },
    "/v1/webhooks": {
      "get": {
        "operationId": "webhooks_list",
        "parameters": [
          {
            "description": "From the previous page's nextCursor",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 200,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "From the previous page's nextCursor",
              "title": "Cursor"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 20,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [
                    {
                      "consecutive_failures": 0,
                      "created_at": "2026-09-01T12:00:00Z",
                      "description": "Order desk",
                      "id": "whe_3f2504e04f8911d39a0c0305e82c3301",
                      "include_pii": false,
                      "last_delivered_at": "2026-09-07T09:12:00Z",
                      "status": "active",
                      "topics": [
                        "quiz.finished",
                        "profile.created"
                      ],
                      "updated_at": "2026-09-01T12:00:05Z",
                      "url": "https://hooks.example.com/octane",
                      "verified_at": "2026-09-01T12:00:05Z"
                    }
                  ],
                  "has_more": false
                },
                "schema": {
                  "$ref": "#/components/schemas/WebhookList"
                }
              }
            },
            "description": "One page of the store's endpoints; status reads paused_plan while the plan has no API."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "webhooks:manage"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "List webhook endpoints",
        "tags": [
          "webhooks"
        ],
        "x-rate-class": "read",
        "x-scope": "webhooks:manage"
      },
      "post": {
        "operationId": "webhook_create",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "endpoint": {
                    "consecutive_failures": 0,
                    "created_at": "2026-09-01T12:00:00Z",
                    "description": "Order desk",
                    "id": "whe_3f2504e04f8911d39a0c0305e82c3301",
                    "include_pii": false,
                    "last_delivered_at": "2026-09-07T09:12:00Z",
                    "status": "active",
                    "topics": [
                      "quiz.finished",
                      "profile.created"
                    ],
                    "updated_at": "2026-09-01T12:00:05Z",
                    "url": "https://hooks.example.com/octane",
                    "verified_at": "2026-09-01T12:00:05Z"
                  },
                  "secret": "whsec_AAECAwQFBgcICQoLDA0ODxAREhMUFRYX"
                },
                "schema": {
                  "$ref": "#/components/schemas/WebhookCreated"
                }
              }
            },
            "description": "The existing endpoint with this URL and configuration, and its secret."
          },
          "201": {
            "content": {
              "application/json": {
                "example": {
                  "endpoint": {
                    "consecutive_failures": 0,
                    "created_at": "2026-09-01T12:00:00Z",
                    "description": "Order desk",
                    "id": "whe_3f2504e04f8911d39a0c0305e82c3301",
                    "include_pii": false,
                    "status": "pending",
                    "topics": [
                      "quiz.finished",
                      "profile.created"
                    ],
                    "updated_at": "2026-09-01T12:00:00Z",
                    "url": "https://hooks.example.com/octane"
                  },
                  "secret": "whsec_AAECAwQFBgcICQoLDA0ODxAREhMUFRYX"
                },
                "schema": {
                  "$ref": "#/components/schemas/WebhookCreated"
                }
              }
            },
            "description": "The new endpoint, pending until a test ping reaches it, and its secret (shown once here)."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "webhooks:manage"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "409": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The endpoint cannot be changed in its current state",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 409,
                  "title": "webhook_conflict",
                  "type": "https://api.octaneai.com/errors/webhook_conflict"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The endpoint limit was reached or the requested change conflicts with the endpoint's state."
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "503": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Request limits cannot be checked right now; retry shortly",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 503,
                  "title": "limiter_unavailable",
                  "type": "https://api.octaneai.com/errors/limiter_unavailable"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Request limits cannot be checked right now; retry shortly."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Create a webhook endpoint",
        "tags": [
          "webhooks"
        ],
        "x-rate-class": "write",
        "x-scope": "webhooks:manage"
      }
    },
    "/v1/webhooks/{endpoint_id}": {
      "delete": {
        "operationId": "webhook_delete",
        "parameters": [
          {
            "in": "path",
            "name": "endpoint_id",
            "required": true,
            "schema": {
              "title": "Endpoint Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The endpoint and its deliveries are gone."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "webhooks:manage"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "503": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Request limits cannot be checked right now; retry shortly",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 503,
                  "title": "limiter_unavailable",
                  "type": "https://api.octaneai.com/errors/limiter_unavailable"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Request limits cannot be checked right now; retry shortly."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Delete a webhook endpoint and its deliveries",
        "tags": [
          "webhooks"
        ],
        "x-rate-class": "write",
        "x-scope": "webhooks:manage"
      },
      "get": {
        "operationId": "webhook_get",
        "parameters": [
          {
            "in": "path",
            "name": "endpoint_id",
            "required": true,
            "schema": {
              "title": "Endpoint Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "consecutive_failures": 0,
                  "created_at": "2026-09-01T12:00:00Z",
                  "description": "Order desk",
                  "id": "whe_3f2504e04f8911d39a0c0305e82c3301",
                  "include_pii": false,
                  "last_delivered_at": "2026-09-07T09:12:00Z",
                  "status": "active",
                  "topics": [
                    "quiz.finished",
                    "profile.created"
                  ],
                  "updated_at": "2026-09-01T12:00:05Z",
                  "url": "https://hooks.example.com/octane",
                  "verified_at": "2026-09-01T12:00:05Z"
                },
                "schema": {
                  "$ref": "#/components/schemas/WebhookSummary"
                }
              }
            },
            "description": "The endpoint."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "webhooks:manage"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Get a webhook endpoint",
        "tags": [
          "webhooks"
        ],
        "x-rate-class": "read",
        "x-scope": "webhooks:manage"
      },
      "patch": {
        "operationId": "webhook_update",
        "parameters": [
          {
            "in": "path",
            "name": "endpoint_id",
            "required": true,
            "schema": {
              "title": "Endpoint Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "consecutive_failures": 0,
                  "created_at": "2026-09-01T12:00:00Z",
                  "description": "Order desk",
                  "id": "whe_3f2504e04f8911d39a0c0305e82c3301",
                  "include_pii": false,
                  "last_delivered_at": "2026-09-07T09:12:00Z",
                  "status": "active",
                  "topics": [
                    "quiz.finished",
                    "profile.created"
                  ],
                  "updated_at": "2026-09-01T12:00:05Z",
                  "url": "https://hooks.example.com/octane",
                  "verified_at": "2026-09-01T12:00:05Z"
                },
                "schema": {
                  "$ref": "#/components/schemas/WebhookSummary"
                }
              }
            },
            "description": "The updated endpoint."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "webhooks:manage"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "409": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The endpoint cannot be changed in its current state",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 409,
                  "title": "webhook_conflict",
                  "type": "https://api.octaneai.com/errors/webhook_conflict"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The endpoint limit was reached or the requested change conflicts with the endpoint's state."
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "503": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Request limits cannot be checked right now; retry shortly",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 503,
                  "title": "limiter_unavailable",
                  "type": "https://api.octaneai.com/errors/limiter_unavailable"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Request limits cannot be checked right now; retry shortly."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Update webhook subscriptions or status",
        "tags": [
          "webhooks"
        ],
        "x-rate-class": "write",
        "x-scope": "webhooks:manage"
      }
    },
    "/v1/webhooks/{endpoint_id}/deliveries": {
      "get": {
        "description": "The stored payloads of an endpoint created with include_pii carry contact details, so reading them needs profiles:read as well.",
        "operationId": "webhook_deliveries_list",
        "parameters": [
          {
            "in": "path",
            "name": "endpoint_id",
            "required": true,
            "schema": {
              "title": "Endpoint Id",
              "type": "string"
            }
          },
          {
            "description": "From the previous page's nextCursor",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 200,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "From the previous page's nextCursor",
              "title": "Cursor"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 20,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "data": [
                    {
                      "attempts": 1,
                      "created_at": "2026-09-07T09:11:58Z",
                      "delivered_at": "2026-09-07T09:12:00Z",
                      "endpoint_id": "whe_3f2504e04f8911d39a0c0305e82c3301",
                      "event_id": "evt_6ba7b8109dad11d180b400c04fd430c8",
                      "id": "whd_7c9e6679742540de944be07fc1f90ae7",
                      "last_response": "ok",
                      "last_status_code": 200,
                      "next_attempt_at": "2026-09-07T09:12:00Z",
                      "payload": {
                        "api_version": "v1",
                        "created": "2026-09-07T09:11:58Z",
                        "data": {
                          "object": {
                            "answered_count": 1,
                            "answers": {
                              "image_choice-48su5": {
                                "kind": "image",
                                "label": "Skin type?",
                                "option_ids": [
                                  "dry"
                                ],
                                "page_key": "skin",
                                "value": "dry",
                                "values": [
                                  "Dry"
                                ]
                              }
                            },
                            "channel": "email",
                            "completed_at": "2026-09-07T09:11:30Z",
                            "country": "US",
                            "device": {
                              "browser": "Mobile Safari",
                              "browser_version": "17.5",
                              "class": "mobile",
                              "family": "iPhone",
                              "model": "iPhone",
                              "os": "iOS",
                              "os_version": "17.5",
                              "vendor": "Apple"
                            },
                            "ended_at": "2026-09-07T09:11:30Z",
                            "formulas": [
                              {
                                "component_key": "formula-tidtk",
                                "kind": "formula",
                                "label": "Hydration score",
                                "page_key": "result",
                                "value": 72
                              }
                            ],
                            "id": "sess_9b2d4a5e6f7a4b8c9d0e1f2a3b4c5d6e",
                            "last_page": "result",
                            "page_url": "https://shop.example.com/pages/quiz",
                            "points": [
                              {
                                "dimension_id": "dry",
                                "name": "Dry",
                                "total": 14
                              }
                            ],
                            "products_shown": [],
                            "property_mappings": [],
                            "quiz_id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                            "quiz_name": "Find your routine",
                            "started_at": "2026-09-07T09:08:00Z",
                            "utm_source": "newsletter",
                            "version_id": "ver_15ce0be06b904d0180b1155da02a6c6f",
                            "version_number": 2,
                            "visitor_id": "vis_0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d"
                          }
                        },
                        "id": "evt_6ba7b8109dad11d180b400c04fd430c8",
                        "type": "quiz.finished"
                      },
                      "status": "delivered",
                      "topic": "quiz.finished"
                    },
                    {
                      "attempts": 0,
                      "created_at": "2026-09-07T09:11:58Z",
                      "endpoint_id": "whe_3f2504e04f8911d39a0c0305e82c3301",
                      "event_id": "evt_15ce0be06b904d0180b1155da02a6c6f",
                      "id": "whd_15ce0be06b904d0180b1155da02a6c6f",
                      "next_attempt_at": "2026-09-07T09:12:00Z",
                      "payload": {
                        "api_version": "v1",
                        "created": "2026-09-07T09:11:58Z",
                        "data": {
                          "object": {
                            "endpoint_id": "whe_3f2504e04f8911d39a0c0305e82c3301"
                          }
                        },
                        "id": "evt_15ce0be06b904d0180b1155da02a6c6f",
                        "type": "ping"
                      },
                      "status": "pending",
                      "topic": "ping"
                    }
                  ],
                  "has_more": false
                },
                "schema": {
                  "$ref": "#/components/schemas/DeliveryList"
                }
              }
            },
            "description": "One page of the endpoint's deliveries, newest first, each with the payload as it was signed."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "webhooks:manage"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "List deliveries and their stored payloads",
        "tags": [
          "webhooks"
        ],
        "x-rate-class": "read",
        "x-scope": "webhooks:manage"
      }
    },
    "/v1/webhooks/{endpoint_id}/deliveries/{delivery_id}/redeliver": {
      "post": {
        "description": "The response carries the stored payload; on an endpoint created with include_pii it holds contact details, so redelivering needs profiles:read as well.",
        "operationId": "webhook_redeliver",
        "parameters": [
          {
            "in": "path",
            "name": "endpoint_id",
            "required": true,
            "schema": {
              "title": "Endpoint Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "delivery_id",
            "required": true,
            "schema": {
              "title": "Delivery Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "example": {
                  "attempts": 1,
                  "created_at": "2026-09-07T09:11:58Z",
                  "endpoint_id": "whe_3f2504e04f8911d39a0c0305e82c3301",
                  "event_id": "evt_6ba7b8109dad11d180b400c04fd430c8",
                  "id": "whd_7c9e6679742540de944be07fc1f90ae7",
                  "last_response": "ok",
                  "last_status_code": 200,
                  "next_attempt_at": "2026-09-07T09:12:00Z",
                  "payload": {
                    "api_version": "v1",
                    "created": "2026-09-07T09:11:58Z",
                    "data": {
                      "object": {
                        "answered_count": 1,
                        "answers": {
                          "image_choice-48su5": {
                            "kind": "image",
                            "label": "Skin type?",
                            "option_ids": [
                              "dry"
                            ],
                            "page_key": "skin",
                            "value": "dry",
                            "values": [
                              "Dry"
                            ]
                          }
                        },
                        "channel": "email",
                        "completed_at": "2026-09-07T09:11:30Z",
                        "country": "US",
                        "device": {
                          "browser": "Mobile Safari",
                          "browser_version": "17.5",
                          "class": "mobile",
                          "family": "iPhone",
                          "model": "iPhone",
                          "os": "iOS",
                          "os_version": "17.5",
                          "vendor": "Apple"
                        },
                        "ended_at": "2026-09-07T09:11:30Z",
                        "formulas": [
                          {
                            "component_key": "formula-tidtk",
                            "kind": "formula",
                            "label": "Hydration score",
                            "page_key": "result",
                            "value": 72
                          }
                        ],
                        "id": "sess_9b2d4a5e6f7a4b8c9d0e1f2a3b4c5d6e",
                        "last_page": "result",
                        "page_url": "https://shop.example.com/pages/quiz",
                        "points": [
                          {
                            "dimension_id": "dry",
                            "name": "Dry",
                            "total": 14
                          }
                        ],
                        "products_shown": [],
                        "property_mappings": [],
                        "quiz_id": "quiz_7c9e6679742540de944be07fc1f90ae7",
                        "quiz_name": "Find your routine",
                        "started_at": "2026-09-07T09:08:00Z",
                        "utm_source": "newsletter",
                        "version_id": "ver_15ce0be06b904d0180b1155da02a6c6f",
                        "version_number": 2,
                        "visitor_id": "vis_0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d"
                      }
                    },
                    "id": "evt_6ba7b8109dad11d180b400c04fd430c8",
                    "type": "quiz.finished"
                  },
                  "status": "pending",
                  "topic": "quiz.finished"
                },
                "schema": {
                  "$ref": "#/components/schemas/DeliverySummary"
                }
              }
            },
            "description": "The delivery, queued again with its attempt history kept."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "webhooks:manage"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "409": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The endpoint cannot be changed in its current state",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 409,
                  "title": "webhook_conflict",
                  "type": "https://api.octaneai.com/errors/webhook_conflict"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The endpoint limit was reached or the requested change conflicts with the endpoint's state."
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "503": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Request limits cannot be checked right now; retry shortly",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 503,
                  "title": "limiter_unavailable",
                  "type": "https://api.octaneai.com/errors/limiter_unavailable"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Request limits cannot be checked right now; retry shortly."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Redeliver an event and replace its previous outcome",
        "tags": [
          "webhooks"
        ],
        "x-rate-class": "write",
        "x-scope": "webhooks:manage"
      }
    },
    "/v1/webhooks/{endpoint_id}/redeliver-failed": {
      "post": {
        "operationId": "webhook_redeliver_failed",
        "parameters": [
          {
            "in": "path",
            "name": "endpoint_id",
            "required": true,
            "schema": {
              "title": "Endpoint Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookRedeliverFailed",
                "examples": [
                  {
                    "since": "2026-09-05T00:00:00Z"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "example": {
                  "count": 3
                },
                "schema": {
                  "$ref": "#/components/schemas/WebhookRedelivered"
                }
              }
            },
            "description": "How many failed deliveries were queued again."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "webhooks:manage"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "409": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The endpoint cannot be changed in its current state",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 409,
                  "title": "webhook_conflict",
                  "type": "https://api.octaneai.com/errors/webhook_conflict"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The endpoint limit was reached or the requested change conflicts with the endpoint's state."
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "503": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Request limits cannot be checked right now; retry shortly",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 503,
                  "title": "limiter_unavailable",
                  "type": "https://api.octaneai.com/errors/limiter_unavailable"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Request limits cannot be checked right now; retry shortly."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Redeliver failed events since a timestamp",
        "tags": [
          "webhooks"
        ],
        "x-rate-class": "write",
        "x-scope": "webhooks:manage"
      }
    },
    "/v1/webhooks/{endpoint_id}/reveal-secret": {
      "post": {
        "operationId": "webhook_reveal_secret",
        "parameters": [
          {
            "in": "path",
            "name": "endpoint_id",
            "required": true,
            "schema": {
              "title": "Endpoint Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "secret": "whsec_AAECAwQFBgcICQoLDA0ODxAREhMUFRYX"
                },
                "schema": {
                  "$ref": "#/components/schemas/WebhookSecret"
                }
              }
            },
            "description": "The current signing secret."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "webhooks:manage"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "409": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The endpoint cannot be changed in its current state",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 409,
                  "title": "webhook_conflict",
                  "type": "https://api.octaneai.com/errors/webhook_conflict"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The endpoint limit was reached or the requested change conflicts with the endpoint's state."
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "503": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Request limits cannot be checked right now; retry shortly",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 503,
                  "title": "limiter_unavailable",
                  "type": "https://api.octaneai.com/errors/limiter_unavailable"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Request limits cannot be checked right now; retry shortly."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Reveal the endpoint signing secret",
        "tags": [
          "webhooks"
        ],
        "x-rate-class": "write",
        "x-scope": "webhooks:manage"
      }
    },
    "/v1/webhooks/{endpoint_id}/rotate-secret": {
      "post": {
        "operationId": "webhook_rotate_secret",
        "parameters": [
          {
            "in": "path",
            "name": "endpoint_id",
            "required": true,
            "schema": {
              "title": "Endpoint Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "secret": "whsec_AAECAwQFBgcICQoLDA0ODxAREhMUFRYX"
                },
                "schema": {
                  "$ref": "#/components/schemas/WebhookSecret"
                }
              }
            },
            "description": "The new signing secret; the previous one keeps signing for 24 hours."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "webhooks:manage"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "409": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The endpoint cannot be changed in its current state",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 409,
                  "title": "webhook_conflict",
                  "type": "https://api.octaneai.com/errors/webhook_conflict"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The endpoint limit was reached or the requested change conflicts with the endpoint's state."
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "503": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Request limits cannot be checked right now; retry shortly",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 503,
                  "title": "limiter_unavailable",
                  "type": "https://api.octaneai.com/errors/limiter_unavailable"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Request limits cannot be checked right now; retry shortly."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Rotate the signing secret with 24-hour overlap",
        "tags": [
          "webhooks"
        ],
        "x-rate-class": "write",
        "x-scope": "webhooks:manage"
      }
    },
    "/v1/webhooks/{endpoint_id}/test": {
      "post": {
        "operationId": "webhook_test",
        "parameters": [
          {
            "in": "path",
            "name": "endpoint_id",
            "required": true,
            "schema": {
              "title": "Endpoint Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "example": {
                  "attempts": 0,
                  "created_at": "2026-09-07T09:11:58Z",
                  "endpoint_id": "whe_3f2504e04f8911d39a0c0305e82c3301",
                  "event_id": "evt_15ce0be06b904d0180b1155da02a6c6f",
                  "id": "whd_15ce0be06b904d0180b1155da02a6c6f",
                  "next_attempt_at": "2026-09-07T09:12:00Z",
                  "payload": {
                    "api_version": "v1",
                    "created": "2026-09-07T09:11:58Z",
                    "data": {
                      "object": {
                        "endpoint_id": "whe_3f2504e04f8911d39a0c0305e82c3301"
                      }
                    },
                    "id": "evt_15ce0be06b904d0180b1155da02a6c6f",
                    "type": "ping"
                  },
                  "status": "pending",
                  "topic": "ping"
                },
                "schema": {
                  "$ref": "#/components/schemas/DeliverySummary"
                }
              }
            },
            "description": "The queued ping delivery."
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The API key is missing, malformed, revoked or expired",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 401,
                  "title": "invalid_api_key",
                  "type": "https://api.octaneai.com/errors/invalid_api_key"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key is missing, malformed, revoked or expired.",
            "headers": {
              "WWW-Authenticate": {
                "example": "Bearer",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "examples": {
                  "insufficient_scope": {
                    "value": {
                      "detail": "The API key does not carry the scope this route needs",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "required": [
                        "webhooks:manage"
                      ],
                      "status": 403,
                      "title": "insufficient_scope",
                      "type": "https://api.octaneai.com/errors/insufficient_scope"
                    }
                  },
                  "plan_required": {
                    "value": {
                      "detail": "The merchant API is available on the Plus and Enterprise plans",
                      "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                      "status": 403,
                      "title": "plan_required",
                      "type": "https://api.octaneai.com/errors/plan_required"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The store's plan has no API access, or the key lacks the scope."
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Not found",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 404,
                  "title": "not_found",
                  "type": "https://api.octaneai.com/errors/not_found"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Not found"
          },
          "409": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The endpoint cannot be changed in its current state",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 409,
                  "title": "webhook_conflict",
                  "type": "https://api.octaneai.com/errors/webhook_conflict"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The endpoint limit was reached or the requested change conflicts with the endpoint's state."
          },
          "422": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "A request parameter is invalid.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 422,
                  "title": "validation_error",
                  "type": "https://api.octaneai.com/errors/validation_error"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "A request parameter is invalid."
          },
          "429": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Too many requests",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "retry_after": 1,
                  "status": 429,
                  "title": "rate_limited",
                  "type": "https://api.octaneai.com/errors/rate_limited"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The key's or the store's bucket is full; Retry-After says when to try again."
          },
          "503": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Request limits cannot be checked right now; retry shortly",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 503,
                  "title": "limiter_unavailable",
                  "type": "https://api.octaneai.com/errors/limiter_unavailable"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "Request limits cannot be checked right now; retry shortly."
          },
          "504": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request timed out.",
                  "request_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                  "status": 504,
                  "title": "timeout",
                  "type": "https://api.octaneai.com/errors/timeout"
                },
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "description": "The request timed out."
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "summary": "Queue a signed ping",
        "tags": [
          "webhooks"
        ],
        "x-rate-class": "write",
        "x-scope": "webhooks:manage"
      }
    }
  },
  "servers": [
    {
      "url": "https://api.octaneai.com"
    }
  ],
  "tags": [
    {
      "description": "The store behind the key: plan, limits and credits.",
      "name": "store"
    },
    {
      "description": "Quizzes and their versions: list, read, archive, delete, create and publish a version.",
      "name": "quizzes"
    },
    {
      "description": "Experiments: settings, lifecycle, complete results and attention rows.",
      "name": "experiments"
    },
    {
      "description": "Aggregated quiz analytics: overview, breakdowns, funnel, paths, products, answers and traffic.",
      "name": "analytics"
    },
    {
      "description": "Shopper profiles: list, find by what they answered, and read one.",
      "name": "profiles"
    },
    {
      "description": "CSV exports of profiles, responses and quiz analytics, built in the background.",
      "name": "exports"
    },
    {
      "description": "Webhook endpoints, their deliveries and the events they can carry.",
      "name": "webhooks"
    }
  ],
  "webhooks": {
    "experiment.ended": {
      "post": {
        "description": "A manual end, with or without a winner, or the scheduler's own decision; a winner is already live.",
        "operationId": "webhook_experiment_ended",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent_WebhookExperiment_"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Any 2xx within 10 seconds acknowledges the event"
          },
          "4XX": {
            "description": "410 ends the delivery and disables the endpoint; any other 4xx but 408 and 429 ends it"
          },
          "5XX": {
            "description": "Retried, as are 408, 429, a timeout and a network error: seven retries over about 28 hours, then the delivery is dead"
          }
        },
        "summary": "An experiment ended",
        "tags": [
          "webhooks"
        ]
      }
    },
    "experiment.started": {
      "post": {
        "description": "The experiment as its start recorded it.",
        "operationId": "webhook_experiment_started",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent_WebhookExperiment_"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Any 2xx within 10 seconds acknowledges the event"
          },
          "4XX": {
            "description": "410 ends the delivery and disables the endpoint; any other 4xx but 408 and 429 ends it"
          },
          "5XX": {
            "description": "Retried, as are 408, 429, a timeout and a network error: seven retries over about 28 hours, then the delivery is dead"
          }
        },
        "summary": "An experiment started",
        "tags": [
          "webhooks"
        ]
      }
    },
    "export.completed": {
      "post": {
        "description": "Once when an export reaches completed. download_url is null: fetch urls.self with your key for a fresh link.",
        "operationId": "webhook_export_completed",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent_ExportSummary_"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Any 2xx within 10 seconds acknowledges the event"
          },
          "4XX": {
            "description": "410 ends the delivery and disables the endpoint; any other 4xx but 408 and 429 ends it"
          },
          "5XX": {
            "description": "Retried, as are 408, 429, a timeout and a network error: seven retries over about 28 hours, then the delivery is dead"
          }
        },
        "summary": "An export finished",
        "tags": [
          "webhooks"
        ]
      }
    },
    "identity.captured": {
      "post": {
        "description": "The moment a session writes an email or phone it had not written before; only to endpoints with include_pii. The session as of the capture, plus the identity.",
        "operationId": "webhook_identity_captured",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent_WebhookIdentityCaptured_"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Any 2xx within 10 seconds acknowledges the event"
          },
          "4XX": {
            "description": "410 ends the delivery and disables the endpoint; any other 4xx but 408 and 429 ends it"
          },
          "5XX": {
            "description": "Retried, as are 408, 429, a timeout and a network error: seven retries over about 28 hours, then the delivery is dead"
          }
        },
        "summary": "A shopper left an email or phone",
        "tags": [
          "webhooks"
        ]
      }
    },
    "ping": {
      "post": {
        "description": "Sent to the endpoint you ping; a successful ping activates an unverified endpoint. GET /v1/events does not list it.",
        "operationId": "webhook_ping",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent_WebhookPing_"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Any 2xx within 10 seconds acknowledges the event"
          },
          "4XX": {
            "description": "410 ends the delivery and disables the endpoint; any other 4xx but 408 and 429 ends it"
          },
          "5XX": {
            "description": "Retried, as are 408, 429, a timeout and a network error: seven retries over about 28 hours, then the delivery is dead"
          }
        },
        "summary": "A test event",
        "tags": [
          "webhooks"
        ]
      }
    },
    "profile.created": {
      "post": {
        "description": "When an identity creates a new person; identities on endpoints with include_pii.",
        "operationId": "webhook_profile_created",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent_WebhookProfile_"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Any 2xx within 10 seconds acknowledges the event"
          },
          "4XX": {
            "description": "410 ends the delivery and disables the endpoint; any other 4xx but 408 and 429 ends it"
          },
          "5XX": {
            "description": "Retried, as are 408, 429, a timeout and a network error: seven retries over about 28 hours, then the delivery is dead"
          }
        },
        "summary": "A shopper profile was created",
        "tags": [
          "webhooks"
        ]
      }
    },
    "profile.updated": {
      "post": {
        "description": "When an identity is attached to, moved to or rewritten on a person; not when a shopper types a contact the person already has.",
        "operationId": "webhook_profile_updated",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent_WebhookProfile_"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Any 2xx within 10 seconds acknowledges the event"
          },
          "4XX": {
            "description": "410 ends the delivery and disables the endpoint; any other 4xx but 408 and 429 ends it"
          },
          "5XX": {
            "description": "Retried, as are 408, 429, a timeout and a network error: seven retries over about 28 hours, then the delivery is dead"
          }
        },
        "summary": "A shopper profile changed",
        "tags": [
          "webhooks"
        ]
      }
    },
    "quiz.abandoned": {
      "post": {
        "description": "When a started session has been idle for 30 minutes: the answers so far and the last page, no outcomes.",
        "operationId": "webhook_quiz_abandoned",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent_WebhookSessionSummary_"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Any 2xx within 10 seconds acknowledges the event"
          },
          "4XX": {
            "description": "410 ends the delivery and disables the endpoint; any other 4xx but 408 and 429 ends it"
          },
          "5XX": {
            "description": "Retried, as are 408, 429, a timeout and a network error: seven retries over about 28 hours, then the delivery is dead"
          }
        },
        "summary": "A started session went idle",
        "tags": [
          "webhooks"
        ]
      }
    },
    "quiz.finished": {
      "post": {
        "description": "About a minute after the session completes, with the answers, outcomes and products shown through that minute, and identities on endpoints with include_pii.",
        "operationId": "webhook_quiz_finished",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent_WebhookSession_"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Any 2xx within 10 seconds acknowledges the event"
          },
          "4XX": {
            "description": "410 ends the delivery and disables the endpoint; any other 4xx but 408 and 429 ends it"
          },
          "5XX": {
            "description": "Retried, as are 408, 429, a timeout and a network error: seven retries over about 28 hours, then the delivery is dead"
          }
        },
        "summary": "A shopper finished a quiz",
        "tags": [
          "webhooks"
        ]
      }
    },
    "quiz.published": {
      "post": {
        "description": "When a version of a quiz goes live.",
        "operationId": "webhook_quiz_published",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent_WebhookPublished_"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Any 2xx within 10 seconds acknowledges the event"
          },
          "4XX": {
            "description": "410 ends the delivery and disables the endpoint; any other 4xx but 408 and 429 ends it"
          },
          "5XX": {
            "description": "Retried, as are 408, 429, a timeout and a network error: seven retries over about 28 hours, then the delivery is dead"
          }
        },
        "summary": "A quiz version was published",
        "tags": [
          "webhooks"
        ]
      }
    },
    "quiz.started": {
      "post": {
        "description": "Once per session, on the shopper's first move forward or first collected answer. Carries the start only: no answers and no identities.",
        "operationId": "webhook_quiz_started",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent_WebhookSessionStarted_"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Any 2xx within 10 seconds acknowledges the event"
          },
          "4XX": {
            "description": "410 ends the delivery and disables the endpoint; any other 4xx but 408 and 429 ends it"
          },
          "5XX": {
            "description": "Retried, as are 408, 429, a timeout and a network error: seven retries over about 28 hours, then the delivery is dead"
          }
        },
        "summary": "A shopper started a quiz",
        "tags": [
          "webhooks"
        ]
      }
    },
    "webhook.endpoint.disabled": {
      "post": {
        "description": "Sent to the store's other subscribed endpoints when one answered 410 or kept failing for five days.",
        "operationId": "webhook_webhook_endpoint_disabled",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent_WebhookDisabled_"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Any 2xx within 10 seconds acknowledges the event"
          },
          "4XX": {
            "description": "410 ends the delivery and disables the endpoint; any other 4xx but 408 and 429 ends it"
          },
          "5XX": {
            "description": "Retried, as are 408, 429, a timeout and a network error: seven retries over about 28 hours, then the delivery is dead"
          }
        },
        "summary": "A webhook endpoint was disabled",
        "tags": [
          "webhooks"
        ]
      }
    }
  },
  "x-tagGroups": [
    {
      "name": "Store",
      "tags": [
        "store"
      ]
    },
    {
      "name": "Quizzes",
      "tags": [
        "quizzes"
      ]
    },
    {
      "name": "Experiments",
      "tags": [
        "experiments"
      ]
    },
    {
      "name": "Analytics",
      "tags": [
        "analytics"
      ]
    },
    {
      "name": "People",
      "tags": [
        "profiles"
      ]
    },
    {
      "name": "Exports",
      "tags": [
        "exports"
      ]
    },
    {
      "name": "Webhooks",
      "tags": [
        "webhooks"
      ]
    }
  ]
}
