{
  "openapi": "3.0.0",
  "paths": {
    "/v1/sites": {
      "get": {
        "description": "Lists the Sites this key can access, newest first. Account-scoped keys can access every Site in the account. Client-scoped keys can access only Sites for that Client. Archived Sites are not listed.",
        "operationId": "listSites",
        "parameters": [
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "description": "Opaque cursor from the previous page. Omit for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "schema": {
              "minimum": 1,
              "maximum": 100,
              "default": 25,
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListSitesResponseDto"
                }
              }
            }
          },
          "402": {
            "description": "trial_expired: the free trial for this account has ended and no plan has been chosen. The body includes trialEndsAt and plansUrl."
          }
        },
        "summary": "List Sites",
        "tags": ["Sites"]
      }
    },
    "/v1/clients": {
      "get": {
        "description": "Lists the Clients this key can access, newest first. A client-scoped key can access only its assigned Client. Business accounts receive an empty list. Archived Clients are not listed.",
        "operationId": "listClients",
        "parameters": [
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "description": "Opaque cursor from the previous page. Omit for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "schema": {
              "minimum": 1,
              "maximum": 100,
              "default": 25,
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListClientsResponseDto"
                }
              }
            }
          },
          "402": {
            "description": "trial_expired: the free trial for this account has ended and no plan has been chosen. The body includes trialEndsAt and plansUrl."
          }
        },
        "summary": "List Clients",
        "tags": ["Clients"]
      }
    },
    "/v1/clients/{clientId}/sites": {
      "get": {
        "description": "Lists the active Sites managed for one Client, newest first. A client-scoped key can request only its assigned Client. Archived Sites are not listed.",
        "operationId": "listClientSites",
        "parameters": [
          {
            "name": "clientId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "description": "Opaque cursor from the previous page. Omit for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "schema": {
              "minimum": 1,
              "maximum": 100,
              "default": 25,
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListClientSitesResponseDto"
                }
              }
            }
          },
          "402": {
            "description": "trial_expired: the free trial for this account has ended and no plan has been chosen. The body includes trialEndsAt and plansUrl."
          },
          "404": {
            "description": "The Client does not exist or this key cannot access it."
          }
        },
        "summary": "List Sites for a Client",
        "tags": ["Clients"]
      }
    },
    "/v1/sites/{siteId}/scans": {
      "post": {
        "description": "Starts a Scan for the Site. The response includes the Scan ID and its initial status so you can poll it with Get a Scan.",
        "operationId": "triggerScan",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScanDto"
                }
              }
            }
          },
          "402": {
            "description": "Scan allowance exhausted. trial_expired: the free trial for this account has ended and no plan has been chosen. The body includes trialEndsAt and plansUrl."
          },
          "403": {
            "description": "Scan allowance exhausted."
          },
          "404": {
            "description": "Site not found."
          }
        },
        "summary": "Start a Scan",
        "tags": ["Scans"]
      },
      "get": {
        "description": "Lists the Site’s Scan history, newest first. Use createdAt and completedAt to check cadence and data freshness.",
        "operationId": "listScans",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "description": "Opaque cursor from the previous page. Omit for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "schema": {
              "minimum": 1,
              "maximum": 100,
              "default": 25,
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListScansResponseDto"
                }
              }
            }
          },
          "402": {
            "description": "trial_expired: the free trial for this account has ended and no plan has been chosen. The body includes trialEndsAt and plansUrl."
          },
          "404": {
            "description": "Site not found."
          }
        },
        "summary": "List Scans",
        "tags": ["Scans"]
      }
    },
    "/v1/sites/{siteId}/scans/{scanId}": {
      "get": {
        "description": "Gets the current status and timestamps for one Scan.",
        "operationId": "getScan",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "scanId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScanDto"
                }
              }
            }
          },
          "402": {
            "description": "trial_expired: the free trial for this account has ended and no plan has been chosen. The body includes trialEndsAt and plansUrl."
          },
          "404": {
            "description": "Site or Scan not found."
          }
        },
        "summary": "Get a Scan",
        "tags": ["Scans"]
      }
    },
    "/v1/sites/{siteId}/reports/scorecard": {
      "get": {
        "description": "See the brand and its tracked competitors across visibility, Share of Voice, sentiment, gap, and health for each Scan. Filter by platform, region, or date.",
        "operationId": "getScorecard",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "promptId",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to these prompts (promptIds).",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "tag",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to prompts with these tags.",
            "schema": {
              "example": ["pricing"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "category",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to prompts in these categories.",
            "schema": {
              "example": ["comparison"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "product",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to prompts about these products.",
            "schema": {
              "example": ["Car Insurance"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "persona",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to prompts targeting these personas.",
            "schema": {
              "example": ["Landlords"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "stage",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to prompts in these journey stages.",
            "schema": {
              "example": ["Decision"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "brandMention",
            "required": false,
            "in": "query",
            "description": "Limit to prompts that do, or do not, mention the tracked brand.",
            "schema": {
              "type": "string",
              "enum": [
                "mentions_tracked_brand",
                "does_not_mention_tracked_brand"
              ]
            }
          },
          {
            "name": "platform",
            "required": false,
            "in": "query",
            "description": "Repeat to select AI platforms. Omit for every platform.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "anthropic_claude_3_5_sonnet",
                  "anthropic_claude_4_sonnet_20250522",
                  "claude_api",
                  "anthropic_claude_sonnet_4_6",
                  "chatgpt_api",
                  "chatgpt_api_mini",
                  "chatgpt_api_gpt_5",
                  "google_gemini_2_5_flash",
                  "gemini_api",
                  "perplexity_sonar",
                  "perplexity_sonar_pro",
                  "chatgpt_app",
                  "gemini_app",
                  "google_ai_summaries_app",
                  "google_ai_mode_app",
                  "microsoft_copilot_app",
                  "perplexity_app",
                  "grok_app"
                ]
              }
            }
          },
          {
            "name": "region",
            "required": false,
            "in": "query",
            "description": "Repeat to select region codes. Omit for all regions.",
            "schema": {
              "example": ["NZ:auckland"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "brand",
            "required": false,
            "in": "query",
            "description": "Repeat to limit which brands are returned (brand identity ids). Does not change Share of Voice denominators.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "competitorId",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to these tracked competitors (competitorId from the competitors catalogue). Combines with brand. A discovered competitor is refused until it is tracked.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "startDate",
            "required": false,
            "in": "query",
            "description": "Inclusive lower bound, as a UTC calendar day (YYYY-MM-DD). Omit for none.",
            "schema": {
              "example": "2026-07-01",
              "type": "string"
            }
          },
          {
            "name": "endDate",
            "required": false,
            "in": "query",
            "description": "Inclusive upper bound, as a UTC calendar day (YYYY-MM-DD). Omit for none.",
            "schema": {
              "example": "2026-07-31",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScorecardReportResponseDto"
                }
              }
            }
          },
          "402": {
            "description": "trial_expired: the free trial for this account has ended and no plan has been chosen. The body includes trialEndsAt and plansUrl."
          },
          "404": {
            "description": "Site not found."
          }
        },
        "summary": "Get Brand Scorecard results",
        "tags": ["Reports"]
      }
    },
    "/v1/sites/{siteId}/scan-config": {
      "get": {
        "description": "The Site's scan setup, including strategicGoal. Pass scanId for the frozen setup used by that Scan; omit it for the working setup. Includes business profile, personas, products, journey stages, the AI models it scans (with on/off), regions, schedule, and prompt/competitor counts. List the prompts and competitors themselves via the prompts and competitors endpoints.",
        "operationId": "getScanConfig",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "scanId",
            "required": false,
            "in": "query",
            "description": "Read the configuration snapshot used by this Scan; omit for the working configuration.",
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicScanConfigResponseDto"
                }
              }
            }
          },
          "402": {
            "description": "trial_expired: the free trial for this account has ended and no plan has been chosen. The body includes trialEndsAt and plansUrl."
          },
          "404": {
            "description": "Site not found."
          }
        },
        "summary": "Get scan configuration",
        "tags": ["Sites"]
      }
    },
    "/v1/sites/{siteId}/scan-goal/history": {
      "get": {
        "description": "Saved edits, newest first. Includes changes between scans; paginate with nextCursor.",
        "operationId": "listGoalHistory",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "description": "Opaque cursor from the previous page. Omit for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "schema": {
              "minimum": 1,
              "maximum": 100,
              "default": 25,
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicScanGoalHistoryDto"
                }
              }
            }
          },
          "402": {
            "description": "trial_expired: the free trial for this account has ended and no plan has been chosen. The body includes trialEndsAt and plansUrl."
          }
        },
        "summary": "List strategic goal edits",
        "tags": ["Sites"]
      }
    },
    "/v1/sites/{siteId}/reports/prompt-results": {
      "get": {
        "description": "See the answer each AI platform gave to your prompts in one Scan, with the brand metrics calculated from it. Defaults to the latest Scan; pass scanId for a historical one. Filter by prompt, platform, or region, and page with cursor. Use a result id with the trends endpoint for its change over time.",
        "operationId": "getPromptResults",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "promptId",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to these prompts (promptIds).",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "tag",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to prompts with these tags.",
            "schema": {
              "example": ["pricing"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "category",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to prompts in these categories.",
            "schema": {
              "example": ["comparison"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "product",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to prompts about these products.",
            "schema": {
              "example": ["Car Insurance"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "persona",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to prompts targeting these personas.",
            "schema": {
              "example": ["Landlords"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "stage",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to prompts in these journey stages.",
            "schema": {
              "example": ["Decision"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "brandMention",
            "required": false,
            "in": "query",
            "description": "Limit to prompts that do, or do not, mention the tracked brand.",
            "schema": {
              "type": "string",
              "enum": [
                "mentions_tracked_brand",
                "does_not_mention_tracked_brand"
              ]
            }
          },
          {
            "name": "scanId",
            "required": false,
            "in": "query",
            "description": "Scan to read. Omit for the latest completed Scan; the response echoes the resolved scanId and scanDate.",
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "name": "platform",
            "required": false,
            "in": "query",
            "description": "Repeat to select AI platforms, for example ?platform=chatgpt_app&platform=chatgpt_api. Omit for every platform.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "anthropic_claude_3_5_sonnet",
                  "anthropic_claude_4_sonnet_20250522",
                  "claude_api",
                  "anthropic_claude_sonnet_4_6",
                  "chatgpt_api",
                  "chatgpt_api_mini",
                  "chatgpt_api_gpt_5",
                  "google_gemini_2_5_flash",
                  "gemini_api",
                  "perplexity_sonar",
                  "perplexity_sonar_pro",
                  "chatgpt_app",
                  "gemini_app",
                  "google_ai_summaries_app",
                  "google_ai_mode_app",
                  "microsoft_copilot_app",
                  "perplexity_app",
                  "grok_app"
                ]
              }
            }
          },
          {
            "name": "region",
            "required": false,
            "in": "query",
            "description": "Repeat to select regions, for example ?region=NZ:auckland. Omit for all regions.",
            "schema": {
              "example": ["NZ:auckland"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "description": "Opaque cursor from the previous page (nextCursor). Omit for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "schema": {
              "minimum": 1,
              "maximum": 100,
              "default": 25,
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PromptResultsReportResponseDto"
                }
              }
            }
          },
          "402": {
            "description": "trial_expired: the free trial for this account has ended and no plan has been chosen. The body includes trialEndsAt and plansUrl."
          }
        },
        "summary": "Get Prompt Results",
        "tags": ["Reports"]
      }
    },
    "/v1/sites/{siteId}/reports/prompt-results/{resultId}/trends": {
      "get": {
        "description": "See how one prompt result changed over time: its prompt, platform, and region across every Scan, with the brand metrics at each point.",
        "operationId": "getPromptResultTrends",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resultId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PromptResultTrendsResponseDto"
                }
              }
            }
          },
          "402": {
            "description": "trial_expired: the free trial for this account has ended and no plan has been chosen. The body includes trialEndsAt and plansUrl."
          }
        },
        "summary": "Get Prompt Result Trends",
        "tags": ["Reports"]
      }
    },
    "/v1/sites/{siteId}/reports/references": {
      "get": {
        "description": "See which domains and pages AI platforms cited, how often they appeared, and how that changed over time. Filter by platform, region, scanId, or promptId. For a date period, resolve the Scans from the scans endpoint and pass them as scanId.",
        "operationId": "getReferences",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "promptId",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to these prompts (promptIds).",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "tag",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to prompts with these tags.",
            "schema": {
              "example": ["pricing"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "category",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to prompts in these categories.",
            "schema": {
              "example": ["comparison"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "product",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to prompts about these products.",
            "schema": {
              "example": ["Car Insurance"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "persona",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to prompts targeting these personas.",
            "schema": {
              "example": ["Landlords"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "stage",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to prompts in these journey stages.",
            "schema": {
              "example": ["Decision"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "brandMention",
            "required": false,
            "in": "query",
            "description": "Limit to prompts that do, or do not, mention the tracked brand.",
            "schema": {
              "type": "string",
              "enum": [
                "mentions_tracked_brand",
                "does_not_mention_tracked_brand"
              ]
            }
          },
          {
            "name": "platform",
            "required": false,
            "in": "query",
            "description": "Repeat to select AI platforms. Omit for every platform.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "anthropic_claude_3_5_sonnet",
                  "anthropic_claude_4_sonnet_20250522",
                  "claude_api",
                  "anthropic_claude_sonnet_4_6",
                  "chatgpt_api",
                  "chatgpt_api_mini",
                  "chatgpt_api_gpt_5",
                  "google_gemini_2_5_flash",
                  "gemini_api",
                  "perplexity_sonar",
                  "perplexity_sonar_pro",
                  "chatgpt_app",
                  "gemini_app",
                  "google_ai_summaries_app",
                  "google_ai_mode_app",
                  "microsoft_copilot_app",
                  "perplexity_app",
                  "grok_app"
                ]
              }
            }
          },
          {
            "name": "region",
            "required": false,
            "in": "query",
            "description": "Repeat to select regions. Omit for all regions.",
            "schema": {
              "example": ["NZ:auckland"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "scanId",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to these Scans (scanIds from the scans endpoint). Omit for every Scan. For a date period, resolve the Scans for that period from the scans endpoint and pass them here.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReferencesReportResponseDto"
                }
              }
            }
          },
          "402": {
            "description": "trial_expired: the free trial for this account has ended and no plan has been chosen. The body includes trialEndsAt and plansUrl."
          }
        },
        "summary": "Get References",
        "tags": ["Reports"]
      }
    },
    "/v1/sites/{siteId}/reports/overview": {
      "get": {
        "description": "The state-of-play answer for a Site: the latest Scan’s brand and competitor metrics with per-metric change against the previous Scan. Filter by platform, region, or date.",
        "operationId": "getOverview",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "promptId",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to these prompts (promptIds).",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "tag",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to prompts with these tags.",
            "schema": {
              "example": ["pricing"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "category",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to prompts in these categories.",
            "schema": {
              "example": ["comparison"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "product",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to prompts about these products.",
            "schema": {
              "example": ["Car Insurance"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "persona",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to prompts targeting these personas.",
            "schema": {
              "example": ["Landlords"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "stage",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to prompts in these journey stages.",
            "schema": {
              "example": ["Decision"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "brandMention",
            "required": false,
            "in": "query",
            "description": "Limit to prompts that do, or do not, mention the tracked brand.",
            "schema": {
              "type": "string",
              "enum": [
                "mentions_tracked_brand",
                "does_not_mention_tracked_brand"
              ]
            }
          },
          {
            "name": "platform",
            "required": false,
            "in": "query",
            "description": "Repeat to select AI platforms. Omit for every platform.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "anthropic_claude_3_5_sonnet",
                  "anthropic_claude_4_sonnet_20250522",
                  "claude_api",
                  "anthropic_claude_sonnet_4_6",
                  "chatgpt_api",
                  "chatgpt_api_mini",
                  "chatgpt_api_gpt_5",
                  "google_gemini_2_5_flash",
                  "gemini_api",
                  "perplexity_sonar",
                  "perplexity_sonar_pro",
                  "chatgpt_app",
                  "gemini_app",
                  "google_ai_summaries_app",
                  "google_ai_mode_app",
                  "microsoft_copilot_app",
                  "perplexity_app",
                  "grok_app"
                ]
              }
            }
          },
          {
            "name": "region",
            "required": false,
            "in": "query",
            "description": "Repeat to select region codes. Omit for all regions.",
            "schema": {
              "example": ["NZ:auckland"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "brand",
            "required": false,
            "in": "query",
            "description": "Repeat to limit which brands are returned (brand identity ids). Does not change Share of Voice denominators.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "competitorId",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to these tracked competitors (competitorId from the competitors catalogue). Combines with brand. A discovered competitor is refused until it is tracked.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "startDate",
            "required": false,
            "in": "query",
            "description": "Inclusive lower bound, as a UTC calendar day (YYYY-MM-DD). Omit for none.",
            "schema": {
              "example": "2026-07-01",
              "type": "string"
            }
          },
          {
            "name": "endDate",
            "required": false,
            "in": "query",
            "description": "Inclusive upper bound, as a UTC calendar day (YYYY-MM-DD). Omit for none.",
            "schema": {
              "example": "2026-07-31",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OverviewReportResponseDto"
                }
              }
            }
          },
          "402": {
            "description": "trial_expired: the free trial for this account has ended and no plan has been chosen. The body includes trialEndsAt and plansUrl."
          },
          "404": {
            "description": "Site not found."
          }
        },
        "summary": "Get Visibility Overview",
        "tags": ["Reports"]
      }
    },
    "/v1/sites/{siteId}/reports/timeline": {
      "get": {
        "description": "Metric trends across Scans. groupBy brand compares every brand measured; groupBy platform or region instead tracks a single brand across that dimension, defaulting to the Site's tracked brand and selectable with brandId. Choose the metric with metric; filter by platform, region, or date.",
        "operationId": "getTimeline",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "promptId",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to these prompts (promptIds).",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "tag",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to prompts with these tags.",
            "schema": {
              "example": ["pricing"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "category",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to prompts in these categories.",
            "schema": {
              "example": ["comparison"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "product",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to prompts about these products.",
            "schema": {
              "example": ["Car Insurance"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "persona",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to prompts targeting these personas.",
            "schema": {
              "example": ["Landlords"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "stage",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to prompts in these journey stages.",
            "schema": {
              "example": ["Decision"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "brandMention",
            "required": false,
            "in": "query",
            "description": "Limit to prompts that do, or do not, mention the tracked brand.",
            "schema": {
              "type": "string",
              "enum": [
                "mentions_tracked_brand",
                "does_not_mention_tracked_brand"
              ]
            }
          },
          {
            "name": "platform",
            "required": false,
            "in": "query",
            "description": "Repeat to select AI platforms. Omit for every platform.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "anthropic_claude_3_5_sonnet",
                  "anthropic_claude_4_sonnet_20250522",
                  "claude_api",
                  "anthropic_claude_sonnet_4_6",
                  "chatgpt_api",
                  "chatgpt_api_mini",
                  "chatgpt_api_gpt_5",
                  "google_gemini_2_5_flash",
                  "gemini_api",
                  "perplexity_sonar",
                  "perplexity_sonar_pro",
                  "chatgpt_app",
                  "gemini_app",
                  "google_ai_summaries_app",
                  "google_ai_mode_app",
                  "microsoft_copilot_app",
                  "perplexity_app",
                  "grok_app"
                ]
              }
            }
          },
          {
            "name": "region",
            "required": false,
            "in": "query",
            "description": "Repeat to select region codes. Omit for all regions.",
            "schema": {
              "example": ["NZ:auckland"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "brand",
            "required": false,
            "in": "query",
            "description": "Repeat to limit which brands are returned (brand identity ids). Does not change Share of Voice denominators.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "competitorId",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to these tracked competitors (competitorId from the competitors catalogue). Combines with brand. A discovered competitor is refused until it is tracked.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "startDate",
            "required": false,
            "in": "query",
            "description": "Inclusive lower bound, as a UTC calendar day (YYYY-MM-DD). Omit for none.",
            "schema": {
              "example": "2026-07-01",
              "type": "string"
            }
          },
          {
            "name": "endDate",
            "required": false,
            "in": "query",
            "description": "Inclusive upper bound, as a UTC calendar day (YYYY-MM-DD). Omit for none.",
            "schema": {
              "example": "2026-07-31",
              "type": "string"
            }
          },
          {
            "name": "metric",
            "required": false,
            "in": "query",
            "description": "Which metric the series values carry.",
            "schema": {
              "default": "visibility",
              "type": "string",
              "enum": ["visibility", "shareOfVoice", "sentiment", "gap"]
            }
          },
          {
            "name": "groupBy",
            "required": false,
            "in": "query",
            "description": "brand compares every brand measured. platform and region instead track one brand across that dimension - see brandId.",
            "schema": {
              "default": "brand",
              "type": "string",
              "enum": ["brand", "platform", "region"]
            }
          },
          {
            "name": "brandId",
            "required": false,
            "in": "query",
            "description": "Which brand the platform and region series describe. Defaults to the tracked brand. Ignored when groupBy is brand, which compares every brand.",
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimelineReportResponseDto"
                }
              }
            }
          },
          "402": {
            "description": "trial_expired: the free trial for this account has ended and no plan has been chosen. The body includes trialEndsAt and plansUrl."
          },
          "404": {
            "description": "Site or brand not found."
          }
        },
        "summary": "Get Visibility Timeline",
        "tags": ["Reports"]
      }
    },
    "/v1/sites/{siteId}/competitors": {
      "get": {
        "description": "The Site's tracked competitors — each with its name, domain, description, the reason it is tracked, and its aliases, keyed by a stable competitorId. Cursor-paginated. Pass a competitorId to the metric reports (overview, scorecard, timeline) for that competitor's numbers.",
        "operationId": "listCompetitors",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "description": "Opaque cursor from the previous page (nextCursor). Omit for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "schema": {
              "minimum": 1,
              "maximum": 100,
              "default": 25,
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrackedCompetitorsListResponseDto"
                }
              }
            }
          },
          "402": {
            "description": "trial_expired: the free trial for this account has ended and no plan has been chosen. The body includes trialEndsAt and plansUrl."
          },
          "404": {
            "description": "Site not found."
          }
        },
        "summary": "List competitors",
        "tags": ["Sites"]
      }
    },
    "/v1/sites/{siteId}/discovered-competitors": {
      "get": {
        "description": "Brands AI answers mention that this Site does not track — each with its name, inferred domain, kind, the reasoning behind the classification, an identification confidence, and how often it has been seen (first and last Scan, Scans measured). Filter by kind and Scan. Cursor-paginated. Track a brand in Onsomble to measure it; it then appears in the tracked list with the same competitorId.",
        "operationId": "listDiscoveredCompetitors",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "description": "Opaque cursor from the previous page (nextCursor). Omit for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "schema": {
              "minimum": 1,
              "maximum": 100,
              "default": 25,
              "type": "number"
            }
          },
          {
            "name": "kind",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to these kinds. Omit for all, including brands with no classification.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "direct_competitor",
                  "category_alternative",
                  "channel_or_broker"
                ]
              }
            }
          },
          {
            "name": "scanId",
            "required": false,
            "in": "query",
            "description": "Restrict to brands measured in this Scan. Omit for all-time presence.",
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DiscoveredCompetitorsListResponseDto"
                }
              }
            }
          },
          "402": {
            "description": "trial_expired: the free trial for this account has ended and no plan has been chosen. The body includes trialEndsAt and plansUrl."
          },
          "404": {
            "description": "Site or Scan not found."
          }
        },
        "summary": "List discovered competitors",
        "tags": ["Sites"]
      }
    },
    "/v1/sites/{siteId}/reports/model-breakdown": {
      "get": {
        "description": "Compare one metric for one brand across every AI platform the most recent Scan measured. Choose the metric with metric and the brand with brandId; filter by platform or region.",
        "operationId": "getModelBreakdown",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "platform",
            "required": false,
            "in": "query",
            "description": "Repeat to select AI platforms. Omit for every platform.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "anthropic_claude_3_5_sonnet",
                  "anthropic_claude_4_sonnet_20250522",
                  "claude_api",
                  "anthropic_claude_sonnet_4_6",
                  "chatgpt_api",
                  "chatgpt_api_mini",
                  "chatgpt_api_gpt_5",
                  "google_gemini_2_5_flash",
                  "gemini_api",
                  "perplexity_sonar",
                  "perplexity_sonar_pro",
                  "chatgpt_app",
                  "gemini_app",
                  "google_ai_summaries_app",
                  "google_ai_mode_app",
                  "microsoft_copilot_app",
                  "perplexity_app",
                  "grok_app"
                ]
              }
            }
          },
          {
            "name": "region",
            "required": false,
            "in": "query",
            "description": "Repeat to select region codes. Omit for all regions.",
            "schema": {
              "example": ["NZ:auckland"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "metric",
            "required": false,
            "in": "query",
            "description": "Which metric to break down by platform.",
            "schema": {
              "default": "visibility",
              "type": "string",
              "enum": ["visibility", "shareOfVoice", "sentiment", "gap"]
            }
          },
          {
            "name": "brandId",
            "required": false,
            "in": "query",
            "description": "Brand ID from the Scorecard report. Defaults to the tracked brand.",
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModelBreakdownReportResponseDto"
                }
              }
            }
          },
          "402": {
            "description": "trial_expired: the free trial for this account has ended and no plan has been chosen. The body includes trialEndsAt and plansUrl."
          },
          "404": {
            "description": "Site or Brand not found."
          }
        },
        "summary": "Get Model Breakdown",
        "tags": ["Reports"]
      }
    },
    "/v1/sites/{siteId}/reports/narratives": {
      "get": {
        "description": "See the storylines AI platforms build around the brand for one Scan, each with the brand's standing where available. Filter by the classification vocabulary, platform, region, and scanId. Each narrative's id opens its claims.",
        "operationId": "getNarratives",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "promptId",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to these prompts (promptIds).",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "tag",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to prompts with these tags.",
            "schema": {
              "example": ["pricing"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "category",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to prompts in these categories.",
            "schema": {
              "example": ["comparison"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "product",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to prompts about these products.",
            "schema": {
              "example": ["Car Insurance"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "persona",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to prompts targeting these personas.",
            "schema": {
              "example": ["Landlords"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "stage",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to prompts in these journey stages.",
            "schema": {
              "example": ["Decision"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "brandMention",
            "required": false,
            "in": "query",
            "description": "Limit to prompts that do, or do not, mention the tracked brand.",
            "schema": {
              "type": "string",
              "enum": [
                "mentions_tracked_brand",
                "does_not_mention_tracked_brand"
              ]
            }
          },
          {
            "name": "scanId",
            "required": false,
            "in": "query",
            "description": "Scan to read. Omit for the latest completed Scan; the response echoes the resolved scanId and scanDate.",
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "name": "platform",
            "required": false,
            "in": "query",
            "description": "Repeat to select AI platforms. Omit for every platform.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "anthropic_claude_3_5_sonnet",
                  "anthropic_claude_4_sonnet_20250522",
                  "claude_api",
                  "anthropic_claude_sonnet_4_6",
                  "chatgpt_api",
                  "chatgpt_api_mini",
                  "chatgpt_api_gpt_5",
                  "google_gemini_2_5_flash",
                  "gemini_api",
                  "perplexity_sonar",
                  "perplexity_sonar_pro",
                  "chatgpt_app",
                  "gemini_app",
                  "google_ai_summaries_app",
                  "google_ai_mode_app",
                  "microsoft_copilot_app",
                  "perplexity_app",
                  "grok_app"
                ]
              }
            }
          },
          {
            "name": "region",
            "required": false,
            "in": "query",
            "description": "Repeat to select region codes. Omit for all regions.",
            "schema": {
              "example": ["NZ:auckland"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NarrativesReportResponseDto"
                }
              }
            }
          },
          "402": {
            "description": "trial_expired: the free trial for this account has ended and no plan has been chosen. The body includes trialEndsAt and plansUrl."
          },
          "404": {
            "description": "Site not found."
          }
        },
        "summary": "List narratives",
        "tags": ["Reports"]
      }
    },
    "/v1/sites/{siteId}/narratives/{narrativeId}/claims": {
      "get": {
        "description": "See every claim behind one narrative in a Scan — the verbatim quotes, the prompt, platform and region, the per-brand stances, and the cited sources. Pass a narrativeId from the narratives list.",
        "operationId": "getNarrativeClaims",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "narrativeId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "promptId",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to these prompts (promptIds).",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "tag",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to prompts with these tags.",
            "schema": {
              "example": ["pricing"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "category",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to prompts in these categories.",
            "schema": {
              "example": ["comparison"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "product",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to prompts about these products.",
            "schema": {
              "example": ["Car Insurance"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "persona",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to prompts targeting these personas.",
            "schema": {
              "example": ["Landlords"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "stage",
            "required": false,
            "in": "query",
            "description": "Repeat to limit to prompts in these journey stages.",
            "schema": {
              "example": ["Decision"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "brandMention",
            "required": false,
            "in": "query",
            "description": "Limit to prompts that do, or do not, mention the tracked brand.",
            "schema": {
              "type": "string",
              "enum": [
                "mentions_tracked_brand",
                "does_not_mention_tracked_brand"
              ]
            }
          },
          {
            "name": "scanId",
            "required": false,
            "in": "query",
            "description": "Scan to read. Omit for the latest completed Scan; the response echoes the resolved scanId and scanDate.",
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "name": "platform",
            "required": false,
            "in": "query",
            "description": "Repeat to select AI platforms. Omit for every platform.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "anthropic_claude_3_5_sonnet",
                  "anthropic_claude_4_sonnet_20250522",
                  "claude_api",
                  "anthropic_claude_sonnet_4_6",
                  "chatgpt_api",
                  "chatgpt_api_mini",
                  "chatgpt_api_gpt_5",
                  "google_gemini_2_5_flash",
                  "gemini_api",
                  "perplexity_sonar",
                  "perplexity_sonar_pro",
                  "chatgpt_app",
                  "gemini_app",
                  "google_ai_summaries_app",
                  "google_ai_mode_app",
                  "microsoft_copilot_app",
                  "perplexity_app",
                  "grok_app"
                ]
              }
            }
          },
          {
            "name": "region",
            "required": false,
            "in": "query",
            "description": "Repeat to select region codes. Omit for all regions.",
            "schema": {
              "example": ["NZ:auckland"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NarrativeClaimsReportResponseDto"
                }
              }
            }
          },
          "402": {
            "description": "trial_expired: the free trial for this account has ended and no plan has been chosen. The body includes trialEndsAt and plansUrl."
          },
          "404": {
            "description": "Site not found."
          }
        },
        "summary": "Get claims for a narrative",
        "tags": ["Sites"]
      }
    },
    "/v1/sites/{siteId}/prompts": {
      "get": {
        "description": "The Site or Topic's saved questions, including active and retired rows, text, category, tags, assignments, primary journey stage and saved region selection. Cursor-paginated, with an optional exact promptId filter. Collected AI answers are returned by prompt-results.",
        "operationId": "listPrompts",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "promptId",
            "required": false,
            "in": "query",
            "description": "Filter to one saved question. A missing ID returns an empty list.",
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "description": "Opaque cursor from the previous page (nextCursor). Omit for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "schema": {
              "minimum": 1,
              "maximum": 100,
              "default": 25,
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicPromptsListResponseDto"
                }
              }
            }
          },
          "402": {
            "description": "trial_expired: the free trial for this account has ended and no plan has been chosen. The body includes trialEndsAt and plansUrl."
          },
          "404": {
            "description": "Site not found."
          }
        },
        "summary": "List prompts",
        "tags": ["Sites"]
      }
    },
    "/v1/sites/{siteId}/prompts/{promptId}": {
      "get": {
        "description": "One saved question by promptId, including text, enabled state, tags, assignments, primary journey stage and region selection. This reads current configuration, not historical collected answers.",
        "operationId": "getPrompt",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "promptId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicPromptDto"
                }
              }
            }
          },
          "402": {
            "description": "trial_expired: the free trial for this account has ended and no plan has been chosen. The body includes trialEndsAt and plansUrl."
          },
          "404": {
            "description": "Site or prompt not found."
          }
        },
        "summary": "Get a prompt",
        "tags": ["Sites"]
      }
    },
    "/v1/sites/{siteId}/reports/recommendations": {
      "get": {
        "description": "The Site's current recommendations, filterable by platform, region, persona, product, stage, brand-mention, narrative, board status, and movement since the last Scan. Each carries its prompt references by Scan; open one for its brief and evidence.",
        "operationId": "listRecommendations",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "platform",
            "required": false,
            "in": "query",
            "description": "Repeat to select AI platforms. Omit for every platform.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "anthropic_claude_3_5_sonnet",
                  "anthropic_claude_4_sonnet_20250522",
                  "claude_api",
                  "anthropic_claude_sonnet_4_6",
                  "chatgpt_api",
                  "chatgpt_api_mini",
                  "chatgpt_api_gpt_5",
                  "google_gemini_2_5_flash",
                  "gemini_api",
                  "perplexity_sonar",
                  "perplexity_sonar_pro",
                  "chatgpt_app",
                  "gemini_app",
                  "google_ai_summaries_app",
                  "google_ai_mode_app",
                  "microsoft_copilot_app",
                  "perplexity_app",
                  "grok_app"
                ]
              }
            }
          },
          {
            "name": "region",
            "required": false,
            "in": "query",
            "schema": {
              "example": ["NZ:auckland"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "persona",
            "required": false,
            "in": "query",
            "schema": {
              "example": ["homeowners"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "product",
            "required": false,
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "stage",
            "required": false,
            "in": "query",
            "schema": {
              "example": ["Decision"],
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "brandMention",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "mentions_tracked_brand",
                "does_not_mention_tracked_brand"
              ]
            }
          },
          {
            "name": "narrativeId",
            "required": false,
            "in": "query",
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "name": "status",
            "required": false,
            "in": "query",
            "description": "Board stage. Repeat to select several.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "review",
                  "approved",
                  "underway",
                  "validate",
                  "closed",
                  "archived"
                ]
              }
            }
          },
          {
            "name": "movement",
            "required": false,
            "in": "query",
            "description": "Change since the last Scan. Repeat to select several.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "new",
                  "updated",
                  "stable",
                  "improved",
                  "regressed",
                  "needs_review",
                  "ready",
                  "proven",
                  "declined",
                  "archived"
                ]
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecommendationsListResponseDto"
                }
              }
            }
          },
          "402": {
            "description": "trial_expired: the free trial for this account has ended and no plan has been chosen. The body includes trialEndsAt and plansUrl."
          }
        },
        "summary": "List recommendations",
        "tags": ["Reports"]
      }
    },
    "/v1/sites/{siteId}/recommendations/{recommendationId}": {
      "get": {
        "description": "One recommendation: its brief (what to do and why), the standing history, and the evidence quotes.",
        "operationId": "getRecommendation",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "recommendationId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecommendationDetailResponseDto"
                }
              }
            }
          },
          "402": {
            "description": "trial_expired: the free trial for this account has ended and no plan has been chosen. The body includes trialEndsAt and plansUrl."
          },
          "404": {
            "description": "Recommendation not found."
          }
        },
        "summary": "Get a recommendation",
        "tags": ["Sites"]
      }
    },
    "/v1/sites/{siteId}/recommendations/{recommendationId}/actions": {
      "get": {
        "operationId": "listActions",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "recommendationId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecommendationActionsResponseDto"
                }
              }
            }
          },
          "402": {
            "description": "trial_expired: the free trial for this account has ended and no plan has been chosen. The body includes trialEndsAt and plansUrl."
          }
        },
        "summary": "List recommendation actions",
        "tags": ["Sites"]
      },
      "post": {
        "description": "Requires the recommendations:create scope.",
        "operationId": "addAction",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "recommendationId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRecommendationActionDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecommendationActionsResponseDto"
                }
              }
            }
          },
          "402": {
            "description": "trial_expired: the free trial for this account has ended and no plan has been chosen. The body includes trialEndsAt and plansUrl."
          },
          "403": {
            "description": "Key has no creator to attribute the write to."
          }
        },
        "summary": "Add a recommendation action",
        "tags": ["Sites"]
      }
    },
    "/v1/sites/{siteId}/recommendations/{recommendationId}/actions/{activityId}": {
      "patch": {
        "description": "Requires the recommendations:update scope.",
        "operationId": "updateAction",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "recommendationId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "activityId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRecommendationActionDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecommendationActionsResponseDto"
                }
              }
            }
          },
          "402": {
            "description": "trial_expired: the free trial for this account has ended and no plan has been chosen. The body includes trialEndsAt and plansUrl."
          }
        },
        "summary": "Update a recommendation action",
        "tags": ["Sites"]
      },
      "delete": {
        "description": "Requires the recommendations:delete scope.",
        "operationId": "deleteAction",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "recommendationId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "activityId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecommendationActionsResponseDto"
                }
              }
            }
          },
          "402": {
            "description": "trial_expired: the free trial for this account has ended and no plan has been chosen. The body includes trialEndsAt and plansUrl."
          }
        },
        "summary": "Delete a recommendation action",
        "tags": ["Sites"]
      }
    },
    "/v1/sites/{siteId}/recommendations/{recommendationId}/notes": {
      "get": {
        "operationId": "listNotes",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "recommendationId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecommendationNotesResponseDto"
                }
              }
            }
          },
          "402": {
            "description": "trial_expired: the free trial for this account has ended and no plan has been chosen. The body includes trialEndsAt and plansUrl."
          }
        },
        "summary": "List recommendation notes",
        "tags": ["Sites"]
      },
      "post": {
        "description": "Requires the recommendations:create scope.",
        "operationId": "addNote",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "recommendationId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecommendationNoteBodyDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecommendationNotesResponseDto"
                }
              }
            }
          },
          "402": {
            "description": "trial_expired: the free trial for this account has ended and no plan has been chosen. The body includes trialEndsAt and plansUrl."
          },
          "403": {
            "description": "Key has no creator to attribute the write to."
          }
        },
        "summary": "Add a recommendation note",
        "tags": ["Sites"]
      }
    },
    "/v1/sites/{siteId}/recommendations/{recommendationId}/notes/{activityId}": {
      "patch": {
        "description": "Requires the recommendations:update scope.",
        "operationId": "updateNote",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "recommendationId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "activityId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecommendationNoteBodyDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecommendationNotesResponseDto"
                }
              }
            }
          },
          "402": {
            "description": "trial_expired: the free trial for this account has ended and no plan has been chosen. The body includes trialEndsAt and plansUrl."
          }
        },
        "summary": "Update a recommendation note",
        "tags": ["Sites"]
      },
      "delete": {
        "description": "Requires the recommendations:delete scope.",
        "operationId": "deleteNote",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "recommendationId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "activityId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecommendationNotesResponseDto"
                }
              }
            }
          },
          "402": {
            "description": "trial_expired: the free trial for this account has ended and no plan has been chosen. The body includes trialEndsAt and plansUrl."
          }
        },
        "summary": "Delete a recommendation note",
        "tags": ["Sites"]
      }
    },
    "/v1/sites/{siteId}/filters": {
      "get": {
        "description": "List the tags, categories, products, personas, journey stages, regions, platforms, tracked brands, and brand-mention tokens this Site supports for the report filters. Pass scanId to narrow to one Scan.",
        "operationId": "getFilterOptions",
        "parameters": [
          {
            "name": "siteId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "scanId",
            "required": false,
            "in": "query",
            "description": "Narrow the values to those present in this Scan. Omit for the Site vocabulary across all Scans.",
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicFilterOptionsResponseDto"
                }
              }
            }
          },
          "402": {
            "description": "trial_expired: the free trial for this account has ended and no plan has been chosen. The body includes trialEndsAt and plansUrl."
          },
          "404": {
            "description": "Site not found."
          }
        },
        "summary": "Discover filter options",
        "tags": ["Sites"]
      }
    }
  },
  "info": {
    "title": "Onsomble API",
    "description": "Connect Onsomble to your reporting and operational workflows. Read discoverability results or start a Scan from another system.",
    "version": "1.0.0",
    "contact": {}
  },
  "tags": [
    {
      "name": "Sites",
      "description": "Sites connected to your account."
    },
    {
      "name": "Clients",
      "description": "Clients in your account."
    },
    {
      "name": "Scans",
      "description": "Scan history, status, and controls."
    },
    {
      "name": "Reports",
      "description": "AI discoverability results."
    }
  ],
  "servers": [
    {
      "url": "https://api.onsomble.ai",
      "description": "Production"
    }
  ],
  "components": {
    "securitySchemes": {
      "apiKeyAuth": {
        "scheme": "bearer",
        "bearerFormat": "ons_…",
        "type": "http",
        "description": "An API key created in Settings → Account → API Keys."
      }
    },
    "schemas": {
      "SiteDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "example": "Acme Retail"
          },
          "url": {
            "type": "string",
            "nullable": true,
            "example": "https://acme.example"
          },
          "subjectKind": {
            "type": "string",
            "enum": ["site", "topic"]
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "topicProfile": {
            "type": "object"
          },
          "scanExecutionSupported": {
            "type": "boolean",
            "description": "Whether manual scan execution is supported for this subject."
          },
          "clientId": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "description": "The client this site is managed for. null for standalone research or business Sites."
          },
          "createdAt": {
            "type": "string",
            "example": "2026-07-01T09:30:00.000Z"
          },
          "updatedAt": {
            "type": "string",
            "example": "2026-07-10T17:12:00.000Z"
          },
          "archivedAt": {
            "type": "string",
            "nullable": true,
            "example": null,
            "description": "When the Site was archived, or null while it is active. An archived Site is read-only: it is left out of lists, its scan schedule is paused and writes are refused with site_archived, while its pages and reports stay readable."
          }
        },
        "required": [
          "id",
          "name",
          "url",
          "subjectKind",
          "clientId",
          "createdAt",
          "updatedAt",
          "archivedAt"
        ]
      },
      "ListSitesResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SiteDto"
            }
          },
          "nextCursor": {
            "type": "string",
            "nullable": true,
            "description": "Opaque cursor: pass back as `cursor` for the next page. Iterate until it is null; pages may occasionally hold fewer than `limit` items, so an empty or short page with a non-null cursor is not the end of the list."
          }
        },
        "required": ["data", "nextCursor"]
      },
      "ClientDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "example": "Acme Holdings"
          },
          "websiteUrl": {
            "type": "string",
            "nullable": true,
            "example": "https://acme.example",
            "description": "The Client organisation's own website, if known."
          },
          "industry": {
            "type": "string",
            "nullable": true,
            "example": "Retail"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "example": "2026-07-01T09:30:00.000Z"
          },
          "updatedAt": {
            "type": "string",
            "example": "2026-07-10T17:12:00.000Z"
          },
          "archivedAt": {
            "type": "string",
            "nullable": true,
            "example": null,
            "description": "When the Client was archived, or null while it is active. Archiving a Client archives every Site under it. An archived Client is read-only: it is left out of lists and writes are refused with client_archived."
          }
        },
        "required": [
          "id",
          "name",
          "websiteUrl",
          "industry",
          "description",
          "createdAt",
          "updatedAt",
          "archivedAt"
        ]
      },
      "ListClientsResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ClientDto"
            }
          },
          "nextCursor": {
            "type": "string",
            "nullable": true,
            "description": "Opaque cursor for the next page, or null at the end."
          }
        },
        "required": ["data", "nextCursor"]
      },
      "ListClientSitesResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SiteDto"
            }
          },
          "nextCursor": {
            "type": "string",
            "nullable": true,
            "description": "Opaque cursor for the next page, or null at the end."
          }
        },
        "required": ["data", "nextCursor"]
      },
      "ScanDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": ["queued", "running", "completed", "failed"],
            "example": "completed"
          },
          "createdAt": {
            "type": "string",
            "example": "2026-07-01T09:30:00.000Z"
          },
          "startedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "example": "2026-07-01T09:31:00.000Z"
          },
          "completedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "example": "2026-07-01T09:42:00.000Z",
            "description": "When the Scan reached a terminal state. Null while it is queued or running."
          },
          "updatedAt": {
            "type": "string",
            "example": "2026-07-01T09:42:00.000Z"
          }
        },
        "required": [
          "id",
          "status",
          "createdAt",
          "startedAt",
          "completedAt",
          "updatedAt"
        ]
      },
      "ListScansResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ScanDto"
            }
          },
          "nextCursor": {
            "type": "string",
            "nullable": true,
            "description": "Opaque cursor for the next page, or null at the end."
          }
        },
        "required": ["data", "nextCursor"]
      },
      "ScorecardBrandMetricsDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "example": "Acme"
          },
          "type": {
            "type": "string",
            "enum": ["brand", "competitor"],
            "example": "brand"
          },
          "visibility": {
            "type": "number",
            "example": 62.5,
            "description": "Visibility percentage."
          },
          "shareOfVoice": {
            "type": "number",
            "example": 41.2,
            "description": "Share of Voice percentage."
          },
          "sentiment": {
            "type": "object",
            "example": 62,
            "nullable": true,
            "description": "Average sentiment on a 0 to 100 scale (50 = neutral; runs finalized before the claims cutover used -100 to 100). Null when the brand has no sentiment evidence."
          },
          "gap": {
            "type": "number",
            "example": 37.5,
            "description": "Remaining visibility opportunity; lower is better."
          },
          "health": {
            "type": "number",
            "example": 43,
            "description": "Composite health score."
          }
        },
        "required": [
          "id",
          "name",
          "type",
          "visibility",
          "shareOfVoice",
          "sentiment",
          "gap",
          "health"
        ]
      },
      "ScorecardReportPointDto": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "example": "2026-07-01",
            "description": "The UTC calendar day of the Scan. Use `completedAt` for the exact time, to show the day in your user's time zone."
          },
          "completedAt": {
            "type": "string",
            "nullable": true,
            "format": "date-time",
            "example": "2026-07-01T09:42:00.000Z",
            "description": "When the Scan finished, as an ISO 8601 UTC timestamp. Format it in your user's time zone to show the day. Null when not known."
          },
          "scanId": {
            "type": "string",
            "format": "uuid",
            "description": "The Scan behind this point."
          },
          "brands": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ScorecardBrandMetricsDto"
            }
          }
        },
        "required": ["date", "scanId", "brands"]
      },
      "AppliedReportFiltersDto": {
        "type": "object",
        "properties": {
          "platform": {
            "example": ["chatgpt_app", "chatgpt_api"],
            "description": "Platform IDs applied to the report. Empty means all.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "region": {
            "example": ["NZ", "AU"],
            "description": "Region codes applied to the report. Empty means all.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "startDate": {
            "type": "string",
            "nullable": true,
            "example": "2026-07-01",
            "description": "UTC calendar day."
          },
          "endDate": {
            "type": "string",
            "nullable": true,
            "example": "2026-07-31",
            "description": "UTC calendar day."
          }
        },
        "required": ["platform", "region", "startDate", "endDate"]
      },
      "ScorecardReportResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ScorecardReportPointDto"
            }
          },
          "filters": {
            "$ref": "#/components/schemas/AppliedReportFiltersDto"
          }
        },
        "required": ["data", "filters"]
      },
      "AeoStrategicGoalDto": {
        "type": "object",
        "properties": {
          "objective": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          }
        },
        "required": ["objective"]
      },
      "ScanConfigAliasBucketsDto": {
        "type": "object",
        "properties": {
          "safeExactAliases": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "domainAliases": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "ambiguousAliases": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": ["safeExactAliases", "domainAliases", "ambiguousAliases"]
      },
      "ScanConfigBusinessProfileDto": {
        "type": "object",
        "properties": {
          "businessName": {
            "type": "string"
          },
          "industry": {
            "type": "string"
          },
          "market": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "domain": {
            "type": "string"
          },
          "products": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "operatingRegions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "aliases": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "aliasBuckets": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/ScanConfigAliasBucketsDto"
              }
            ]
          }
        },
        "required": [
          "businessName",
          "industry",
          "market",
          "description",
          "domain",
          "products",
          "operatingRegions",
          "aliases",
          "aliasBuckets"
        ]
      },
      "ScanConfigAliasedItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "aliases": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": ["id", "name", "description", "aliases"]
      },
      "ScanConfigNamedItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "required": ["id", "name", "description"]
      },
      "ScanConfigModelDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "chatgpt_app",
            "description": "Platform id."
          },
          "name": {
            "type": "string"
          },
          "selected": {
            "type": "boolean",
            "description": "Whether this model is turned on for the Site."
          }
        },
        "required": ["id", "name", "selected"]
      },
      "ScanConfigScheduleDto": {
        "type": "object",
        "properties": {
          "frequency": {
            "type": "string",
            "example": "weekly"
          },
          "enabled": {
            "type": "boolean"
          },
          "nextRunAt": {
            "type": "string",
            "nullable": true
          }
        },
        "required": ["frequency", "enabled", "nextRunAt"]
      },
      "ScanConfigCountDto": {
        "type": "object",
        "properties": {
          "total": {
            "type": "number",
            "example": 18
          }
        },
        "required": ["total"]
      },
      "PublicScanConfigResponseDto": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "enum": ["working", "scan_snapshot"]
          },
          "scanId": {
            "type": "string"
          },
          "configVersion": {
            "type": "object"
          },
          "strategicGoal": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/AeoStrategicGoalDto"
              }
            ]
          },
          "subjectKind": {
            "type": "string",
            "enum": ["site", "topic"]
          },
          "topicContext": {
            "type": "object",
            "description": "Topic title, scope and focal entity. Absent for brand sites."
          },
          "clientId": {
            "type": "string",
            "nullable": true
          },
          "focalEntityId": {
            "type": "string",
            "nullable": true
          },
          "trackedEntities": {
            "description": "Topic roster. entityId is the stable identity used for edits and focal selection; id is the configuration row.",
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "scanExecutionSupported": {
            "type": "boolean",
            "description": "Whether manual scan execution is supported for this subject."
          },
          "businessProfile": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/ScanConfigBusinessProfileDto"
              }
            ]
          },
          "personas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ScanConfigAliasedItemDto"
            }
          },
          "products": {
            "description": "Scan-strategy products (distinct from the profile products).",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ScanConfigAliasedItemDto"
            }
          },
          "journeyStages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ScanConfigNamedItemDto"
            }
          },
          "models": {
            "description": "Every selectable AI model, with whether the Site scans it.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ScanConfigModelDto"
            }
          },
          "regions": {
            "description": "Region codes the Site scans.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "schedule": {
            "$ref": "#/components/schemas/ScanConfigScheduleDto"
          },
          "prompts": {
            "description": "Prompt count; list them via GET …/prompts.",
            "allOf": [
              {
                "$ref": "#/components/schemas/ScanConfigCountDto"
              }
            ]
          },
          "competitors": {
            "description": "Tracked competitor count; list them via GET …/competitors.",
            "allOf": [
              {
                "$ref": "#/components/schemas/ScanConfigCountDto"
              }
            ]
          }
        },
        "required": [
          "strategicGoal",
          "subjectKind",
          "businessProfile",
          "personas",
          "products",
          "journeyStages",
          "models",
          "regions",
          "schedule",
          "prompts",
          "competitors"
        ]
      },
      "PublicScanGoalChangeDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "changedAt": {
            "type": "string"
          },
          "actorUserId": {
            "type": "string",
            "nullable": true
          },
          "strategicGoalBefore": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/AeoStrategicGoalDto"
              }
            ]
          },
          "strategicGoalAfter": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/AeoStrategicGoalDto"
              }
            ]
          }
        },
        "required": [
          "id",
          "changedAt",
          "actorUserId",
          "strategicGoalBefore",
          "strategicGoalAfter"
        ]
      },
      "PublicScanGoalHistoryDto": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicScanGoalChangeDto"
            }
          },
          "nextCursor": {
            "type": "string",
            "nullable": true
          }
        },
        "required": ["items", "nextCursor"]
      },
      "PublicPlatformDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "chatgpt_app",
            "description": "Stable ID for the platform and collection method."
          },
          "name": {
            "type": "string",
            "example": "ChatGPT"
          },
          "method": {
            "type": "string",
            "enum": ["web", "api"],
            "example": "web",
            "description": "How Onsomble collected the result: from the public website or through an API."
          }
        },
        "required": ["id", "name", "method"]
      },
      "PromptResultMetricDto": {
        "type": "object",
        "properties": {
          "brand": {
            "type": "string",
            "example": "state-insurance"
          },
          "type": {
            "type": "string",
            "enum": ["brand", "competitor"],
            "example": "brand"
          },
          "visibility": {
            "type": "number",
            "example": 62.5,
            "description": "Visibility percentage."
          },
          "shareOfVoice": {
            "type": "number",
            "example": 41.2,
            "description": "Share of Voice percentage."
          },
          "sentiment": {
            "type": "object",
            "example": 62,
            "nullable": true,
            "description": "Average sentiment on a 0 to 100 scale (50 = neutral). Null when the brand has no sentiment evidence."
          },
          "mentionCount": {
            "type": "number",
            "example": 3,
            "description": "Number of times the platform mentioned this brand."
          }
        },
        "required": [
          "brand",
          "type",
          "visibility",
          "shareOfVoice",
          "sentiment",
          "mentionCount"
        ]
      },
      "PromptResultDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Stable id for this result. Pass it to the trends endpoint for its change over time."
          },
          "promptId": {
            "type": "string",
            "format": "uuid",
            "description": "The immutable prompt ID."
          },
          "prompt": {
            "type": "string",
            "example": "Which platform helps teams with AI discoverability?"
          },
          "category": {
            "type": "string",
            "nullable": true,
            "example": "research"
          },
          "platform": {
            "$ref": "#/components/schemas/PublicPlatformDto"
          },
          "region": {
            "type": "string",
            "nullable": true,
            "example": "NZ:auckland"
          },
          "responseText": {
            "type": "string",
            "nullable": true,
            "description": "The response returned by the platform."
          },
          "metrics": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PromptResultMetricDto"
            }
          }
        },
        "required": [
          "id",
          "promptId",
          "prompt",
          "category",
          "platform",
          "region",
          "responseText",
          "metrics"
        ]
      },
      "PromptResultsReportResponseDto": {
        "type": "object",
        "properties": {
          "scanId": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "description": "The Scan these results are from. Null only when the Site has no completed Scan."
          },
          "scanDate": {
            "type": "string",
            "nullable": true,
            "example": "2026-09-11",
            "description": "The UTC calendar day of the Scan. Use `scanCompletedAt` for the exact time, to show the day in your user's time zone."
          },
          "scanCompletedAt": {
            "type": "string",
            "nullable": true,
            "format": "date-time",
            "example": "2026-09-11T09:42:00.000Z",
            "description": "When the Scan finished, as an ISO 8601 UTC timestamp. Format it in your user's time zone to show the day. Null when not known."
          },
          "total": {
            "type": "number",
            "example": 638,
            "description": "Total results in this Scan matching the filters."
          },
          "nextCursor": {
            "type": "string",
            "nullable": true,
            "description": "Opaque cursor: pass back as `cursor` for the next page. Null on the last page."
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PromptResultDto"
            }
          }
        },
        "required": ["scanId", "scanDate", "total", "nextCursor", "data"]
      },
      "PromptResultTrendTargetDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "promptId": {
            "type": "string",
            "format": "uuid"
          },
          "prompt": {
            "type": "string",
            "example": "Which platform helps teams with AI discoverability?"
          },
          "category": {
            "type": "string",
            "nullable": true,
            "example": "research"
          },
          "platform": {
            "$ref": "#/components/schemas/PublicPlatformDto"
          },
          "region": {
            "type": "string",
            "nullable": true,
            "example": "NZ:auckland"
          }
        },
        "required": [
          "id",
          "promptId",
          "prompt",
          "category",
          "platform",
          "region"
        ]
      },
      "PromptResultTrendPointDto": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "example": "2026-09-11",
            "description": "The UTC calendar day of the Scan. Use `completedAt` for the exact time, to show the day in your user's time zone."
          },
          "completedAt": {
            "type": "string",
            "nullable": true,
            "format": "date-time",
            "example": "2026-09-11T09:42:00.000Z",
            "description": "When the Scan finished, as an ISO 8601 UTC timestamp. Format it in your user's time zone to show the day. Null when not known."
          },
          "scanId": {
            "type": "string",
            "format": "uuid"
          },
          "metrics": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PromptResultMetricDto"
            }
          }
        },
        "required": ["date", "scanId", "metrics"]
      },
      "PromptResultTrendsResponseDto": {
        "type": "object",
        "properties": {
          "result": {
            "description": "The prompt, platform, and region this series follows.",
            "allOf": [
              {
                "$ref": "#/components/schemas/PromptResultTrendTargetDto"
              }
            ]
          },
          "points": {
            "description": "One point per Scan, oldest first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PromptResultTrendPointDto"
            }
          }
        },
        "required": ["result", "points"]
      },
      "ReferenceTrendPointDto": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "example": "2026-09-11",
            "description": "The UTC calendar day of the Scan. Use `completedAt` for the exact time, to show the day in your user's time zone."
          },
          "completedAt": {
            "type": "string",
            "nullable": true,
            "format": "date-time",
            "example": "2026-09-11T09:42:00.000Z",
            "description": "When the Scan finished, as an ISO 8601 UTC timestamp. Format it in your user's time zone to show the day. Null when not known."
          },
          "scanId": {
            "type": "string",
            "format": "uuid"
          },
          "citationCount": {
            "type": "number",
            "example": 3
          },
          "referenceCount": {
            "type": "number",
            "example": 4
          }
        },
        "required": ["date", "scanId", "citationCount", "referenceCount"]
      },
      "ReferenceDomainDto": {
        "type": "object",
        "properties": {
          "domain": {
            "type": "string",
            "example": "state.co.nz"
          },
          "urls": {
            "example": ["https://state.co.nz/"],
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "citationCount": {
            "type": "number",
            "example": 8703
          },
          "referenceCount": {
            "type": "number",
            "example": 10272
          },
          "promptCount": {
            "type": "number",
            "example": 18
          },
          "platforms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicPlatformDto"
            }
          },
          "trends": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReferenceTrendPointDto"
            }
          }
        },
        "required": [
          "domain",
          "urls",
          "citationCount",
          "referenceCount",
          "promptCount",
          "platforms",
          "trends"
        ]
      },
      "ReferencesAppliedFiltersDto": {
        "type": "object",
        "properties": {
          "platform": {
            "description": "Platform IDs applied. Empty means all.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "region": {
            "description": "Region codes applied. Empty means all.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "scanId": {
            "description": "Scan IDs applied. Empty means all Scans.",
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "promptId": {
            "description": "Prompt IDs applied. Empty means all prompts.",
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          }
        },
        "required": ["platform", "region", "scanId", "promptId"]
      },
      "ReferencesReportResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReferenceDomainDto"
            }
          },
          "filters": {
            "$ref": "#/components/schemas/ReferencesAppliedFiltersDto"
          }
        },
        "required": ["data", "filters"]
      },
      "OverviewMetricDeltasDto": {
        "type": "object",
        "properties": {
          "visibility": {
            "type": "number",
            "example": 4.5,
            "description": "Visibility change in points."
          },
          "shareOfVoice": {
            "type": "number",
            "example": -2.1,
            "description": "Share of Voice change in points."
          },
          "sentiment": {
            "type": "object",
            "example": 3,
            "nullable": true,
            "description": "Sentiment change in points. Null when either Scan lacks sentiment evidence for the brand."
          },
          "gap": {
            "type": "number",
            "example": -4.5,
            "description": "Gap change in points."
          },
          "health": {
            "type": "number",
            "example": 2,
            "description": "Health change in points."
          }
        },
        "required": ["visibility", "shareOfVoice", "sentiment", "gap", "health"]
      },
      "OverviewBrandDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "example": "Acme"
          },
          "type": {
            "type": "string",
            "enum": ["brand", "competitor"],
            "example": "brand"
          },
          "visibility": {
            "type": "number",
            "example": 62.5,
            "description": "Visibility percentage."
          },
          "shareOfVoice": {
            "type": "number",
            "example": 41.2,
            "description": "Share of Voice percentage."
          },
          "sentiment": {
            "type": "object",
            "example": 62,
            "nullable": true,
            "description": "Average sentiment on a 0 to 100 scale (50 = neutral; runs finalized before the claims cutover used -100 to 100). Null when the brand has no sentiment evidence."
          },
          "gap": {
            "type": "number",
            "example": 37.5,
            "description": "Remaining visibility opportunity; lower is better."
          },
          "health": {
            "type": "number",
            "example": 43,
            "description": "Composite health score."
          },
          "deltas": {
            "nullable": true,
            "description": "Change versus the previous Scan in scope. Null when there is no previous Scan or the brand was absent from it.",
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/OverviewMetricDeltasDto"
              }
            ]
          }
        },
        "required": [
          "id",
          "name",
          "type",
          "visibility",
          "shareOfVoice",
          "sentiment",
          "gap",
          "health",
          "deltas"
        ]
      },
      "OverviewReportDataDto": {
        "type": "object",
        "properties": {
          "scanId": {
            "type": "string",
            "format": "uuid",
            "description": "The latest Scan in scope."
          },
          "date": {
            "type": "string",
            "example": "2026-07-31",
            "description": "The UTC calendar day of the Scan. Use `completedAt` for the exact time, to show the day in your user's time zone."
          },
          "completedAt": {
            "type": "string",
            "nullable": true,
            "format": "date-time",
            "example": "2026-07-31T09:42:00.000Z",
            "description": "When the Scan finished, as an ISO 8601 UTC timestamp. Format it in your user's time zone to show the day. Null when not known."
          },
          "previousScanId": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "description": "The Scan the deltas compare against, when one exists."
          },
          "previousDate": {
            "type": "string",
            "nullable": true,
            "example": "2026-07-24",
            "description": "The UTC calendar day of the previous Scan. Use `previousCompletedAt` for the exact time, to show the day in your user's time zone."
          },
          "previousCompletedAt": {
            "type": "string",
            "nullable": true,
            "format": "date-time",
            "example": "2026-07-24T09:42:00.000Z",
            "description": "When the previous Scan finished, as an ISO 8601 UTC timestamp. Null when there is no previous Scan."
          },
          "brand": {
            "nullable": true,
            "description": "The tracked brand. Null when the latest Scan produced no brand metrics.",
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/OverviewBrandDto"
              }
            ]
          },
          "competitors": {
            "description": "Tracked competitors, highest visibility first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OverviewBrandDto"
            }
          }
        },
        "required": [
          "scanId",
          "date",
          "previousScanId",
          "previousDate",
          "brand",
          "competitors"
        ]
      },
      "OverviewReportResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "nullable": true,
            "description": "Null when no completed Scans match the filters.",
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/OverviewReportDataDto"
              }
            ]
          },
          "filters": {
            "$ref": "#/components/schemas/AppliedReportFiltersDto"
          }
        },
        "required": ["data", "filters"]
      },
      "PublicReportBrandDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Pass back as brandId to re-scope a report to this brand."
          },
          "name": {
            "type": "string",
            "example": "Acme"
          }
        },
        "required": ["id", "name"]
      },
      "TimelinePointDto": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "example": "2026-07-31",
            "description": "The UTC calendar day of the Scan. Use `completedAt` for the exact time, to show the day in your user's time zone."
          },
          "completedAt": {
            "type": "string",
            "nullable": true,
            "format": "date-time",
            "example": "2026-07-31T09:42:00.000Z",
            "description": "When the Scan finished, as an ISO 8601 UTC timestamp. Format it in your user's time zone to show the day. Null when not known."
          },
          "value": {
            "type": "number",
            "example": 62.5,
            "nullable": true,
            "description": "Metric value at this Scan. Sentiment uses the same scale as the Scorecard report. Null when the Scan produced no evidence for this series."
          },
          "scanId": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "description": "The Scan behind this point, when attributable."
          }
        },
        "required": ["date", "value", "scanId"]
      },
      "TimelineSeriesDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "example": "acme",
            "description": "Stable series key: brand key, platform ID, or region code depending on groupBy."
          },
          "label": {
            "type": "string",
            "example": "Acme"
          },
          "platform": {
            "description": "Present when groupBy is platform.",
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicPlatformDto"
              }
            ]
          },
          "points": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TimelinePointDto"
            }
          }
        },
        "required": ["key", "label", "points"]
      },
      "TimelineReportResponseDto": {
        "type": "object",
        "properties": {
          "metric": {
            "type": "string",
            "enum": ["visibility", "shareOfVoice", "sentiment", "gap"],
            "example": "visibility"
          },
          "groupBy": {
            "type": "string",
            "enum": ["brand", "platform", "region"],
            "example": "brand"
          },
          "brand": {
            "nullable": true,
            "description": "The Site's tracked brand, or the one named by brandId. Under groupBy platform or region this is the brand every series describes; under brand it identifies the tracked brand among them. Null when the Site has no brand yet.",
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicReportBrandDto"
              }
            ]
          },
          "series": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TimelineSeriesDto"
            }
          },
          "filters": {
            "$ref": "#/components/schemas/AppliedReportFiltersDto"
          }
        },
        "required": ["metric", "groupBy", "brand", "series", "filters"]
      },
      "TrackedCompetitorDto": {
        "type": "object",
        "properties": {
          "entityId": {
            "type": "string",
            "description": "Stable identity id. Use for entity edits and topic focal selection."
          },
          "entityType": {
            "type": "string"
          },
          "entitySubtype": {
            "type": "string",
            "nullable": true
          },
          "disambiguationContext": {
            "type": "string",
            "nullable": true
          },
          "competitorId": {
            "type": "string",
            "format": "uuid",
            "description": "Stable id (brand identity). Pass as competitorId to the metric reports for this competitor’s numbers."
          },
          "name": {
            "type": "string"
          },
          "domain": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true,
            "description": "Who they are."
          },
          "reason": {
            "type": "string",
            "nullable": true,
            "description": "Why this brand is tracked for this Site."
          },
          "aliases": {
            "description": "Names matched as this brand.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "domains": {
            "description": "Domain aliases.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "ambiguousAliases": {
            "description": "Words that match this brand only with more context.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "trackedSince": {
            "type": "string",
            "example": "2026-05-01",
            "description": "When the brand identity was first tracked."
          }
        },
        "required": [
          "entityId",
          "entityType",
          "entitySubtype",
          "disambiguationContext",
          "competitorId",
          "name",
          "domain",
          "description",
          "reason",
          "aliases",
          "domains",
          "ambiguousAliases",
          "trackedSince"
        ]
      },
      "TrackedCompetitorsListResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TrackedCompetitorDto"
            }
          },
          "total": {
            "type": "number",
            "description": "Total tracked competitors matching the query."
          },
          "nextCursor": {
            "type": "string",
            "nullable": true,
            "description": "Opaque cursor: pass back as `cursor` for the next page."
          }
        },
        "required": ["data", "total", "nextCursor"]
      },
      "DiscoveredCompetitorDto": {
        "type": "object",
        "properties": {
          "competitorId": {
            "type": "string",
            "format": "uuid",
            "description": "Stable id (brand identity). Track this brand in Onsomble to measure it; it then appears in the tracked catalogue with the same id."
          },
          "name": {
            "type": "string"
          },
          "domain": {
            "type": "string",
            "nullable": true
          },
          "kind": {
            "type": "string",
            "enum": [
              "direct_competitor",
              "category_alternative",
              "channel_or_broker"
            ],
            "nullable": true,
            "description": "How the discovery model classified the brand."
          },
          "reasoning": {
            "type": "string",
            "nullable": true,
            "description": "Why the AI answer treats this brand as a competitor."
          },
          "confidence": {
            "type": "number",
            "nullable": true,
            "description": "Identification confidence, 0 to 1."
          },
          "firstSeenAt": {
            "type": "string",
            "nullable": true,
            "example": "2026-05-01",
            "description": "UTC calendar day of the first Scan that measured this brand. Use `firstSeenCompletedAt` for the exact time, to show the day in your user's time zone. Null when those Scans have no finalized date yet."
          },
          "firstSeenCompletedAt": {
            "type": "string",
            "nullable": true,
            "format": "date-time",
            "example": "2026-05-01T09:42:00.000Z",
            "description": "When the first Scan that measured this brand finished, as an ISO 8601 UTC timestamp."
          },
          "lastSeenAt": {
            "type": "string",
            "nullable": true,
            "example": "2026-09-04",
            "description": "UTC calendar day of the most recent Scan. Use `lastSeenCompletedAt` for the exact time, to show the day in your user's time zone. Null when not yet finalized."
          },
          "lastSeenCompletedAt": {
            "type": "string",
            "nullable": true,
            "format": "date-time",
            "example": "2026-09-04T09:42:00.000Z",
            "description": "When the most recent Scan that measured this brand finished, as an ISO 8601 UTC timestamp."
          },
          "scansSeen": {
            "type": "number",
            "example": 18,
            "description": "Scans that have measured it."
          }
        },
        "required": [
          "competitorId",
          "name",
          "domain",
          "kind",
          "reasoning",
          "confidence",
          "firstSeenAt",
          "lastSeenAt",
          "scansSeen"
        ]
      },
      "DiscoveredCompetitorsListResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DiscoveredCompetitorDto"
            }
          },
          "total": {
            "type": "number",
            "description": "Total discovered competitors matching the query."
          },
          "nextCursor": {
            "type": "string",
            "nullable": true,
            "description": "Opaque cursor: pass back as `cursor` for the next page."
          }
        },
        "required": ["data", "total", "nextCursor"]
      },
      "ModelBreakdownBrandDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Pass back as brandId to re-scope a report to this brand."
          },
          "name": {
            "type": "string",
            "example": "Acme"
          }
        },
        "required": ["id", "name"]
      },
      "ModelBreakdownEntryDto": {
        "type": "object",
        "properties": {
          "platform": {
            "$ref": "#/components/schemas/PublicPlatformDto"
          },
          "value": {
            "type": "number",
            "example": 62.5,
            "nullable": true,
            "description": "Metric value on this platform. Sentiment uses the same scale as the Scorecard report."
          }
        },
        "required": ["platform", "value"]
      },
      "ModelBreakdownReportDataDto": {
        "type": "object",
        "properties": {
          "brand": {
            "$ref": "#/components/schemas/ModelBreakdownBrandDto"
          },
          "metric": {
            "type": "string",
            "enum": ["visibility", "shareOfVoice", "sentiment", "gap"],
            "example": "visibility"
          },
          "platforms": {
            "description": "One entry per platform the most recent Scan measured for the brand, best value first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModelBreakdownEntryDto"
            }
          }
        },
        "required": ["brand", "metric", "platforms"]
      },
      "AppliedPlatformRegionFiltersDto": {
        "type": "object",
        "properties": {
          "platform": {
            "example": ["chatgpt_app", "chatgpt_api"],
            "description": "Platform IDs applied to the report. Empty means all.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "region": {
            "example": ["NZ", "AU"],
            "description": "Region codes applied to the report. Empty means all.",
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": ["platform", "region"]
      },
      "ModelBreakdownReportResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "nullable": true,
            "description": "Null when the Site has no completed Scan data yet.",
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/ModelBreakdownReportDataDto"
              }
            ]
          },
          "filters": {
            "$ref": "#/components/schemas/AppliedPlatformRegionFiltersDto"
          }
        },
        "required": ["data", "filters"]
      },
      "NarrativeStandingCountsDto": {
        "type": "object",
        "properties": {
          "narrativeCells": {
            "type": "number",
            "example": 449,
            "description": "Answers in scope that carry this narrative."
          },
          "answersInScope": {
            "type": "number",
            "example": 645
          },
          "mentionedCells": {
            "type": "number",
            "example": 51
          },
          "citedCells": {
            "type": "number",
            "example": 45
          },
          "criticisedCells": {
            "type": "number",
            "example": 8
          },
          "recommendedCells": {
            "type": "number",
            "example": 98
          }
        },
        "required": [
          "narrativeCells",
          "answersInScope",
          "mentionedCells",
          "citedCells",
          "criticisedCells",
          "recommendedCells"
        ]
      },
      "NarrativeStandingDto": {
        "type": "object",
        "properties": {
          "level": {
            "type": "number",
            "example": 2,
            "minimum": 0,
            "maximum": 4,
            "description": "Where the tracked brand sits on the five-rung ladder (0 Absent, 1 Criticised, 2 Mentioned, 3 Cited as authority, 4 Recommended)."
          },
          "label": {
            "type": "string",
            "example": "Mentioned",
            "enum": [
              "Absent",
              "Criticised",
              "Mentioned",
              "Cited as authority",
              "Recommended"
            ]
          },
          "previousLevel": {
            "type": "number",
            "nullable": true,
            "example": 1
          },
          "previousLabel": {
            "type": "string",
            "nullable": true,
            "example": "Criticised"
          },
          "trend": {
            "type": "number",
            "nullable": true,
            "example": 1,
            "description": "level − previousLevel; null when there is no previous Scan."
          },
          "topRivalId": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "description": "The rival brand best placed on this narrative, when identified."
          },
          "counts": {
            "$ref": "#/components/schemas/NarrativeStandingCountsDto"
          }
        },
        "required": [
          "level",
          "label",
          "previousLevel",
          "previousLabel",
          "trend",
          "topRivalId",
          "counts"
        ]
      },
      "NarrativeSummaryDto": {
        "type": "object",
        "properties": {
          "narrativeId": {
            "type": "string",
            "format": "uuid",
            "description": "Stable narrative id. Pass it to the claims endpoint."
          },
          "name": {
            "type": "string",
            "example": "Interest, rates and pricing"
          },
          "relevance": {
            "type": "string",
            "enum": ["high", "medium", "low"],
            "example": "high"
          },
          "claimCount": {
            "type": "number",
            "example": 42,
            "description": "Claims for this narrative in the filtered scope."
          },
          "modelCount": {
            "type": "number",
            "example": 2,
            "description": "Distinct AI platforms the narrative appears across."
          },
          "leadingClaim": {
            "type": "string",
            "nullable": true,
            "description": "The most relevant claim, as a preview."
          },
          "standing": {
            "nullable": true,
            "description": "The tracked brand's standing on this narrative, from the Scan's readings. Null when the Scan predates the readings model or the filter does not match a computed scope.",
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/NarrativeStandingDto"
              }
            ]
          }
        },
        "required": [
          "narrativeId",
          "name",
          "relevance",
          "claimCount",
          "modelCount",
          "leadingClaim",
          "standing"
        ]
      },
      "NarrativesReportResponseDto": {
        "type": "object",
        "properties": {
          "scanId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "scanDate": {
            "type": "string",
            "nullable": true,
            "example": "2026-09-10",
            "description": "The UTC calendar day of the Scan. Use `scanCompletedAt` for the exact time, to show the day in your user's time zone."
          },
          "scanCompletedAt": {
            "type": "string",
            "nullable": true,
            "format": "date-time",
            "example": "2026-09-10T09:42:00.000Z",
            "description": "When the Scan finished, as an ISO 8601 UTC timestamp. Format it in your user's time zone to show the day. Null when not known."
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NarrativeSummaryDto"
            }
          }
        },
        "required": ["scanId", "scanDate", "data"]
      },
      "NarrativeTargetDto": {
        "type": "object",
        "properties": {
          "narrativeId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "example": "Interest, rates and pricing"
          }
        },
        "required": ["narrativeId", "name"]
      },
      "NarrativeClaimBrandDto": {
        "type": "object",
        "properties": {
          "brandId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string",
            "example": "State Insurance"
          },
          "stance": {
            "type": "string",
            "example": "positive"
          },
          "role": {
            "type": "string",
            "enum": ["subject", "comparison_reference"],
            "example": "subject"
          }
        },
        "required": ["brandId", "name", "stance", "role"]
      },
      "NarrativeClaimSourceDto": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "example": "https://state.co.nz/car-insurance"
          },
          "domain": {
            "type": "string",
            "nullable": true,
            "example": "state.co.nz"
          },
          "passage": {
            "type": "string",
            "nullable": true,
            "description": "The cited passage, when captured."
          }
        },
        "required": ["url", "domain", "passage"]
      },
      "NarrativeClaimDriverDto": {
        "type": "object",
        "properties": {
          "brandId": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "description": "The brand the driver is about; null for a market-level driver."
          },
          "brandName": {
            "type": "string",
            "nullable": true
          },
          "factor": {
            "type": "string",
            "example": "liability evidence",
            "description": "The factor (the claim aspect) this driver concerns."
          },
          "factorType": {
            "type": "string",
            "example": "trust_signal",
            "description": "decision_criterion, feature, friction, or trust_signal (new values may appear)."
          },
          "polarity": {
            "type": "string",
            "example": "positive",
            "description": "How the answer felt about the factor: positive, neutral, negative, or mixed."
          },
          "relevance": {
            "type": "number",
            "nullable": true,
            "example": 1,
            "description": "0 to 1."
          },
          "evidence": {
            "type": "string",
            "nullable": true,
            "description": "The snippet the driver was read from."
          }
        },
        "required": [
          "brandId",
          "brandName",
          "factor",
          "factorType",
          "polarity",
          "relevance",
          "evidence"
        ]
      },
      "NarrativeClaimDto": {
        "type": "object",
        "properties": {
          "claimId": {
            "type": "string",
            "format": "uuid",
            "description": "Stable claim id. Pass as a create_recommendation seed ({kind:\"claim\", id}) to attach this quote as the recommendation evidence."
          },
          "claimText": {
            "type": "string",
            "example": "State offers comprehensive car insurance with agreed value cover."
          },
          "quote": {
            "type": "string",
            "description": "Verbatim slice of the AI response the claim was extracted from."
          },
          "stance": {
            "type": "string",
            "nullable": true,
            "example": "positive"
          },
          "platform": {
            "$ref": "#/components/schemas/PublicPlatformDto"
          },
          "region": {
            "type": "string",
            "nullable": true,
            "example": "NZ:auckland"
          },
          "promptId": {
            "type": "string",
            "format": "uuid",
            "description": "Resolve the prompt text and classification via GET /v1/sites/{siteId}/prompts/{promptId}."
          },
          "brands": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NarrativeClaimBrandDto"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NarrativeClaimSourceDto"
            }
          },
          "drivers": {
            "description": "The factors behind the claim — what the answer said and how it felt, per brand or market-level.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NarrativeClaimDriverDto"
            }
          }
        },
        "required": [
          "claimId",
          "claimText",
          "quote",
          "stance",
          "platform",
          "region",
          "promptId",
          "brands",
          "sources",
          "drivers"
        ]
      },
      "NarrativeClaimsReportResponseDto": {
        "type": "object",
        "properties": {
          "scanId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "scanDate": {
            "type": "string",
            "nullable": true,
            "example": "2026-09-10",
            "description": "The UTC calendar day of the Scan. Use `scanCompletedAt` for the exact time, to show the day in your user's time zone."
          },
          "scanCompletedAt": {
            "type": "string",
            "nullable": true,
            "format": "date-time",
            "example": "2026-09-10T09:42:00.000Z",
            "description": "When the Scan finished, as an ISO 8601 UTC timestamp. Format it in your user's time zone to show the day. Null when not known."
          },
          "narrative": {
            "nullable": true,
            "description": "The narrative these claims belong to. Null when the id is not in this Site.",
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/NarrativeTargetDto"
              }
            ]
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NarrativeClaimDto"
            }
          }
        },
        "required": ["scanId", "scanDate", "narrative", "data"]
      },
      "PublicPromptRefValueDto": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "example": "home-contents-insurance",
            "description": "The token the matching filter param accepts."
          },
          "label": {
            "type": "string",
            "example": "Home & Contents Insurance"
          }
        },
        "required": ["value", "label"]
      },
      "PublicPromptDto": {
        "type": "object",
        "properties": {
          "promptId": {
            "type": "string",
            "format": "uuid",
            "description": "The prompt id carried by prompt-results, narratives, and claims."
          },
          "text": {
            "type": "string",
            "example": "What should I look for when choosing car insurance?"
          },
          "category": {
            "type": "string",
            "nullable": true,
            "example": "general"
          },
          "enabled": {
            "type": "boolean",
            "description": "True for an active question; false for a retained, retired question."
          },
          "tags": {
            "example": ["coverage options", "excesses"],
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "products": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicPromptRefValueDto"
            }
          },
          "personas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicPromptRefValueDto"
            }
          },
          "journeyStages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicPromptRefValueDto"
            }
          },
          "primaryJourneyStage": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicPromptRefValueDto"
              }
            ]
          },
          "regions": {
            "description": "Saved per-question region selection. An empty list inherits scan defaults, then Global when defaults are also empty. This is not a list of effective execution regions.",
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "promptId",
          "text",
          "category",
          "enabled",
          "tags",
          "products",
          "personas",
          "journeyStages",
          "primaryJourneyStage",
          "regions"
        ]
      },
      "PublicPromptsListResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicPromptDto"
            }
          },
          "nextCursor": {
            "type": "string",
            "nullable": true,
            "description": "Opaque cursor: pass back as `cursor` for the next page."
          }
        },
        "required": ["data", "nextCursor"]
      },
      "RecommendationStandingDto": {
        "type": "object",
        "properties": {
          "target": {
            "type": "number",
            "example": 3,
            "description": "Target rung (0 Absent … 4 Recommended)."
          },
          "current": {
            "type": "number",
            "nullable": true
          },
          "baseline": {
            "type": "number",
            "nullable": true
          }
        },
        "required": ["target", "current", "baseline"]
      },
      "RecommendationScopeDto": {
        "type": "object",
        "properties": {
          "modelId": {
            "type": "string",
            "nullable": true
          },
          "region": {
            "type": "string",
            "nullable": true
          },
          "personas": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "products": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "journeyStageId": {
            "type": "string",
            "nullable": true
          },
          "promptKind": {
            "type": "string",
            "example": "all"
          }
        },
        "required": [
          "modelId",
          "region",
          "personas",
          "products",
          "journeyStageId",
          "promptKind"
        ]
      },
      "RecommendationNarrativeDto": {
        "type": "object",
        "properties": {
          "narrativeId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          }
        },
        "required": ["narrativeId", "name"]
      },
      "RecommendationPromptRefDto": {
        "type": "object",
        "properties": {
          "promptId": {
            "type": "string",
            "format": "uuid",
            "description": "Resolve via GET …/prompts/{promptId}."
          },
          "firstScanId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "lastObservedScanId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "tracked": {
            "type": "boolean"
          }
        },
        "required": ["promptId", "firstScanId", "lastObservedScanId", "tracked"]
      },
      "RecommendationDto": {
        "type": "object",
        "properties": {
          "recommendationId": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "topic": {
            "type": "string"
          },
          "question": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "visibility",
              "sentiment",
              "narrative",
              "authority",
              "defend"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "review",
              "approved",
              "underway",
              "validate",
              "closed",
              "archived"
            ],
            "description": "Board stage."
          },
          "movement": {
            "type": "string",
            "enum": [
              "new",
              "updated",
              "stable",
              "improved",
              "regressed",
              "needs_review",
              "ready",
              "proven",
              "declined",
              "archived"
            ],
            "description": "Change since last Scan."
          },
          "impact": {
            "type": "string",
            "enum": ["high", "medium", "low"]
          },
          "effort": {
            "type": "string",
            "enum": ["high", "medium", "low"]
          },
          "confidence": {
            "type": "string",
            "enum": ["high", "medium", "low"]
          },
          "standing": {
            "$ref": "#/components/schemas/RecommendationStandingDto"
          },
          "scope": {
            "$ref": "#/components/schemas/RecommendationScopeDto"
          },
          "narrative": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/RecommendationNarrativeDto"
              }
            ]
          },
          "prompts": {
            "description": "Prompt refs by Scan.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RecommendationPromptRefDto"
            }
          },
          "publishedAt": {
            "type": "string",
            "nullable": true
          },
          "updatedAt": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "recommendationId",
          "title",
          "topic",
          "question",
          "type",
          "status",
          "movement",
          "impact",
          "effort",
          "confidence",
          "standing",
          "scope",
          "narrative",
          "prompts",
          "publishedAt",
          "updatedAt"
        ]
      },
      "RecommendationsListResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RecommendationDto"
            }
          }
        },
        "required": ["data"]
      },
      "RecommendationStandingHistoryDto": {
        "type": "object",
        "properties": {
          "baseline": {
            "type": "number",
            "nullable": true
          },
          "current": {
            "type": "number",
            "nullable": true
          },
          "previous": {
            "type": "number",
            "nullable": true
          },
          "change": {
            "type": "string",
            "nullable": true
          }
        },
        "required": ["baseline", "current", "previous", "change"]
      },
      "RecommendationEvidenceDto": {
        "type": "object",
        "properties": {
          "ordinal": {
            "type": "number"
          },
          "role": {
            "type": "string",
            "example": "representative_quote"
          },
          "quote": {
            "type": "string",
            "nullable": true
          },
          "platform": {
            "type": "string",
            "nullable": true,
            "example": "chatgpt_app",
            "description": "Platform id; null when the evidence came from a model the API no longer names."
          },
          "region": {
            "type": "string",
            "nullable": true
          },
          "promptText": {
            "type": "string",
            "nullable": true,
            "description": "The prompt behind the evidence."
          }
        },
        "required": [
          "ordinal",
          "role",
          "quote",
          "platform",
          "region",
          "promptText"
        ]
      },
      "RecommendationDetailResponseDto": {
        "type": "object",
        "properties": {
          "recommendationId": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "question": {
            "type": "string"
          },
          "topic": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "review",
              "approved",
              "underway",
              "validate",
              "closed",
              "archived"
            ]
          },
          "targetStanding": {
            "type": "number",
            "example": 3
          },
          "brief": {
            "type": "object",
            "description": "The structured brief: answer, shortfall, proposed work."
          },
          "standing": {
            "$ref": "#/components/schemas/RecommendationStandingHistoryDto"
          },
          "evidence": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RecommendationEvidenceDto"
            }
          }
        },
        "required": [
          "recommendationId",
          "title",
          "question",
          "topic",
          "status",
          "targetStanding",
          "brief",
          "standing",
          "evidence"
        ]
      },
      "RecommendationActionDto": {
        "type": "object",
        "properties": {
          "activityId": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": ["planned", "in_progress", "done"]
          },
          "date": {
            "type": "string",
            "nullable": true,
            "example": "2026-09-20"
          },
          "href": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string"
          }
        },
        "required": [
          "activityId",
          "title",
          "description",
          "status",
          "date",
          "href",
          "createdAt"
        ]
      },
      "RecommendationActionsResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RecommendationActionDto"
            }
          }
        },
        "required": ["data"]
      },
      "CreateRecommendationActionDto": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": ["planned", "in_progress", "done"]
          },
          "date": {
            "type": "string",
            "example": "2026-09-20"
          },
          "references": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": ["title", "status"]
      },
      "RecommendationNoteDto": {
        "type": "object",
        "properties": {
          "activityId": {
            "type": "string",
            "format": "uuid"
          },
          "body": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          }
        },
        "required": ["activityId", "body", "createdAt"]
      },
      "RecommendationNotesResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RecommendationNoteDto"
            }
          }
        },
        "required": ["data"]
      },
      "RecommendationNoteBodyDto": {
        "type": "object",
        "properties": {
          "body": {
            "type": "string"
          }
        },
        "required": ["body"]
      },
      "PublicFilterRegionDto": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "example": "NZ:auckland",
            "description": "Region code to filter by."
          },
          "label": {
            "type": "string",
            "example": "Auckland"
          }
        },
        "required": ["code", "label"]
      },
      "PublicFilterOptionDto": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "example": "pricing",
            "description": "The exact token to pass to the matching filter param."
          },
          "label": {
            "type": "string",
            "example": "Pricing",
            "description": "Human-readable label."
          }
        },
        "required": ["value", "label"]
      },
      "PublicFilterBrandDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Brand identity id to pass as the brand filter."
          },
          "label": {
            "type": "string",
            "example": "State Insurance"
          }
        },
        "required": ["id", "label"]
      },
      "PublicFilterOptionsResponseDto": {
        "type": "object",
        "properties": {
          "scanId": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "description": "The Scan these values were scoped to, or null for the Site."
          },
          "regions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicFilterRegionDto"
            }
          },
          "models": {
            "description": "AI platforms to pass as the platform filter.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicPlatformDto"
            }
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicFilterOptionDto"
            }
          },
          "categories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicFilterOptionDto"
            }
          },
          "products": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicFilterOptionDto"
            }
          },
          "personas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicFilterOptionDto"
            }
          },
          "journeyStages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicFilterOptionDto"
            }
          },
          "brands": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicFilterBrandDto"
            }
          },
          "brandMentions": {
            "description": "Allowed brandMention filter tokens.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicFilterOptionDto"
            }
          }
        },
        "required": [
          "scanId",
          "regions",
          "models",
          "tags",
          "categories",
          "products",
          "personas",
          "journeyStages",
          "brands",
          "brandMentions"
        ]
      }
    }
  },
  "security": [
    {
      "apiKeyAuth": []
    }
  ]
}
