{
  "openapi": "3.1.0",
  "info": {
    "title": "Upriver API",
    "description": "A social insights API for ad generation platforms. It provides structured signals, like psychographics, behavioral insights, trends, and audience language, to help AI models generate relevant, higher-converting ads.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.upriver.ai",
      "description": "Production API server"
    }
  ],
  "paths": {
    "/v1/brand/research": {
      "post": {
        "tags": [
          "Brands"
        ],
        "summary": "Brand Research",
        "description": "Provides details for a brand including identity, target audience, and brand language. Returns structured data optimized for chaining into the Audience Insights endpoint.\n\n**Input Options:**\n- Provide `brand_name` and/or `brand_url`",
        "operationId": "brand_research",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BrandInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrandV2Response"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "x-agent-description": "Get brand identity, positioning, and brand language. Provide brand_url (brand website URL) or brand_name; at least one is required.",
        "x-agent-params": [
          "brand_url",
          "brand_name"
        ]
      }
    },
    "/v1/brand/products": {
      "post": {
        "tags": [
          "Products"
        ],
        "summary": "Products List",
        "description": "Returns a list of products associated with a brand. Requires **brand_url** on every request, including pagination requests that send **cursor**. When **cursor** is provided, **brand_url** must match the brand encoded in that cursor.\n\nResponse format:\n- **json**: Returns structured data with product list (default)\n- **text**: Returns natural language report\n\nReturns verified products and services; pricing plans, features, gift cards, documentation and signup actions are excluded. Use limit=1–20 and optionally filter by tier: primary or secondary. Products are discovered in bounded batches, with primary offerings preferred within each batch; this is not a global ranking or an exhaustive catalog. Continue with next_cursor and the same tier filter. A page may be empty while has_more is true.",
        "operationId": "brand_product",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BrandProductInput"
              },
              "examples": {
                "all": {
                  "summary": "All products",
                  "description": "Multiple products can be primary. Unfiltered results also include products whose relationship is unset; non-products are excluded. Change brand_url to the brand you want to research.",
                  "value": {
                    "brand_url": "https://glossier.com",
                    "limit": 5,
                    "include": [
                      "description",
                      "image_url"
                    ]
                  }
                },
                "all_next_page": {
                  "summary": "All products — next page",
                  "description": "Multiple products can be primary. Unfiltered results also include products whose relationship is unset; non-products are excluded. Replace cursor with next_cursor from the preceding response for this same brand and tier filter. Continue while has_more is true, even if products is empty.",
                  "value": {
                    "brand_url": "https://glossier.com",
                    "limit": 5,
                    "include": [
                      "description",
                      "image_url"
                    ],
                    "cursor": "REPLACE_WITH_NEXT_CURSOR"
                  }
                },
                "primary": {
                  "summary": "Primary products",
                  "description": "Multiple products can be primary. Unfiltered results also include products whose relationship is unset; non-products are excluded. Change brand_url to the brand you want to research.",
                  "value": {
                    "brand_url": "https://glossier.com",
                    "limit": 5,
                    "include": [
                      "description",
                      "image_url"
                    ],
                    "tier": "primary"
                  }
                },
                "primary_next_page": {
                  "summary": "Primary products — next page",
                  "description": "Multiple products can be primary. Unfiltered results also include products whose relationship is unset; non-products are excluded. Replace cursor with next_cursor from the preceding response for this same brand and tier filter. Continue while has_more is true, even if products is empty.",
                  "value": {
                    "brand_url": "https://glossier.com",
                    "limit": 5,
                    "include": [
                      "description",
                      "image_url"
                    ],
                    "tier": "primary",
                    "cursor": "REPLACE_WITH_NEXT_CURSOR"
                  }
                },
                "secondary": {
                  "summary": "Secondary products",
                  "description": "Multiple products can be primary. Unfiltered results also include products whose relationship is unset; non-products are excluded. Change brand_url to the brand you want to research.",
                  "value": {
                    "brand_url": "https://glossier.com",
                    "limit": 5,
                    "include": [
                      "description",
                      "image_url"
                    ],
                    "tier": "secondary"
                  }
                },
                "secondary_next_page": {
                  "summary": "Secondary products — next page",
                  "description": "Multiple products can be primary. Unfiltered results also include products whose relationship is unset; non-products are excluded. Replace cursor with next_cursor from the preceding response for this same brand and tier filter. Continue while has_more is true, even if products is empty.",
                  "value": {
                    "brand_url": "https://glossier.com",
                    "limit": 5,
                    "include": [
                      "description",
                      "image_url"
                    ],
                    "tier": "secondary",
                    "cursor": "REPLACE_WITH_NEXT_CURSOR"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrandProductResponse"
                }
              }
            }
          },
          "404": {
            "description": "No results found for the given brand or product.",
            "content": {
              "application/json": {
                "example": {
                  "detail": "No products found on https://example.com"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "x-agent-description": "Get a paginated list of products for a brand. Provide brand_url on every request, including when paging. Accepts limit=1–20 and an optional tier filter (primary, secondary). Non-products are excluded. Repeat the same tier filter with next_cursor. Ordering is local to discovery batches, not a global ranking; empty pages can still have a continuation.",
        "x-agent-params": [
          "brand_url",
          "limit",
          "cursor",
          "tier"
        ]
      }
    },
    "/v1/brand/product": {
      "post": {
        "tags": [
          "Products"
        ],
        "summary": "Product Details",
        "description": "Provides details for a specific product including description, features, and pricing. Provide as much information as you have — more context improves accuracy.\n\n**Input:**\n- **product_name**: Required.\n- **product_url**, **brand_url**, **brand_name**: Optional. At least one required to identify the brand.\n\n**Effort Levels:**\n- **low**: fast extraction from the product page.\n- **high**: includes competitive research (alternatives).",
        "operationId": "brand_product_detail",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BrandProductDetailInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrandProductDetailResponse"
                }
              }
            }
          },
          "404": {
            "description": "No results found for the given brand or product.",
            "content": {
              "application/json": {
                "example": {
                  "detail": "No products found on https://example.com"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "x-agent-description": "Get details for a specific product. Requires product_name and at least one of product_url, brand_url, or brand_name. Provide as much as you have — more context improves results. Use values from the /v1/brand/products response when chaining.",
        "x-agent-params": [
          "product_name",
          "product_url",
          "brand_url",
          "brand_name"
        ]
      }
    },
    "/v1/creators": {
      "get": {
        "tags": [
          "Creators"
        ],
        "summary": "Creator Profile by URL",
        "description": "Lookup a creator profile by known social profile URL.\n\nReturns the same payload shape as `GET /v1/creators/{creator_id}`. The only difference is the lookup key (`url` vs `creator_id`).\n\nUse this endpoint when you have a channel/profile URL and do not yet have a stored `creator_id`. Use `include` for optional expansions.",
        "operationId": "creator_get_by_url",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Known social media profile URL for the creator. Example: https://youtube.com/@handle",
              "title": "Url"
            },
            "description": "Known social media profile URL for the creator. Example: https://youtube.com/@handle"
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Optional expansions to include in the response.\n\nThe same include options are available on `GET /v1/creators` (lookup by URL) and `GET /v1/creators/{creator_id}` (lookup by Upriver creator ID).\n\n**Include values and what each adds:**\n- `engagement_metrics`: Recent per-channel engagement performance (average views, likes, comments, engagement rate). Returned as `channels[].engagement_metrics`.\n- `video_metrics`: Per-channel upload cadence and duration-based inventory signals over a trailing 12-week window (YouTube). Returned as `channels[].video_metrics`.\n- `relative_metrics`: Per-channel public benchmark summaries compared with similar creators. Returned as `channels[].relative_metrics`.\n- `bio`: Creator summary and key context. Returned as top-level `bio`.\n- `audience`: Directional audience demographics (age, gender, geography). Returned as top-level `audience`.\n- `brand_safety`: Brand safety advisories with citations. Returned as top-level `brand_safety`.\n- `email`: Public contact email addresses the creator has published for business inquiries, gathered across their linked channels. Returned as top-level `emails`.\n- `location`: Current-location evidence reconciled across owned channels, with origin retained separately. With no current evidence, birthplace or nationality may provide a low-confidence fallback; strict country filters are unchanged. Reads stored evidence without new research or an enrichment charge. Returned as top-level `location`.\n- `creator_id`: Backward-compatible no-op; `creator_id` is always returned.\n\n**Format:**\n- Repeat params: `?include=engagement_metrics&include=bio`\n- CSV: `?include=engagement_metrics,bio`",
              "default": [],
              "title": "Include"
            },
            "description": "Optional expansions to include in the response.\n\nThe same include options are available on `GET /v1/creators` (lookup by URL) and `GET /v1/creators/{creator_id}` (lookup by Upriver creator ID).\n\n**Include values and what each adds:**\n- `engagement_metrics`: Recent per-channel engagement performance (average views, likes, comments, engagement rate). Returned as `channels[].engagement_metrics`.\n- `video_metrics`: Per-channel upload cadence and duration-based inventory signals over a trailing 12-week window (YouTube). Returned as `channels[].video_metrics`.\n- `relative_metrics`: Per-channel public benchmark summaries compared with similar creators. Returned as `channels[].relative_metrics`.\n- `bio`: Creator summary and key context. Returned as top-level `bio`.\n- `audience`: Directional audience demographics (age, gender, geography). Returned as top-level `audience`.\n- `brand_safety`: Brand safety advisories with citations. Returned as top-level `brand_safety`.\n- `email`: Public contact email addresses the creator has published for business inquiries, gathered across their linked channels. Returned as top-level `emails`.\n- `location`: Current-location evidence reconciled across owned channels, with origin retained separately. With no current evidence, birthplace or nationality may provide a low-confidence fallback; strict country filters are unchanged. Reads stored evidence without new research or an enrichment charge. Returned as top-level `location`.\n- `creator_id`: Backward-compatible no-op; `creator_id` is always returned.\n\n**Format:**\n- Repeat params: `?include=engagement_metrics&include=bio`\n- CSV: `?include=engagement_metrics,bio`"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorGetResponse"
                }
              }
            }
          },
          "404": {
            "description": "The requested profile was not found or is not accessible."
          },
          "503": {
            "description": "Profile lookup is temporarily unavailable; retry later."
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-agent-description": "Lookup a creator profile by social media profile URL. Returns the same payload shape as /v1/creators/{creator_id}; only the lookup key differs. Use `include` for optional enrichments (`engagement_metrics`, `video_metrics`, `relative_metrics`, `bio`, `audience`, `brand_safety`, `location`)."
      }
    },
    "/v1/creators/{creator_id}": {
      "get": {
        "tags": [
          "Creators"
        ],
        "summary": "Creator Profile by ID",
        "description": "Lookup a creator profile by Upriver creator ID.\n\nReturns the same payload shape as `GET /v1/creators` (URL lookup). The only difference is the lookup key (`creator_id` vs `url`).\n\nIf the ID has been merged into another creator, the response includes a `redirect` object in the JSON body and the `X-Creator-Redirect` header. Clients should update any stored creator ID to `redirect.canonical_creator_id`.\n\nUse `include` for optional expansions.",
        "operationId": "creator_get_by_id",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "creator_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Creator Id"
            }
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Optional expansions to include in the response.\n\nThe same include options are available on `GET /v1/creators` (lookup by URL) and `GET /v1/creators/{creator_id}` (lookup by Upriver creator ID).\n\n**Include values and what each adds:**\n- `engagement_metrics`: Recent per-channel engagement performance (average views, likes, comments, engagement rate). Returned as `channels[].engagement_metrics`.\n- `video_metrics`: Per-channel upload cadence and duration-based inventory signals over a trailing 12-week window (YouTube). Returned as `channels[].video_metrics`.\n- `relative_metrics`: Per-channel public benchmark summaries compared with similar creators. Returned as `channels[].relative_metrics`.\n- `bio`: Creator summary and key context. Returned as top-level `bio`.\n- `audience`: Directional audience demographics (age, gender, geography). Returned as top-level `audience`.\n- `brand_safety`: Brand safety advisories with citations. Returned as top-level `brand_safety`.\n- `email`: Public contact email addresses the creator has published for business inquiries, gathered across their linked channels. Returned as top-level `emails`.\n- `location`: Current-location evidence reconciled across owned channels, with origin retained separately. With no current evidence, birthplace or nationality may provide a low-confidence fallback; strict country filters are unchanged. Reads stored evidence without new research or an enrichment charge. Returned as top-level `location`.\n- `creator_id`: Backward-compatible no-op; `creator_id` is always returned.\n\n**Format:**\n- Repeat params: `?include=engagement_metrics&include=bio`\n- CSV: `?include=engagement_metrics,bio`",
              "default": [],
              "title": "Include"
            },
            "description": "Optional expansions to include in the response.\n\nThe same include options are available on `GET /v1/creators` (lookup by URL) and `GET /v1/creators/{creator_id}` (lookup by Upriver creator ID).\n\n**Include values and what each adds:**\n- `engagement_metrics`: Recent per-channel engagement performance (average views, likes, comments, engagement rate). Returned as `channels[].engagement_metrics`.\n- `video_metrics`: Per-channel upload cadence and duration-based inventory signals over a trailing 12-week window (YouTube). Returned as `channels[].video_metrics`.\n- `relative_metrics`: Per-channel public benchmark summaries compared with similar creators. Returned as `channels[].relative_metrics`.\n- `bio`: Creator summary and key context. Returned as top-level `bio`.\n- `audience`: Directional audience demographics (age, gender, geography). Returned as top-level `audience`.\n- `brand_safety`: Brand safety advisories with citations. Returned as top-level `brand_safety`.\n- `email`: Public contact email addresses the creator has published for business inquiries, gathered across their linked channels. Returned as top-level `emails`.\n- `location`: Current-location evidence reconciled across owned channels, with origin retained separately. With no current evidence, birthplace or nationality may provide a low-confidence fallback; strict country filters are unchanged. Reads stored evidence without new research or an enrichment charge. Returned as top-level `location`.\n- `creator_id`: Backward-compatible no-op; `creator_id` is always returned.\n\n**Format:**\n- Repeat params: `?include=engagement_metrics&include=bio`\n- CSV: `?include=engagement_metrics,bio`"
          }
        ],
        "responses": {
          "200": {
            "description": "Canonical creator payload. When a previously stored creator ID has been merged into another creator, the response still returns HTTP 200 with the canonical creator body, a `redirect` object in the JSON payload, and an `X-Creator-Redirect` response header.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorGetResponse"
                },
                "examples": {
                  "merged_creator_id": {
                    "summary": "Merged creator ID resolved to canonical creator",
                    "value": {
                      "channels": [
                        {
                          "platform": "youtube",
                          "handle": "@creator",
                          "url": "https://www.youtube.com/@creator"
                        }
                      ],
                      "labels": [],
                      "tags": [],
                      "creator_id": "cb4f53f0-c905-4c0a-86df-9a6c7551c408",
                      "stable_creator_id": "cb4f53f0-c905-4c0a-86df-9a6c7551c408",
                      "redirect": {
                        "requested_creator_id": "97ca4d8c-c1b2-4c73-a4f0-7ac6bb05e0cf",
                        "canonical_creator_id": "cb4f53f0-c905-4c0a-86df-9a6c7551c408",
                        "reason": "merged"
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "X-Creator-Redirect": {
                "description": "Present when the requested creator ID was merged into another creator. Contains the canonical creator ID returned in the body.",
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-agent-description": "Lookup a creator profile by Upriver creator ID. Returns the same payload shape as /v1/creators; only the lookup key differs. Merged IDs return redirect metadata in the response body/header. Use `include` for optional enrichments (`engagement_metrics`, `video_metrics`, `relative_metrics`, `bio`, `audience`, `brand_safety`, `location`)."
      }
    },
    "/v1/creators/batch": {
      "post": {
        "tags": [
          "Creators"
        ],
        "summary": "Batch Creator Details",
        "description": "Provides creator profile information for multiple creators in a single request. Returns associated channels and labels for each URL.\n\n**Input:** Provide 1-10 social media profile URLs (e.g., https://youtube.com/@handle)\n\n**Note:** Engagement metrics are not available for batch requests.",
        "operationId": "creator_batch",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatorBatchInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorBatchResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "x-agent-description": "Look up 1-10 creators at once by social media profile URL. Body takes a urls array of profile URLs (e.g., urls: ['https://...', ...]). Useful when checking multiple creators from sponsorship results or batch processing. Note: engagement metrics are not available in batch responses.",
        "x-agent-params": [
          "urls"
        ]
      }
    },
    "/v1/creators/search": {
      "post": {
        "tags": [
          "Creators"
        ],
        "summary": "Search",
        "description": "Unified creator search for exact, broad, and filter-only queries.\n\n**Exact lookup:** Provide `creator_url` (or an exact `query`) to quickly find the creator and linked channels.\n\n**Broad discovery:** Provide `query` with optional filters (platforms, category_ids, follower_bucket, follower range, country/language).\n\n**Filter-only browse:** Provide `category_ids` + `follower_bucket` without a text query to browse creators by category and size.\n\nPass `next_cursor` from any search response back as `cursor` with the same query and filters to fetch the next page.\n\nUse the `include` query parameter for optional expansions. In `/creators/search`, include expansions are supported only for exact `creator_url` lookups.",
        "operationId": "creator_search",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Optional expansions to include in the response.\n\nThe same include options are available on `GET /v1/creators` (lookup by URL) and `GET /v1/creators/{creator_id}` (lookup by Upriver creator ID).\n\n**Include values and what each adds:**\n- `engagement_metrics`: Recent per-channel engagement performance (average views, likes, comments, engagement rate). Returned as `channels[].engagement_metrics`.\n- `video_metrics`: Per-channel upload cadence and duration-based inventory signals over a trailing 12-week window (YouTube). Returned as `channels[].video_metrics`.\n- `relative_metrics`: Per-channel public benchmark summaries compared with similar creators. Returned as `channels[].relative_metrics`.\n- `bio`: Creator summary and key context. Returned as top-level `bio`.\n- `audience`: Directional audience demographics (age, gender, geography). Returned as top-level `audience`.\n- `brand_safety`: Brand safety advisories with citations. Returned as top-level `brand_safety`.\n- `email`: Public contact email addresses the creator has published for business inquiries, gathered across their linked channels. Returned as top-level `emails`.\n- `location`: Current-location evidence reconciled across owned channels, with origin retained separately. With no current evidence, birthplace or nationality may provide a low-confidence fallback; strict country filters are unchanged. Reads stored evidence without new research or an enrichment charge. Returned as top-level `location`.\n- `creator_id`: Backward-compatible no-op; `creator_id` is always returned.\n\n**Format:**\n- Repeat params: `?include=engagement_metrics&include=bio`\n- CSV: `?include=engagement_metrics,bio`\n\n**`/creators/search` modes:** `include=email` is available in every mode (broad query, filter-only browse, and exact `creator_url`), and may also be passed in the request body. The richer expansions (`engagement_metrics`, `video_metrics`, `relative_metrics`, `bio`, `audience`, `brand_safety`, `location`) are returned only for exact `creator_url` lookups; in broad/filter-only mode they are rejected — call `/creators` or `/creators/{creator_id}` to enrich a selected result.",
              "default": [],
              "title": "Include"
            },
            "description": "Optional expansions to include in the response.\n\nThe same include options are available on `GET /v1/creators` (lookup by URL) and `GET /v1/creators/{creator_id}` (lookup by Upriver creator ID).\n\n**Include values and what each adds:**\n- `engagement_metrics`: Recent per-channel engagement performance (average views, likes, comments, engagement rate). Returned as `channels[].engagement_metrics`.\n- `video_metrics`: Per-channel upload cadence and duration-based inventory signals over a trailing 12-week window (YouTube). Returned as `channels[].video_metrics`.\n- `relative_metrics`: Per-channel public benchmark summaries compared with similar creators. Returned as `channels[].relative_metrics`.\n- `bio`: Creator summary and key context. Returned as top-level `bio`.\n- `audience`: Directional audience demographics (age, gender, geography). Returned as top-level `audience`.\n- `brand_safety`: Brand safety advisories with citations. Returned as top-level `brand_safety`.\n- `email`: Public contact email addresses the creator has published for business inquiries, gathered across their linked channels. Returned as top-level `emails`.\n- `location`: Current-location evidence reconciled across owned channels, with origin retained separately. With no current evidence, birthplace or nationality may provide a low-confidence fallback; strict country filters are unchanged. Reads stored evidence without new research or an enrichment charge. Returned as top-level `location`.\n- `creator_id`: Backward-compatible no-op; `creator_id` is always returned.\n\n**Format:**\n- Repeat params: `?include=engagement_metrics&include=bio`\n- CSV: `?include=engagement_metrics,bio`\n\n**`/creators/search` modes:** `include=email` is available in every mode (broad query, filter-only browse, and exact `creator_url`), and may also be passed in the request body. The richer expansions (`engagement_metrics`, `video_metrics`, `relative_metrics`, `bio`, `audience`, `brand_safety`, `location`) are returned only for exact `creator_url` lookups; in broad/filter-only mode they are rejected — call `/creators` or `/creators/{creator_id}` to enrich a selected result."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatorSearchInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON object containing associated social profiles",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorSearchResponse"
                }
              }
            }
          },
          "404": {
            "description": "The requested profile was not found or is not accessible."
          },
          "503": {
            "description": "Creator lookup or search is temporarily unavailable."
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-agent-description": "Find creators by exact lookup or resolve one by name/handle, then narrow with filters. Provide one of: `creator_url` for an exact profile; `name_or_handle` to resolve a creator by handle or display name (matches exactly, by prefix, and by fuzzy substring — 'beast' finds 'MrBeast'); or filter-only browse, which requires `follower_bucket` plus `categories` or `category_ids`. `follower_bucket` takes one or more of: under_5k, 5k_10k, 10k_50k, 50k_100k, 100k_300k, 300k_1m, over_1m (combine to span a range). `categories` is free text; `category_ids` are exact taxonomy ids. Use the category/platform/follower filters for discovery — `name_or_handle` finds a specific creator, not a topic. All search modes return an opaque cursor when more ranked results are available.",
        "x-agent-params": [
          "creator_url",
          "name_or_handle",
          "content_query",
          "categories",
          "category_ids",
          "follower_bucket",
          "platforms",
          "creator_country",
          "audience_country",
          "creator_language",
          "cursor"
        ]
      }
    },
    "/v1/creators/similar": {
      "post": {
        "tags": [
          "Creators"
        ],
        "summary": "Find Similar Creators (Beta)",
        "description": "Find canonical creators who make content similar to an anchor creator.\n\nProvide either a `creator_id` returned by another creator endpoint for similarity across that creator's eligible channel cluster, or a known `channel_url` for channel-specific similarity. Each result may qualify through one coherent channel expression; every channel in a creator cluster does not need to match. Default ordering emphasizes shared niche and subject plus specific profession or life-role identity, with reach used only to separate otherwise close peers. Optional platform, category, reach, and country controls constrain which peers may appear. An empty `results` list is a complete answer; `incomplete_results` is true only when an internal time budget truncated the evaluation and a retry may return more. The first returned channel is the channel that qualified each creator.\n\nBeta: this endpoint is unlisted and its response shape may change without notice.",
        "operationId": "creator_similar_search",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatorSimilarInput"
              },
              "examples": {
                "by_creator_id": {
                  "summary": "By creator ID",
                  "value": {
                    "creator_id": "cb4f53f0-c905-4c0a-86df-9a6c7551c408",
                    "limit": 10
                  }
                },
                "by_channel_url": {
                  "summary": "By channel URL",
                  "value": {
                    "channel_url": "https://www.youtube.com/@example",
                    "platforms": [
                      "youtube",
                      "tiktok"
                    ],
                    "limit": 10
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Ordered canonical creator peers with factual match reasons",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorSimilarResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or unsupported similarity platform.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/CreatorSimilarErrorResponse"
                    },
                    {
                      "$ref": "#/components/schemas/CreatorSimilarValidationErrorResponse"
                    }
                  ],
                  "title": "Response 400 Creator Similar Search"
                },
                "examples": {
                  "invalid_fields": {
                    "summary": "Request fields failed validation",
                    "value": {
                      "detail": "Provide exactly one of creator_id or channel_url"
                    }
                  },
                  "invalid_similarity_request": {
                    "summary": "Invalid anchor or filter combination",
                    "value": {
                      "detail": {
                        "code": "invalid_similarity_request",
                        "message": "The similarity request is invalid."
                      }
                    }
                  },
                  "unsupported_platform": {
                    "summary": "Unsupported result platform",
                    "value": {
                      "detail": {
                        "code": "unsupported_platform",
                        "message": "Unsupported platform(s): x."
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested creator or channel does not exist.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorSimilarErrorResponse"
                },
                "examples": {
                  "creator_not_found": {
                    "summary": "Creator ID was not found",
                    "value": {
                      "detail": {
                        "code": "creator_not_found",
                        "message": "The requested creator was not found."
                      }
                    }
                  },
                  "channel_not_found": {
                    "summary": "Channel URL was not found",
                    "value": {
                      "detail": {
                        "code": "channel_not_found",
                        "message": "The requested channel was not found."
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The channel anchor is ambiguous. Retry with the intended `creator_id` instead of the channel URL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorSimilarErrorResponse"
                },
                "examples": {
                  "channel_anchor_ambiguous": {
                    "summary": "Channel maps to multiple creator records",
                    "value": {
                      "detail": {
                        "code": "channel_anchor_ambiguous",
                        "message": "The requested channel resolves to multiple creator records."
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Creator API quota exceeded."
          },
          "500": {
            "description": "Unexpected creator-similarity failure.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorSimilarErrorResponse"
                },
                "examples": {
                  "similarity_internal_error": {
                    "summary": "Unexpected server failure",
                    "value": {
                      "detail": {
                        "code": "similarity_internal_error",
                        "message": "Failed to find similar creators. Please try again later."
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Creator similarity is temporarily unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorSimilarErrorResponse"
                },
                "examples": {
                  "similarity_unavailable": {
                    "summary": "Similarity dependency is unavailable",
                    "value": {
                      "detail": {
                        "code": "similarity_unavailable",
                        "message": "Creator similarity is temporarily unavailable."
                      }
                    }
                  }
                }
              }
            }
          },
          "4XX": {
            "description": "Other authentication or request error."
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "x-agent-description": "Find canonical creators who make content similar to an anchor creator. Provide exactly one of: `creator_id` (from another creator endpoint) for similarity across that creator's channel cluster, or `channel_url` for a single channel. Optional `platforms` (instagram, tiktok, youtube), `category_ids`, `min_followers`/`max_followers`, and `creator_country` constrain the peers. Results are ordered by shared niche and audience fit; the first channel on each result is the one that qualified it. An empty `results` list is a complete answer unless `incomplete_results` is true (internal time budget truncated the evaluation; retry may return more). Beta: the response shape may change."
      }
    },
    "/v3/audience_insights": {
      "post": {
        "tags": [
          "Audience"
        ],
        "summary": "Personas (v3)",
        "description": "Get detailed audience personas for a brand.\n\n**Input:** Brand URL, optional query and effort level.\n\n**Output:** Personas with purchase triggers, barriers, behaviors, language patterns, and optional real world citations.",
        "operationId": "audience_insights_v3",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GroundedInsightsInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Audience personas",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AudienceInsightsResponseV3"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "x-mint": {
          "metadata": {
            "tag": "BETA"
          }
        },
        "x-agent-description": "Generate a list of audience personas for a brand, grounded in real online conversations. Provide brand_url. Each persona includes purchase triggers, barriers, behaviors, language patterns, and real-world citations. include_citations defaults to true (set false to omit); query is an optional focus hint; set effort=high for broader, deeper research (default auto). Generation can take roughly 15-25s.",
        "x-agent-params": [
          "brand_url",
          "query",
          "include_citations",
          "effort"
        ]
      }
    },
    "/v1/catalogs/{catalog_id}/match": {
      "post": {
        "tags": [
          "Audience"
        ],
        "summary": "Match Persona",
        "description": "Interpret a persona and rank this catalog's entries for fit.\n\nReturns fit scores from 0 to 1, the persona's interpreted characteristics,\nand supporting evidence for each qualifying advertiser. Scores measure\nrelevance, not purchase probability or verified buying intent. An absent\nmatch is not a zero score.\n\nSee [Score audience fit](https://docs.upriver.ai/audience/matching) for\ncatalog setup, a complete request example, and guidance on comparing\ncandidate audiences.",
        "operationId": "match_catalog",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "catalog_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Catalog Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MatchInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MatchOutput"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-mint": {
          "metadata": {
            "tag": "BETA"
          }
        }
      }
    },
    "/v1/sponsors": {
      "get": {
        "tags": [
          "Sponsorships"
        ],
        "summary": "Sponsors",
        "description": "Search for brands that recently sponsored media channels/publications.\n\nProvide exactly one scope filter: `categories` or `publication_url`.\n\n- `categories`: Find sponsors active in those content verticals.\n- `publication_url`: Find sponsors for a creator across their linked owned channels.\n\nUse `platforms`, date range, and confidence parameters to refine results.",
        "operationId": "sponsors",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "categories",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "maxItems": 3
                },
                {
                  "type": "null"
                }
              ],
              "description": "Content-vertical phrases or keywords (e.g. 'consumer tech', 'startup tools', 'personal finance'). Not brand or company names. Free-form strings are normalized to our standard category taxonomy and used to scope the search. Mutually exclusive with publication_url.",
              "examples": [
                [
                  "consumer tech",
                  "startup tools"
                ]
              ],
              "title": "Categories"
            },
            "description": "Content-vertical phrases or keywords (e.g. 'consumer tech', 'startup tools', 'personal finance'). Not brand or company names. Free-form strings are normalized to our standard category taxonomy and used to scope the search. Mutually exclusive with publication_url.",
            "example": [
              "consumer tech",
              "startup tools"
            ]
          },
          {
            "name": "publication_url",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "A creator's social profile, newsletter, or podcast URL. Resolves the creator and searches their active linked owned channels. Platforms filter the returned placements and may differ from the URL's platform. If no creator identity is linked, searches only the supplied publication when active. Does not discover new channels. Cannot be combined with categories.",
              "examples": [
                "https://techweekly.substack.com"
              ],
              "title": "Publication Url"
            },
            "description": "A creator's social profile, newsletter, or podcast URL. Resolves the creator and searches their active linked owned channels. Platforms filter the returned placements and may differ from the URL's platform. If no creator identity is linked, searches only the supplied publication when active. Does not discover new channels. Cannot be combined with categories."
          },
          {
            "name": "platforms",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "beehiiv",
                      "convertkit",
                      "ghost",
                      "instagram",
                      "medium",
                      "newsletter",
                      "podcast",
                      "substack",
                      "tiktok",
                      "wordpress",
                      "youtube"
                    ]
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Platforms to include when searching for sponsors. Repeat this parameter to provide multiple values. If omitted, results include all available platforms.",
              "examples": [
                [
                  "substack",
                  "podcast"
                ]
              ],
              "title": "Platforms"
            },
            "description": "Platforms to include when searching for sponsors. Repeat this parameter to provide multiple values. If omitted, results include all available platforms."
          },
          {
            "name": "confidence_threshold",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "maximum": 1.0,
              "minimum": 0.0,
              "description": "Minimum sponsorship confidence threshold",
              "default": 0.5,
              "title": "Confidence Threshold"
            },
            "description": "Minimum sponsorship confidence threshold"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 50,
              "minimum": 1,
              "description": "Maximum number of results per page. Requesting more than 20 results requires a credits-based plan.",
              "default": 20,
              "title": "Limit"
            },
            "description": "Maximum number of results per page. Requesting more than 20 results requires a credits-based plan."
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Pagination cursor from next_cursor. To continue a paginated activity request, pass it with the same filters and omit activity_after and sync_token.",
              "title": "Cursor"
            },
            "description": "Pagination cursor from next_cursor. To continue a paginated activity request, pass it with the same filters and omit activity_after and sync_token."
          },
          {
            "name": "include_evidence",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Include structured evidence for the most recent ad (source, excerpt, and transcript offset when available)",
              "default": false,
              "title": "Include Evidence"
            },
            "description": "Include structured evidence for the most recent ad (source, excerpt, and transcript offset when available)"
          },
          {
            "name": "sponsor_types",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only return sponsors with a placement whose sponsor_type is one of these values. When omitted, defaults to ['explicit_ad', 'implicit_ad', 'native_ad', 'display_ad', 'affiliate', 'promotion', 'unknown']. Other valid values include: 'merch_store', 'self_promotion'.",
              "examples": [
                [
                  "explicit_ad",
                  "implicit_ad",
                  "native_ad",
                  "display_ad",
                  "affiliate",
                  "promotion",
                  "unknown"
                ]
              ],
              "title": "Sponsor Types"
            },
            "description": "Only return sponsors with a placement whose sponsor_type is one of these values. When omitted, defaults to ['explicit_ad', 'implicit_ad', 'native_ad', 'display_ad', 'affiliate', 'promotion', 'unknown']. Other valid values include: 'merch_store', 'self_promotion'."
          },
          {
            "name": "sponsor_type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Alternate name for sponsor_types; accepts one or more values.",
              "title": "Sponsor Type"
            },
            "description": "Alternate name for sponsor_types; accepts one or more values."
          },
          {
            "name": "days_back",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 365,
              "minimum": 1,
              "description": "Time window in days (default 90). Ignored when since is provided.",
              "default": 90,
              "title": "Days Back"
            },
            "description": "Time window in days (default 90). Ignored when since is provided."
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Start date (YYYY-MM-DD, inclusive). Overrides days_back. Required when until is provided.",
              "title": "Since"
            },
            "description": "Start date (YYYY-MM-DD, inclusive). Overrides days_back. Required when until is provided."
          },
          {
            "name": "until",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "End date (YYYY-MM-DD, inclusive). Defaults to today when only since is provided.",
              "title": "Until"
            },
            "description": "End date (YYYY-MM-DD, inclusive). Defaults to today when only since is provided."
          },
          {
            "name": "sort_by",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "total_ads",
                "recent"
              ],
              "type": "string",
              "description": "Sort order for results. 'total_ads' (default) ranks brands by number of placements. 'recent' ranks by most recent ad date. For activity searches, these rank only sponsorships in the requested activity.",
              "default": "total_ads",
              "title": "Sort By"
            },
            "description": "Sort order for results. 'total_ads' (default) ranks brands by number of placements. 'recent' ranks by most recent ad date. For activity searches, these rank only sponsorships in the requested activity."
          },
          {
            "name": "activity_after",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Start a sponsor activity request after this ISO-8601 datetime. Requires platforms. Earlier values use the first supported activity time. For later requests, save next_sync_token from a response and send it as sync_token.",
              "title": "Activity After"
            },
            "description": "Start a sponsor activity request after this ISO-8601 datetime. Requires platforms. Earlier values use the first supported activity time. For later requests, save next_sync_token from a response and send it as sync_token."
          },
          {
            "name": "sync_token",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque checkpoint returned as next_sync_token by an earlier activity request. Use it instead of activity_after to start the next request.",
              "title": "Sync Token"
            },
            "description": "Opaque checkpoint returned as next_sync_token by an earlier activity request. Use it instead of activity_after to start the next request."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimplifiedPartnerSearchResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-agent-description": "Discover brands that recently sponsored content. Provide exactly one scope filter: categories (free text, matched to the nearest vertical and echoed back as industry_category) or publication_url (a creator's profile, newsletter, or podcast URL). Searches their linked owned channels. Optionally narrow returned placements by platforms, sponsor_type, and a date window (since/until as YYYY-MM-DD; defaults to the last 90 days). Set include_evidence=true for the ad excerpt. Returns matching brands, each with an example of their latest placement. Use /v1/sponsorships for individual placement rows.",
        "x-agent-params": [
          "categories",
          "publication_url",
          "platforms",
          "sponsor_type",
          "include_evidence",
          "since",
          "until",
          "activity_after",
          "sync_token",
          "limit",
          "cursor"
        ],
        "x-code-samples": [
          {
            "lang": "curl",
            "source": "curl -X GET 'https://api.upriver.ai/v1/sponsors?industry=tech' \\\n  -H 'X-API-Key: YOUR_API_KEY'"
          }
        ]
      }
    },
    "/v1/sponsors/{sponsor_id}/channels": {
      "get": {
        "tags": [
          "Sponsorships"
        ],
        "summary": "Sponsor channels",
        "description": "List the social accounts publicly associated with a sponsor.",
        "operationId": "sponsor_channels_list",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "sponsor_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Identifier of the sponsor whose social accounts to list. Sponsor identifiers appear in the sponsor_id field of sponsorship results.",
              "title": "Sponsor Id"
            },
            "description": "Identifier of the sponsor whose social accounts to list. Sponsor identifiers appear in the sponsor_id field of sponsorship results."
          },
          {
            "name": "platforms",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "instagram",
                      "tiktok",
                      "youtube"
                    ]
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Platforms to include (e.g. instagram, tiktok, youtube). Repeat this parameter to provide multiple values. If omitted, includes all.",
              "title": "Platforms"
            },
            "description": "Platforms to include (e.g. instagram, tiktok, youtube). Repeat this parameter to provide multiple values. If omitted, includes all."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 50,
              "minimum": 1,
              "description": "Maximum number of accounts to return per page.",
              "default": 20,
              "title": "Limit"
            },
            "description": "Maximum number of accounts to return per page."
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Pagination cursor from a previous response's next_cursor.",
              "title": "Cursor"
            },
            "description": "Pagination cursor from a previous response's next_cursor."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SponsorChannelsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sponsorships": {
      "get": {
        "tags": [
          "Sponsorships"
        ],
        "summary": "Sponsorships",
        "description": "Return individual sponsored placements (content-level rows).\n\nProvide at least one of `sponsor_name`, `sponsor_id`, `sponsor_channel_id`, `brand_id`, `publication_url`, or `categories`. These can be combined, except `publication_url` and `categories` cannot be used together.",
        "operationId": "sponsorships",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "brand_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Deprecated: use sponsor_id.",
              "deprecated": true,
              "title": "Brand Id"
            },
            "description": "Deprecated: use sponsor_id.",
            "deprecated": true
          },
          {
            "name": "sponsor_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter to placements from the sponsor with this identifier. Sponsor identifiers appear in the sponsor_id field of results.",
              "title": "Sponsor Id"
            },
            "description": "Filter to placements from the sponsor with this identifier. Sponsor identifiers appear in the sponsor_id field of results."
          },
          {
            "name": "sponsor_channel_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter to placements attributed to this sponsor-owned social account, given as a channel_id from the sponsor channels endpoints. Combine with sponsor_id to intersect the two filters.",
              "title": "Sponsor Channel Id"
            },
            "description": "Filter to placements attributed to this sponsor-owned social account, given as a channel_id from the sponsor channels endpoints. Combine with sponsor_id to intersect the two filters."
          },
          {
            "name": "brand_name",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Deprecated. Same as sponsor_name - filter placements by sponsor/brand name",
              "title": "Brand Name"
            },
            "description": "Deprecated. Same as sponsor_name - filter placements by sponsor/brand name",
            "example": "Notion"
          },
          {
            "name": "sponsor_name",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Convenience filter for finding a sponsor by display name. Use the sponsor_id returned in results for later sponsor-specific requests because names can vary. Preferred over deprecated brand_name.",
              "title": "Sponsor Name"
            },
            "description": "Convenience filter for finding a sponsor by display name. Use the sponsor_id returned in results for later sponsor-specific requests because names can vary. Preferred over deprecated brand_name."
          },
          {
            "name": "publication_url",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "A creator's social profile, newsletter, or podcast URL. Resolves the creator and searches their active linked owned channels. Platforms filter the returned placements and may differ from the URL's platform. If no creator identity is linked, searches only the supplied publication when active. Does not discover new channels. Cannot be combined with categories.",
              "title": "Publication Url"
            },
            "description": "A creator's social profile, newsletter, or podcast URL. Resolves the creator and searches their active linked owned channels. Platforms filter the returned placements and may differ from the URL's platform. If no creator identity is linked, searches only the supplied publication when active. Does not discover new channels. Cannot be combined with categories."
          },
          {
            "name": "platforms",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "beehiiv",
                      "convertkit",
                      "ghost",
                      "instagram",
                      "medium",
                      "newsletter",
                      "podcast",
                      "substack",
                      "tiktok",
                      "wordpress",
                      "youtube"
                    ]
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Platforms to include (e.g., substack, podcast, youtube). If omitted, includes all. Repeat platforms to provide multiple values.",
              "title": "Platforms"
            },
            "description": "Platforms to include (e.g., substack, podcast, youtube). If omitted, includes all. Repeat platforms to provide multiple values.",
            "example": [
              "youtube"
            ]
          },
          {
            "name": "platform",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "beehiiv",
                      "convertkit",
                      "ghost",
                      "instagram",
                      "medium",
                      "newsletter",
                      "podcast",
                      "substack",
                      "tiktok",
                      "wordpress",
                      "youtube"
                    ]
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Alias for platforms. Prefer platforms; repeat platforms to provide multiple values.",
              "title": "Platform"
            },
            "description": "Alias for platforms. Prefer platforms; repeat platforms to provide multiple values."
          },
          {
            "name": "categories",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "maxItems": 3
                },
                {
                  "type": "null"
                }
              ],
              "description": "Content-vertical phrases or keywords (e.g. 'consumer tech', 'startup tools'). Not brand or company names. Free-form strings are normalized to our standard category taxonomy and matched against publication categories. Cannot be combined with publication_url.",
              "title": "Categories"
            },
            "description": "Content-vertical phrases or keywords (e.g. 'consumer tech', 'startup tools'). Not brand or company names. Free-form strings are normalized to our standard category taxonomy and matched against publication categories. Cannot be combined with publication_url."
          },
          {
            "name": "sponsor_types",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only return placements whose sponsor_type is one of these values. Use monetization_type and disclosure_tier to filter by those fields. Defaults to ['explicit_ad', 'implicit_ad', 'native_ad', 'display_ad', 'affiliate', 'promotion', 'unknown'].",
              "title": "Sponsor Types"
            },
            "description": "Only return placements whose sponsor_type is one of these values. Use monetization_type and disclosure_tier to filter by those fields. Defaults to ['explicit_ad', 'implicit_ad', 'native_ad', 'display_ad', 'affiliate', 'promotion', 'unknown']."
          },
          {
            "name": "sponsor_type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Alternate name for sponsor_types; accepts one or more values.",
              "title": "Sponsor Type"
            },
            "description": "Alternate name for sponsor_types; accepts one or more values."
          },
          {
            "name": "monetization_types",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only return placements whose monetization_type is one of these values (paid_partnership, affiliate, gifted, or unknown; some older placements carry promotion, self_promotion, or merch_store). Matches only placements where the field is populated. If omitted, does not filter.",
              "title": "Monetization Types"
            },
            "description": "Only return placements whose monetization_type is one of these values (paid_partnership, affiliate, gifted, or unknown; some older placements carry promotion, self_promotion, or merch_store). Matches only placements where the field is populated. If omitted, does not filter."
          },
          {
            "name": "monetization_type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Alternate name for monetization_types; accepts one or more values.",
              "title": "Monetization Type"
            },
            "description": "Alternate name for monetization_types; accepts one or more values."
          },
          {
            "name": "disclosure_tiers",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only return placements whose disclosure_tier is one of these values (platform_verified, creator_disclosed, commercial_signal, or inferred). Matches only placements where the field is populated. Requesting inferred includes inferred placements without setting include_inferred. If omitted, does not filter.",
              "title": "Disclosure Tiers"
            },
            "description": "Only return placements whose disclosure_tier is one of these values (platform_verified, creator_disclosed, commercial_signal, or inferred). Matches only placements where the field is populated. Requesting inferred includes inferred placements without setting include_inferred. If omitted, does not filter."
          },
          {
            "name": "disclosure_tier",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Alternate name for disclosure_tiers; accepts one or more values.",
              "title": "Disclosure Tier"
            },
            "description": "Alternate name for disclosure_tiers; accepts one or more values."
          },
          {
            "name": "is_first_party",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by counterparty. true returns only placements promoting the creator's own product, service, or store, which are excluded by default. false excludes those placements. If omitted, does not filter.",
              "title": "Is First Party"
            },
            "description": "Filter by counterparty. true returns only placements promoting the creator's own product, service, or store, which are excluded by default. false excludes those placements. If omitted, does not filter."
          },
          {
            "name": "confidence_threshold",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "maximum": 1.0,
              "minimum": 0.0,
              "description": "Only return placements with at least this sponsorship confidence (0-1). Defaults to 0.5, which excludes lower-confidence matches.",
              "default": 0.5,
              "title": "Confidence Threshold"
            },
            "description": "Only return placements with at least this sponsorship confidence (0-1). Defaults to 0.5, which excludes lower-confidence matches."
          },
          {
            "name": "days_back",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 365,
              "minimum": 1,
              "description": "Time window in days (default 90). Ignored when since is provided.",
              "default": 90,
              "title": "Days Back"
            },
            "description": "Time window in days (default 90). Ignored when since is provided."
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Start date (YYYY-MM-DD, inclusive). Overrides days_back. Required when until is provided.",
              "title": "Since"
            },
            "description": "Start date (YYYY-MM-DD, inclusive). Overrides days_back. Required when until is provided.",
            "example": "2024-04-01"
          },
          {
            "name": "until",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "End date (YYYY-MM-DD, inclusive). Defaults to today when only since is provided.",
              "title": "Until"
            },
            "description": "End date (YYYY-MM-DD, inclusive). Defaults to today when only since is provided.",
            "example": "2024-09-30"
          },
          {
            "name": "activity_after",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Start a sponsorship activity request after this ISO-8601 datetime. Requires platforms. Earlier values use the first supported activity time. For later requests, save next_sync_token from a response and send it as sync_token.",
              "title": "Activity After"
            },
            "description": "Start a sponsorship activity request after this ISO-8601 datetime. Requires platforms. Earlier values use the first supported activity time. For later requests, save next_sync_token from a response and send it as sync_token."
          },
          {
            "name": "sync_token",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque checkpoint returned as next_sync_token by an earlier activity request. Use it instead of activity_after to start the next request.",
              "title": "Sync Token"
            },
            "description": "Opaque checkpoint returned as next_sync_token by an earlier activity request. Use it instead of activity_after to start the next request."
          },
          {
            "name": "include_evidence",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Include structured evidence (source, excerpt, transcript offset) when available.",
              "default": false,
              "title": "Include Evidence"
            },
            "description": "Include structured evidence (source, excerpt, transcript offset) when available."
          },
          {
            "name": "include_inferred",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Include placements where the sponsorship was inferred rather than explicitly disclosed or verified. These are lower-confidence and are excluded by default. Each result's disclosure_tier and partner_confidence let you filter further.",
              "default": false,
              "title": "Include Inferred"
            },
            "description": "Include placements where the sponsorship was inferred rather than explicitly disclosed or verified. These are lower-confidence and are excluded by default. Each result's disclosure_tier and partner_confidence let you filter further."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 50,
              "minimum": 1,
              "description": "Maximum number of results per page. Requesting more than 20 results requires a credits-based plan.",
              "default": 20,
              "title": "Limit"
            },
            "description": "Maximum number of results per page. Requesting more than 20 results requires a credits-based plan."
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Pagination cursor. To continue a paginated activity request, pass this cursor with the same filters and omit activity_after and sync_token.",
              "title": "Cursor"
            },
            "description": "Pagination cursor. To continue a paginated activity request, pass this cursor with the same filters and omit activity_after and sync_token."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SponsorshipsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-agent-description": "Return individual sponsored placements (content-level rows). Provide at least one selector: sponsor_name, sponsor_id, sponsor_channel_id, publication_url, or categories (free text, matched to the nearest vertical). These can be combined, except publication_url and categories cannot be used together. Optionally narrow by platforms, sponsor_type, monetization_type, disclosure_tier, and a date window (since/until as YYYY-MM-DD; defaults to the last 90 days). Set include_evidence=true for the ad excerpt.",
        "x-agent-params": [
          "sponsor_name",
          "sponsor_id",
          "sponsor_channel_id",
          "publication_url",
          "categories",
          "platforms",
          "sponsor_type",
          "monetization_type",
          "disclosure_tier",
          "is_first_party",
          "include_evidence",
          "include_inferred",
          "since",
          "until",
          "activity_after",
          "sync_token",
          "limit",
          "cursor"
        ],
        "x-code-samples": [
          {
            "lang": "curl",
            "source": "curl -X GET 'https://api.upriver.ai/v1/sponsorships?brand_name=Notion&platforms=youtube&since=2024-04-01&until=2024-09-30' \\\n  -H 'X-API-Key: YOUR_API_KEY'"
          }
        ]
      }
    },
    "/v1/sponsorships/requests": {
      "post": {
        "tags": [
          "Sponsorships"
        ],
        "summary": "Request sponsorship research",
        "description": "Start bounded research and return its progress for later retrieval.",
        "operationId": "create_sponsorship_request_v1_sponsorships_requests_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SponsorshipDemandInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DemandStatus"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/v1/sponsorships/requests/{request_id}": {
      "get": {
        "tags": [
          "Sponsorships"
        ],
        "summary": "Sponsorship research status",
        "description": "Retrieve your research progress, available results and coverage gaps.",
        "operationId": "get_sponsorship_request_v1_sponsorships_requests__request_id__get",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "request_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Request Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DemandStatus"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v2/trends/broad": {
      "post": {
        "tags": [
          "Trends"
        ],
        "summary": "Trends List",
        "description": "Get the latest trending formats.",
        "operationId": "trends_broad_v2",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "commercial_music_status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "const": "approved",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "When set to 'approved', returns only sound trends whose attached music was explicitly approved by the platform for commercial/business use. Trends without a known approval signal are excluded.",
              "title": "Commercial Music Status"
            },
            "description": "When set to 'approved', returns only sound trends whose attached music was explicitly approved by the platform for commercial/business use. Trends without a known approval signal are excluded."
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/TrendsBroadInput"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Data"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON object containing broad trends",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrendsBroadResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-agent-description": "Get the latest trending TikTok video formats and templates — the primary endpoint for trend discovery. Trends are sourced from TikTok but are useful for ideation across platforms (Instagram Reels, YouTube Shorts, etc.). Filter by uses_specific_sound, participation_type, content_structure, has_text_template, include/exclude tags (e.g., exclude_tags=['nsfw']), and duration range. Each trend in the response has an id field — use it as the trend_id path parameter for the trend details, media, and playback endpoints.",
        "x-agent-params": [
          "commercial_music_status",
          "uses_specific_sound",
          "participation_type",
          "content_structure",
          "sort_by",
          "has_text_template",
          "tags",
          "exclude_tags",
          "min_duration",
          "max_duration",
          "cursor"
        ]
      }
    },
    "/v2/trends/{trend_id}": {
      "get": {
        "tags": [
          "Trends"
        ],
        "summary": "Trend Details",
        "description": "Get a specific trend by its id. Use the /trends/{id}/playback endpoint to get a refreshed audio playback URL.",
        "operationId": "get_trend_by_id_v2",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "trend_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Trend Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Trend details with title, summary, samples, and timeliness.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrendDetailResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-agent-description": "Get full details for a specific trend by ID, including description, metrics, and metadata. Use after discovering trends via /v2/trends/broad."
      }
    },
    "/v2/trends/{trend_id}/media": {
      "get": {
        "tags": [
          "Trends"
        ],
        "summary": "Media Samples",
        "description": "Returns video and audio URL samples for a trend. Cover image URLs are temporary. If an image returns 503, wait at least Retry-After seconds. If its URL has expired by retry time, request updated media data to obtain a fresh cover_url; Retry-After does not extend the URL's validity.",
        "operationId": "trends_media_v2",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "trend_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Trend Id"
            }
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Kind"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 200,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "JSON object containing media items",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-agent-description": "Get video samples for a trend — returns URLs to example TikTok videos demonstrating the trend. Filter by kind (video, audio) and limit the number of samples."
      }
    },
    "/v2/trends/{trend_id}/playback": {
      "get": {
        "tags": [
          "Trends"
        ],
        "summary": "Audio Playback",
        "description": "Return a playback URL for a trend's audio media",
        "operationId": "trends_playback_v2",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "trend_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Trend Id"
            }
          },
          {
            "name": "media_key",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Media Key"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "JSON object containing a playback URL",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-agent-description": "Get the top associated audio playback URL for a trend's sound. Use when the user wants the audio/music behind a trend rather than full video samples."
      }
    },
    "/v2/trends/{trend_id}/similar": {
      "get": {
        "tags": [
          "Trends"
        ],
        "summary": "Similar Trends",
        "description": "Find trends similar to a given trend via embedding similarity",
        "operationId": "trends_similar_v2",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "trend_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Trend Id"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 20,
              "minimum": 1,
              "default": 5,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimilarTrendsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-agent-description": "Find trends similar to a given trend. Use a trend_id from /v2/trends/broad results. Returns up to limit (default 5, max 20) related trends ranked by similarity."
      }
    },
    "/v2/trends/{trend_id}/traction": {
      "get": {
        "tags": [
          "Trends"
        ],
        "summary": "Traction Graph",
        "description": "Pre-computed traction graph points for a trend. Returns both 'all' and 'recent' windows with estimated curves plus separate blended activity curves.",
        "operationId": "get_trend_traction_v2",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "trend_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Trend Id"
            }
          },
          {
            "name": "metadata_mode",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^(basic|debug)$",
              "description": "How much traction metadata to include. 'basic' returns only precomputed series; 'debug' also returns raw evidence and diagnostics.",
              "default": "basic",
              "title": "Metadata Mode"
            },
            "description": "How much traction metadata to include. 'basic' returns only precomputed series; 'debug' also returns raw evidence and diagnostics."
          }
        ],
        "responses": {
          "200": {
            "description": "Traction graph with all and recent windows",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-agent-description": "Get the traction graph for a trend — returns pre-computed estimated traction curves, plus the underlying blended activity curves, for both the full time range and a focused recent window."
      }
    },
    "/v2/radar": {
      "get": {
        "tags": [
          "Trends Radar (Beta)"
        ],
        "summary": "List trends, topics, and breakouts (Beta)",
        "operationId": "list_radar_beta",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "card_type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "trend_moment",
                    "topic",
                    "entity_breakout"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Card Type"
            }
          },
          {
            "name": "lifecycle",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by lifecycle state (e.g. rising).",
              "title": "Lifecycle"
            },
            "description": "Filter by lifecycle state (e.g. rising)."
          },
          {
            "name": "program",
            "in": "query",
            "required": false,
            "schema": {
              "const": "general_market",
              "type": "string",
              "description": "Production market catalog.",
              "default": "general_market",
              "title": "Program"
            },
            "description": "Production market catalog."
          },
          {
            "name": "persona",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter to cards serving this audience persona key.",
              "title": "Persona"
            },
            "description": "Filter to cards serving this audience persona key."
          },
          {
            "name": "entity",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter to cards featuring this brand, retailer, or product.",
              "title": "Entity"
            },
            "description": "Filter to cards featuring this brand, retailer, or product."
          },
          {
            "name": "entity_type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "brand",
                    "product",
                    "retailer"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Restrict brand, product, and retailer items to one class. Topics and trends are unaffected.",
              "title": "Entity Type"
            },
            "description": "Restrict brand, product, and retailer items to one class. Topics and trends are unaffected."
          },
          {
            "name": "brand_safety",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by brand-safety assessment (e.g. safe).",
              "title": "Brand Safety"
            },
            "description": "Filter by brand-safety assessment (e.g. safe)."
          },
          {
            "name": "platform",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by source platform (e.g. tiktok).",
              "title": "Platform"
            },
            "description": "Filter by source platform (e.g. tiktok)."
          },
          {
            "name": "min_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Minimum number of independently measured videos.",
              "title": "Min Size"
            },
            "description": "Minimum number of independently measured videos."
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only items refreshed at or after this time.",
              "title": "Since"
            },
            "description": "Only items refreshed at or after this time."
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "rising",
                "momentum",
                "newest",
                "value",
                "freshness",
                "size",
                "opportunity"
              ],
              "type": "string",
              "description": "Ranking mode. Rising prioritizes items accelerating on comparable search evidence. Size ranks independently measured videos. Opportunity prioritizes creator signals with evidence of exceptional reach, growth, peer performance, or an earlier successful example. The legacy momentum value remains accepted.",
              "default": "rising",
              "title": "Sort"
            },
            "description": "Ranking mode. Rising prioritizes items accelerating on comparable search evidence. Size ranks independently measured videos. Opportunity prioritizes creator signals with evidence of exceptional reach, growth, peer performance, or an earlier successful example. The legacy momentum value remains accepted."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 25,
              "title": "Limit"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "description": "Pagination offset.",
              "default": 0,
              "title": "Offset"
            },
            "description": "Pagination offset."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RadarListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-mint": {
          "metadata": {
            "tag": "BETA"
          }
        }
      }
    },
    "/v2/radar/breakouts": {
      "get": {
        "tags": [
          "Trends Radar (Beta)"
        ],
        "summary": "List product/brand breakouts (Beta)",
        "operationId": "list_radar_breakouts_beta",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "lifecycle",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Lifecycle"
            }
          },
          {
            "name": "program",
            "in": "query",
            "required": false,
            "schema": {
              "const": "general_market",
              "type": "string",
              "default": "general_market",
              "title": "Program"
            }
          },
          {
            "name": "persona",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Persona"
            }
          },
          {
            "name": "entity",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Entity"
            }
          },
          {
            "name": "entity_type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "brand",
                    "product",
                    "retailer"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Restrict brand, product, and retailer items to one class. Topics and trends are unaffected.",
              "title": "Entity Type"
            },
            "description": "Restrict brand, product, and retailer items to one class. Topics and trends are unaffected."
          },
          {
            "name": "brand_safety",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Brand Safety"
            }
          },
          {
            "name": "platform",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Platform"
            }
          },
          {
            "name": "min_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "title": "Min Size"
            }
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Since"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "rising",
                "momentum",
                "newest",
                "value",
                "freshness",
                "size",
                "opportunity"
              ],
              "type": "string",
              "default": "rising",
              "title": "Sort"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 25,
              "title": "Limit"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RadarListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-mint": {
          "metadata": {
            "tag": "BETA"
          }
        }
      }
    },
    "/v2/radar/facets": {
      "get": {
        "tags": [
          "Trends Radar (Beta)"
        ],
        "summary": "List valid filter values (Beta)",
        "description": "Filters are exact-match; this is how callers learn legal values\n(e.g. the persona key is ``teacher``, not ``teachers``).",
        "operationId": "get_radar_facets_beta",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RadarFacetsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "x-mint": {
          "metadata": {
            "tag": "BETA"
          }
        }
      }
    },
    "/v2/radar/items/{item_id}": {
      "get": {
        "tags": [
          "Trends Radar (Beta)"
        ],
        "summary": "Get one radar item with live stats (Beta)",
        "operationId": "get_radar_item_beta",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "item_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Item Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RadarItemResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-mint": {
          "metadata": {
            "tag": "BETA"
          }
        }
      }
    },
    "/v2/radar/search": {
      "post": {
        "tags": [
          "Trends Radar (Beta)"
        ],
        "summary": "Search the radar by natural language (Beta)",
        "operationId": "search_radar_beta",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RadarSearchInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RadarSearchResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "x-mint": {
          "metadata": {
            "tag": "BETA"
          }
        }
      }
    },
    "/v2/radar/topics": {
      "get": {
        "tags": [
          "Trends Radar (Beta)"
        ],
        "summary": "List durable topics (Beta)",
        "operationId": "list_radar_topics_beta",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "lifecycle",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Lifecycle"
            }
          },
          {
            "name": "program",
            "in": "query",
            "required": false,
            "schema": {
              "const": "general_market",
              "type": "string",
              "default": "general_market",
              "title": "Program"
            }
          },
          {
            "name": "persona",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Persona"
            }
          },
          {
            "name": "entity",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Entity"
            }
          },
          {
            "name": "entity_type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "brand",
                    "product",
                    "retailer"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Restrict brand, product, and retailer items to one class. Topics and trends are unaffected.",
              "title": "Entity Type"
            },
            "description": "Restrict brand, product, and retailer items to one class. Topics and trends are unaffected."
          },
          {
            "name": "brand_safety",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Brand Safety"
            }
          },
          {
            "name": "platform",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Platform"
            }
          },
          {
            "name": "min_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "title": "Min Size"
            }
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Since"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "rising",
                "momentum",
                "newest",
                "value",
                "freshness",
                "size",
                "opportunity"
              ],
              "type": "string",
              "default": "rising",
              "title": "Sort"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 25,
              "title": "Limit"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RadarListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-mint": {
          "metadata": {
            "tag": "BETA"
          }
        }
      }
    },
    "/v2/radar/trends": {
      "get": {
        "tags": [
          "Trends Radar (Beta)"
        ],
        "summary": "List trend moments (Beta)",
        "operationId": "list_radar_trends_beta",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "lifecycle",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Lifecycle"
            }
          },
          {
            "name": "program",
            "in": "query",
            "required": false,
            "schema": {
              "const": "general_market",
              "type": "string",
              "default": "general_market",
              "title": "Program"
            }
          },
          {
            "name": "persona",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Persona"
            }
          },
          {
            "name": "entity",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Entity"
            }
          },
          {
            "name": "entity_type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "brand",
                    "product",
                    "retailer"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Restrict brand, product, and retailer items to one class. Topics and trends are unaffected.",
              "title": "Entity Type"
            },
            "description": "Restrict brand, product, and retailer items to one class. Topics and trends are unaffected."
          },
          {
            "name": "brand_safety",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Brand Safety"
            }
          },
          {
            "name": "platform",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Platform"
            }
          },
          {
            "name": "min_size",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "title": "Min Size"
            }
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Since"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "rising",
                "momentum",
                "newest",
                "value",
                "freshness",
                "size",
                "opportunity"
              ],
              "type": "string",
              "default": "rising",
              "title": "Sort"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 25,
              "title": "Limit"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RadarListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-mint": {
          "metadata": {
            "tag": "BETA"
          }
        }
      }
    },
    "/v1/entities/breakout": {
      "get": {
        "tags": [
          "Breakout Topics"
        ],
        "summary": "List Breakout Entities",
        "description": "List breaking entities (players or teams) for a vertical.",
        "operationId": "list_breakout_entities",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "entity_type",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Entity kind to rank: 'player' or 'team'",
              "title": "Entity Type"
            },
            "description": "Entity kind to rank: 'player' or 'team'"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Ranking mode: 'recommended' (default, balanced), 'rising' (biggest movers vs own baseline), 'top' (highest absolute volume), or 'newest' (most recently appeared). Legacy aliases (blended, hot, momentum, emerging, importance, recent, new) are accepted.",
              "default": "recommended",
              "title": "Sort"
            },
            "description": "Ranking mode: 'recommended' (default, balanced), 'rising' (biggest movers vs own baseline), 'top' (highest absolute volume), or 'newest' (most recently appeared). Legacy aliases (blended, hot, momentum, emerging, importance, recent, new) are accepted."
          },
          {
            "name": "vertical",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Vertical; only 'sports'",
              "default": "sports",
              "title": "Vertical"
            },
            "description": "Vertical; only 'sports'"
          },
          {
            "name": "tag",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter to entities carrying this tag (e.g. a sport). Use a tag value from the /entities/breakout/tags endpoint.",
              "title": "Tag"
            },
            "description": "Filter to entities carrying this tag (e.g. a sport). Use a tag value from the /entities/breakout/tags endpoint."
          },
          {
            "name": "temporal_status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/TemporalStatusFilter"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter to entities with an event that has this timing relative to now: 'upcoming' (not yet started), 'ongoing' (in progress), or 'past'. Only entities tied to a scheduled event have a timing, so this narrows results to them and to their matching events.",
              "title": "Temporal Status"
            },
            "description": "Filter to entities with an event that has this timing relative to now: 'upcoming' (not yet started), 'ongoing' (in progress), or 'past'. Only entities tied to a scheduled event have a timing, so this narrows results to them and to their matching events."
          },
          {
            "name": "event",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter to entities involved in a specific event, by name (e.g. 'world cup'). An unrecognized event returns no entities.",
              "title": "Event"
            },
            "description": "Filter to entities involved in a specific event, by name (e.g. 'world cup'). An unrecognized event returns no entities."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "description": "Max entities",
              "default": 20,
              "title": "Limit"
            },
            "description": "Max entities"
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "description": "Pagination offset",
              "default": 0,
              "title": "Offset"
            },
            "description": "Pagination offset"
          },
          {
            "name": "discovered_within_hours",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 8760,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only entities whose most recently appeared topic was first seen within this many hours (the 'brand new' filter). Omit for no limit.",
              "title": "Discovered Within Hours"
            },
            "description": "Only entities whose most recently appeared topic was first seen within this many hours (the 'brand new' filter). Omit for no limit."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EntityBreakoutListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-mint": {
          "metadata": {
            "tag": "BETA"
          }
        },
        "x-agent-description": "List players or teams that are breaking out right now, ranked by how much their current coverage exceeds their own typical level. Set entity_type=player or entity_type=team. Use sort=recommended (default, balanced) for the front page, sort=rising for biggest movers vs their own baseline, sort=top for the highest absolute volume, or sort=newest for the most recently appeared. Pass tag to filter to one sport or other tag (discover values from /entities/breakout/tags).",
        "x-agent-params": [
          "entity_type",
          "sort",
          "vertical",
          "tag",
          "limit"
        ]
      }
    },
    "/v1/entities/breakout/tags": {
      "get": {
        "tags": [
          "Breakout Topics"
        ],
        "summary": "List Breakout Entity Tags",
        "description": "List the tags available to filter the breakout entity list by.",
        "operationId": "list_breakout_entity_tags",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "entity_type",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Entity kind: 'player' or 'team'",
              "title": "Entity Type"
            },
            "description": "Entity kind: 'player' or 'team'"
          },
          {
            "name": "relation",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Tag kind to list, e.g. 'sport', 'team', 'league', 'country'",
              "default": "sport",
              "title": "Relation"
            },
            "description": "Tag kind to list, e.g. 'sport', 'team', 'league', 'country'"
          },
          {
            "name": "vertical",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Vertical; only 'sports'",
              "default": "sports",
              "title": "Vertical"
            },
            "description": "Vertical; only 'sports'"
          },
          {
            "name": "locale",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Locale for display names, e.g. 'en-US' or 'en-GB'",
              "default": "en-US",
              "title": "Locale"
            },
            "description": "Locale for display names, e.g. 'en-US' or 'en-GB'"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EntityFacetsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-mint": {
          "metadata": {
            "tag": "BETA"
          }
        },
        "x-agent-description": "List the tags you can filter the breakout entity list by — e.g. the sports present among the currently-breaking entities, with how many carry each. Pass a returned tag back as the 'tag' parameter on /entities/breakout. Set relation=sport (default) for sports.",
        "x-agent-params": [
          "entity_type",
          "relation",
          "vertical",
          "locale"
        ]
      }
    },
    "/v1/entities/{entity_id}/breakout": {
      "get": {
        "tags": [
          "Breakout Topics"
        ],
        "summary": "Get Breakout Entity",
        "description": "Get one entity's current breaking topics and a coarse timeline.",
        "operationId": "get_breakout_entity",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "entity_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Opaque entity identifier",
              "title": "Entity Id"
            },
            "description": "Opaque entity identifier"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Topic ordering, to match the list view: 'recommended' (default) orders an entity's topics by notability, 'newest' by recency. Pass the same sort you listed with so the expanded topics match the listed rows.",
              "default": "recommended",
              "title": "Sort"
            },
            "description": "Topic ordering, to match the list view: 'recommended' (default) orders an entity's topics by notability, 'newest' by recency. Pass the same sort you listed with so the expanded topics match the listed rows."
          },
          {
            "name": "temporal_status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/TemporalStatusFilter"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Restrict this entity's topics to those tied to an event of this timing relative to now: 'upcoming' (not yet started), 'ongoing' (in progress), or 'past'. Only topics tied to a scheduled event have a timing.",
              "title": "Temporal Status"
            },
            "description": "Restrict this entity's topics to those tied to an event of this timing relative to now: 'upcoming' (not yet started), 'ongoing' (in progress), or 'past'. Only topics tied to a scheduled event have a timing."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EntityBreakoutDetailResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-mint": {
          "metadata": {
            "tag": "BETA"
          }
        },
        "x-agent-description": "Get one entity's current breaking topics and recent activity. Use the entity_id returned by the list endpoint."
      }
    },
    "/v1/topics/breakout": {
      "get": {
        "tags": [
          "Breakout Topics"
        ],
        "summary": "List Breakout Topics",
        "description": "List breakout topics with optional filters.\n\nReturns topics ranked by the specified sort mode (recommended / rising / top /\nnewest); see the sort_by parameter. Legacy relevance/importance still work.",
        "operationId": "list_breakout_topics",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "feed",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Entitled private feed whose Breakout topics should be listed.",
              "title": "Feed"
            },
            "description": "Entitled private feed whose Breakout topics should be listed."
          },
          {
            "name": "vertical",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by vertical: 'sports', 'tech', or 'politics'",
              "title": "Vertical"
            },
            "description": "Filter by vertical: 'sports', 'tech', or 'politics'"
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by category within the sports vertical (topic mode only), e.g. 'nba' or 'nfl'",
              "title": "Category"
            },
            "description": "Filter by category within the sports vertical (topic mode only), e.g. 'nba' or 'nfl'"
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/TopicStatusFilter",
              "description": "Filter by topic status. Options: 'active' (default), 'detected', 'emerging', 'trending', 'declining', or 'all'.",
              "default": "active"
            },
            "description": "Filter by topic status. Options: 'active' (default), 'detected', 'emerging', 'trending', 'declining', or 'all'."
          },
          {
            "name": "temporal_status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/TemporalStatusFilter"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter to topics about an event with this timing relative to now: 'upcoming' (not yet started), 'ongoing' (in progress), or 'past'. Only topics tied to a scheduled event have a timing, so this narrows results to them.",
              "title": "Temporal Status"
            },
            "description": "Filter to topics about an event with this timing relative to now: 'upcoming' (not yet started), 'ongoing' (in progress), or 'past'. Only topics tied to a scheduled event have a timing, so this narrows results to them."
          },
          {
            "name": "min_importance",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Min Importance"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "description": "Maximum number of results. Requesting more than 20 results requires a credits-based plan.",
              "default": 20,
              "title": "Limit"
            },
            "description": "Maximum number of results. Requesting more than 20 results requires a credits-based plan."
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "enum": [
                  "citations",
                  "entities"
                ],
                "type": "string"
              },
              "description": "Optional expansions to include in the response. Allowed values: citations, entities. Example: include=citations&include=entities",
              "default": [],
              "title": "Include"
            },
            "description": "Optional expansions to include in the response. Allowed values: citations, entities. Example: include=citations&include=entities"
          },
          {
            "name": "citation_sources",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CitationSourceCategory"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Restrict returned citations to these source categories (news, reddit, twitter). Omit for all sources. Only applies when surface_mode=topic.",
              "title": "Citation Sources"
            },
            "description": "Restrict returned citations to these source categories (news, reddit, twitter). Omit for all sources. Only applies when surface_mode=topic."
          },
          {
            "name": "sort_by",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Ranking mode: 'recommended' (default, balanced), 'rising' (gaining fastest), 'top' (highest absolute volume), or 'newest' (most recently appeared). Legacy aliases (relevance, importance, hot, blended, momentum, emerging, recent, new) are accepted.",
              "default": "recommended",
              "title": "Sort By"
            },
            "description": "Ranking mode: 'recommended' (default, balanced), 'rising' (gaining fastest), 'top' (highest absolute volume), or 'newest' (most recently appeared). Legacy aliases (relevance, importance, hot, blended, momentum, emerging, recent, new) are accepted."
          },
          {
            "name": "discovered_within_hours",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 8760,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Keep only topics first seen within this many hours (the 'brand new' filter). Combine with any sort. Omit for no limit.",
              "title": "Discovered Within Hours"
            },
            "description": "Keep only topics first seen within this many hours (the 'brand new' filter). Combine with any sort. Omit for no limit."
          },
          {
            "name": "earliest_evidence_at_or_after",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Inclusive ISO 8601 lower bound for the result's `earliest_evidence_at`. Use it to restrict results to activity that first appeared within a recent window. Results with earlier dated evidence, or with no dated evidence, are excluded as a whole; evidence returned within a matching result is not time-filtered. The comparison uses all known supporting evidence, including records omitted by response filters or limits. Supported when surface_mode=topic.",
              "title": "Earliest Evidence At Or After"
            },
            "description": "Inclusive ISO 8601 lower bound for the result's `earliest_evidence_at`. Use it to restrict results to activity that first appeared within a recent window. Results with earlier dated evidence, or with no dated evidence, are excluded as a whole; evidence returned within a matching result is not time-filtered. The comparison uses all known supporting evidence, including records omitted by response filters or limits. Supported when surface_mode=topic."
          },
          {
            "name": "surface_mode",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/ListSurfaceMode",
              "description": "List raw topics or deduped derived story surfaces",
              "default": "topic"
            },
            "description": "List raw topics or deduped derived story surfaces"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListTopicsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-mint": {
          "metadata": {
            "tag": "BETA"
          }
        },
        "x-agent-description": "List emerging topics gaining traction in online communities. Filter by vertical — only valid values are: tech, sports, politics. Category filtering is currently only supported for sports in topic mode. Also filter by status (e.g., status=emerging for newly rising topics). Use surface_mode=story to return deduped derived story surfaces instead of raw topics.",
        "x-agent-params": [
          "feed",
          "vertical",
          "category",
          "status",
          "limit",
          "cursor",
          "surface_mode",
          "include",
          "earliest_evidence_at_or_after"
        ]
      }
    },
    "/v1/topics/breakout/metadata": {
      "get": {
        "tags": [
          "Breakout Topics"
        ],
        "summary": "Get Breakout Topics Metadata",
        "description": "Get metadata about available verticals and categories for filtering.\n\nReturns the taxonomy of verticals and their associated categories,\nwith human-readable display names for building filter UIs.",
        "operationId": "get_breakout_metadata",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BreakoutMetadataResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "x-mint": {
          "metadata": {
            "tag": "BETA"
          }
        },
        "x-agent-description": "Get available breakout topic filters. Valid verticals are: tech, sports, politics. Category filters are currently only supported for the sports vertical."
      }
    },
    "/v1/topics/breakout/narratives": {
      "get": {
        "tags": [
          "Breakout Topics"
        ],
        "summary": "List Narratives",
        "description": "List narrative arcs, ordered by most recently updated.",
        "operationId": "list_narratives",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "vertical",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by vertical",
              "title": "Vertical"
            },
            "description": "Filter by vertical"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListNarrativesResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-mint": {
          "metadata": {
            "tag": "BETA"
          }
        },
        "x-agent-description": "List narrative arcs that group related breakout topics. Ordered by most recently updated."
      }
    },
    "/v1/topics/breakout/narratives/{narrative_id}": {
      "get": {
        "tags": [
          "Breakout Topics"
        ],
        "summary": "Get Narrative",
        "description": "Get a narrative by ID with member topics.",
        "operationId": "get_narrative",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "narrative_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Narrative UUID returned by `GET /v1/topics/breakout/narratives`.",
              "title": "Narrative Id"
            },
            "description": "Narrative UUID returned by `GET /v1/topics/breakout/narratives`."
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "enum": [
                  "citations",
                  "entities"
                ],
                "type": "string"
              },
              "description": "Optional expansions to include on member topics. Allowed values: citations, entities. Example: include=citations&include=entities",
              "default": [],
              "title": "Include"
            },
            "description": "Optional expansions to include on member topics. Allowed values: citations, entities. Example: include=citations&include=entities"
          },
          {
            "name": "feed",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Entitled private feed that returned this narrative.",
              "title": "Feed"
            },
            "description": "Entitled private feed that returned this narrative."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NarrativeDetailResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-mint": {
          "metadata": {
            "tag": "BETA"
          }
        },
        "x-agent-description": "Get a narrative arc with its member breakout topics. Use a narrative_id from `GET /v1/topics/breakout/narratives`."
      }
    },
    "/v1/topics/breakout/search": {
      "post": {
        "tags": [
          "Breakout Topics"
        ],
        "summary": "Search Breakout Topics",
        "description": "Search breakout topics using hybrid vector + keyword search.\n\nSupports three search modes:\n- vector: Semantic similarity search using embeddings\n- keyword: Full-text search using PostgreSQL tsvector\n- hybrid: Combined vector and keyword search (default)",
        "operationId": "search_breakout_topics",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchTopicsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchTopicsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "x-mint": {
          "metadata": {
            "tag": "BETA"
          }
        },
        "x-agent-description": "Search for specific breakout topics by keyword within a vertical. Use when looking for topics about a particular subject (e.g., search 'AI' within the tech vertical). Uses hybrid search for relevance.",
        "x-agent-params": [
          "query",
          "feed",
          "vertical",
          "mode",
          "surface_mode",
          "limit",
          "include",
          "query_context",
          "kalshi_event_url"
        ]
      }
    },
    "/v1/topics/breakout/similar": {
      "post": {
        "tags": [
          "Breakout Topics"
        ],
        "summary": "Find Similar Topics",
        "description": "Find topics similar to a given topic by embedding similarity.",
        "operationId": "find_similar_topics",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SimilarTopicsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimilarTopicsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "x-mint": {
          "metadata": {
            "tag": "BETA"
          }
        },
        "x-agent-description": "Find topics similar to a given topic by semantic similarity. Use a topic_id from `GET /v1/topics/breakout` or `POST /v1/topics/breakout/search`.",
        "x-agent-params": [
          "topic_id",
          "feed",
          "limit",
          "include"
        ]
      }
    },
    "/v1/topics/breakout/{topic_id}": {
      "get": {
        "tags": [
          "Breakout Topics"
        ],
        "summary": "Get Breakout Topic",
        "description": "Get a single breakout topic by ID.",
        "operationId": "get_breakout_topic",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "topic_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Breakout topic UUID returned by `GET /v1/topics/breakout` or `POST /v1/topics/breakout/search`. Do not pass raw query text or domains.",
              "title": "Topic Id"
            },
            "description": "Breakout topic UUID returned by `GET /v1/topics/breakout` or `POST /v1/topics/breakout/search`. Do not pass raw query text or domains."
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "enum": [
                  "citations",
                  "entities"
                ],
                "type": "string"
              },
              "description": "Which expansions to return. The topic detail includes citations and entities by default; pass include to limit the response to a subset, e.g. include=citations. Allowed values: citations, entities.",
              "default": [],
              "title": "Include"
            },
            "description": "Which expansions to return. The topic detail includes citations and entities by default; pass include to limit the response to a subset, e.g. include=citations. Allowed values: citations, entities."
          },
          {
            "name": "feed",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Entitled private feed that returned this topic.",
              "title": "Feed"
            },
            "description": "Entitled private feed that returned this topic."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetTopicResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-mint": {
          "metadata": {
            "tag": "BETA"
          }
        },
        "x-agent-description": "Get full details for a single breakout topic by ID. Use a topic_id from `GET /v1/topics/breakout` or `POST /v1/topics/breakout/search`, not raw query text or domains."
      }
    },
    "/v1/topics/breakout/{topic_id}/story": {
      "get": {
        "tags": [
          "Breakout Topics"
        ],
        "summary": "Get Topic Story View",
        "description": "Get the best available derived story surface around a seed topic.",
        "operationId": "get_breakout_topic_story_view",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "topic_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Breakout topic UUID returned by `GET /v1/topics/breakout` or `POST /v1/topics/breakout/search`. Do not pass raw query text or domains.",
              "title": "Topic Id"
            },
            "description": "Breakout topic UUID returned by `GET /v1/topics/breakout` or `POST /v1/topics/breakout/search`. Do not pass raw query text or domains."
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "enum": [
                  "citations",
                  "entities"
                ],
                "type": "string"
              },
              "description": "Optional related data to include. Allowed: \"citations\", \"entities\".",
              "default": [],
              "title": "Include"
            },
            "description": "Optional related data to include. Allowed: \"citations\", \"entities\"."
          },
          {
            "name": "include_citations",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Deprecated: use include=[\"citations\",\"entities\"] instead.",
              "deprecated": true,
              "default": false,
              "title": "Include Citations"
            },
            "description": "Deprecated: use include=[\"citations\",\"entities\"] instead.",
            "deprecated": true
          },
          {
            "name": "feed",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Entitled private feed that returned this topic.",
              "title": "Feed"
            },
            "description": "Entitled private feed that returned this topic."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TopicStoryViewResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-mint": {
          "metadata": {
            "tag": "BETA"
          }
        },
        "x-agent-description": "Get the best available derived story surface around a breakout topic. Use a topic_id from `GET /v1/topics/breakout` or `POST /v1/topics/breakout/search`. Prefers a strict timeline when available, otherwise falls back to a related topical cluster or the topic itself."
      }
    },
    "/v1/categories/search": {
      "post": {
        "tags": [
          "Taxonomy"
        ],
        "summary": "Media Categories Search",
        "description": "Find the most relevant categories from the taxonomy for a given freeform text. Useful for discovering the best category for brand industries, target audiences, etc. Returns ordered matches with confidence scores.",
        "operationId": "search_categories",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CategorySearchInput",
                "description": "Search parameters"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CategorySearchResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "x-agent-description": "Find the most relevant categories from the taxonomy for a given freeform text (e.g., { \"text\": \"gaming and esports\" }). Useful for discovering valid category values to pass as filters to the sponsors, sponsorships, and breakout topics endpoints. Returns ordered category matches with confidence scores.",
        "x-agent-params": [
          "text"
        ]
      }
    },
    "/v1/media_categories": {
      "get": {
        "tags": [
          "Taxonomy"
        ],
        "summary": "Media Categories",
        "description": "Returns the media categories split into L1 (top-level) and L2 (second-level) lists. These categories can be used as a filter for sponsors, sponsorships. and other endpoints which support filtering by categories.",
        "operationId": "media_categories",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CategoriesResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "x-agent-description": "Returns the media categories split into L1 (top-level) and L2 (second-level) lists. These categories can be used as a filter for sponsors, sponsorships, and other endpoints."
      }
    },
    "/v1/breakout/feeds": {
      "get": {
        "tags": [
          "Breakout Feeds"
        ],
        "summary": "List Private Breakout Feeds",
        "operationId": "list_private_breakout_feeds",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrivateFeedCatalogResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/v1/breakout/feeds/{feed_slug}": {
      "get": {
        "tags": [
          "Breakout Feeds"
        ],
        "summary": "Get Private Breakout Feed",
        "operationId": "get_private_breakout_feed",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "feed_slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Feed Slug"
            }
          },
          {
            "name": "facet",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Facet"
            }
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "evidence",
                    "story",
                    "theme",
                    "trend",
                    "entity"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Kind"
            }
          },
          {
            "name": "earliest_evidence_at_or_after",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Inclusive ISO 8601 lower bound for an item's earliest evidence. A source-reported calendar date without a time qualifies when the entire date is on or after the cutoff. Matching items keep all their evidence.",
              "title": "Earliest Evidence At Or After"
            },
            "description": "Inclusive ISO 8601 lower bound for an item's earliest evidence. A source-reported calendar date without a time qualifies when the entire date is on or after the cutoff. Matching items keep all their evidence."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 60,
              "title": "Limit"
            }
          },
          {
            "name": "include_annotations",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Include optional editorial notes when available.",
              "default": true,
              "title": "Include Annotations"
            },
            "description": "Include optional editorial notes when available."
          },
          {
            "name": "include_source_activity",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Include sampled post activity for the Monitor pilot.",
              "default": false,
              "title": "Include Source Activity"
            },
            "description": "Include sampled post activity for the Monitor pilot."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrivateFeedResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/discovery/feeds": {
      "get": {
        "tags": [
          "Discovery Feeds"
        ],
        "summary": "List Discovery Feeds",
        "operationId": "list_discovery_feeds",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DiscoveryFeedCatalog"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/v1/discovery/feeds/{feed_slug}": {
      "get": {
        "tags": [
          "Discovery Feeds"
        ],
        "summary": "Get Discovery Feed",
        "operationId": "get_discovery_feed",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "feed_slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Feed Slug"
            }
          },
          {
            "name": "release_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Release Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DiscoveryFeedResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/discovery/feeds/{feed_slug}/items/{item_id}": {
      "get": {
        "tags": [
          "Discovery Feeds"
        ],
        "summary": "Get Discovery Feed Item",
        "operationId": "get_discovery_feed_item",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "feed_slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Feed Slug"
            }
          },
          {
            "name": "item_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Item Id"
            }
          },
          {
            "name": "release_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Release Id"
            }
          },
          {
            "name": "include_research_history",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Include current research activity separately from the saved edition.",
              "default": false,
              "title": "Include Research History"
            },
            "description": "Include current research activity separately from the saved edition."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DiscoveryFeedItemResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/discovery/feeds/{feed_slug}/releases": {
      "get": {
        "tags": [
          "Discovery Feeds"
        ],
        "summary": "List Discovery Feed Releases",
        "operationId": "list_discovery_feed_releases",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "feed_slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Feed Slug"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                },
                {
                  "type": "null"
                }
              ],
              "description": "`next_cursor` from a previous response, to read older editions.",
              "title": "Cursor"
            },
            "description": "`next_cursor` from a previous response, to read older editions."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 50,
              "minimum": 1,
              "description": "Editions to return.",
              "default": 20,
              "title": "Limit"
            },
            "description": "Editions to return."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DiscoveryFeedReleaseHistory"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/images/download": {
      "post": {
        "tags": [
          "Images"
        ],
        "summary": "Download an image",
        "description": "Download an image from a public HTTPS URL. Useful when a website blocks direct image downloads.\n\nReturns the original image bytes, with the format in `Content-Type`. Errors return JSON.\n\nSupports JPEG, PNG, WebP, GIF, and AVIF up to 10 MiB, with at most 16 million pixels across up to 32 frames.\n\nFor product images, add `image_url` to `include` in `POST /v1/brand/products` and pass the returned URL here.",
        "operationId": "download_image_bytes_v1_images_download_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImageDownloadInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Original image bytes.",
            "content": {
              "image/jpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/png": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/webp": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/gif": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/avif": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "Invalid or non-public URL."
          },
          "404": {
            "description": "Source image not found."
          },
          "413": {
            "description": "Request body or image exceeds a size, pixel, or frame limit."
          },
          "429": {
            "description": "Too many requests."
          },
          "502": {
            "description": "Source unavailable or did not return a supported image."
          },
          "503": {
            "description": "Image downloads temporarily unavailable. Retry later."
          },
          "504": {
            "description": "Download timed out."
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "x-agent-description": "Download an image from a public HTTPS URL. Useful when a website blocks direct image downloads. Returns the original image bytes, with the format in Content-Type. Errors return JSON.",
        "x-agent-params": [
          "url"
        ],
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "Save an image",
            "source": "# Set UPRIVER_API_KEY to your API key and replace the image URL.\ncurl --fail 'https://api.upriver.ai/v1/images/download' \\\n  -H \"X-API-Key: $UPRIVER_API_KEY\" \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"url\":\"https://www.pepsi.com/prod/s3fs-public/2026-01/product_image_pepsi_0.png\"}' \\\n  --dump-header - \\\n  --output image.bin"
          }
        ]
      }
    },
    "/v1/usage": {
      "get": {
        "tags": [
          "Account"
        ],
        "summary": "Get Usage",
        "description": "Get usage for the provided API key",
        "operationId": "get_usage_v1_usage_get",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Start of custom date range (YYYY-MM-DD, UTC inclusive)",
              "title": "Start Date"
            },
            "description": "Start of custom date range (YYYY-MM-DD, UTC inclusive)"
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "End of custom date range (YYYY-MM-DD, UTC inclusive)",
              "title": "End Date"
            },
            "description": "End of custom date range (YYYY-MM-DD, UTC inclusive)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsageResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AdEvidence": {
        "properties": {
          "source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source",
            "description": "Origin of the evidence (e.g., 'transcript', 'description', 'post_body', 'title').",
            "example": "transcript"
          },
          "excerpt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Excerpt",
            "description": "Short excerpt around the sponsor mention. May be raw text or HTML depending on source.",
            "example": "...thanks to Acme for sponsoring today's video--use code GADGET for 10%..."
          },
          "offset_seconds": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Offset Seconds",
            "description": "Approximate timestamp in seconds when source is 'transcript'. Null for sources without timing (e.g., description).",
            "example": 92.5
          },
          "confidence": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Confidence",
            "description": "Detection confidence for this specific piece of evidence (0-1), when available.",
            "example": 0.88
          }
        },
        "type": "object",
        "title": "AdEvidence",
        "description": "Structured evidence about where/how the sponsor was detected."
      },
      "AppliedFilter": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Filter key, e.g., 'time_range', 'platforms', 'min_confidence'."
          },
          "value": {
            "title": "Value",
            "description": "Applied value (JSON-serializable)."
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason",
            "description": "Optional note (e.g., 'filled default', 'normalized')."
          }
        },
        "type": "object",
        "required": [
          "name",
          "value"
        ],
        "title": "AppliedFilter",
        "description": "Structured record of a filter or normalization that affected the returned payload.\nGood for audit/debug; suitable for 'metadata_mode=debug'."
      },
      "ArtifactRef": {
        "properties": {
          "sha256": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$",
            "title": "Sha256"
          },
          "byte_count": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Byte Count"
          },
          "locator": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Locator"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "sha256",
          "byte_count"
        ],
        "title": "ArtifactRef",
        "description": "Digest is authoritative; locator is an optional transport hint."
      },
      "AudienceAge": {
        "properties": {
          "min_age": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Min Age",
            "description": "Primary directional envelope lower bound (inclusive), null if unbounded. May be broader than quantified segments.",
            "examples": [
              13,
              18,
              25
            ]
          },
          "max_age": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Age",
            "description": "Primary directional envelope upper bound (inclusive), null if unbounded. May be broader than quantified segments.",
            "examples": [
              24,
              34,
              44
            ]
          },
          "segments": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/AudienceAgeSegment"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Segments",
            "description": "Explicit percentage breakdown by age range. May be partial and not exhaustive."
          },
          "confidence": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high"
            ],
            "title": "Confidence",
            "description": "Confidence level based on data source quality.",
            "default": "medium"
          }
        },
        "type": "object",
        "title": "AudienceAge",
        "description": "Age distribution with confidence.\n\nThe `min_age`/`max_age` range is a directional envelope where the creator\nhas meaningful audience concentration. It is not an exact analytics\nbreakdown.\n\nThe `segments` field contains only explicit percentage buckets from grounded\ndata. Segments may be partial: they do not need to cover the full\n`min_age`/`max_age` envelope and do not need to sum to 100.\n\nWhen both are present:\n- `min_age`/`max_age` gives broad directional context\n- `segments` gives the quantified subset with explicit percentages\n\nWhen only one data type is available, the other may be omitted.\n\nExample with explicit data:\n    {\n      \"min_age\": 18, \"max_age\": 24,\n      \"segments\": [\n        {\"min_age\": 18, \"max_age\": 24, \"percentage\": 45},\n        {\"min_age\": 25, \"max_age\": 34, \"percentage\": 30}\n      ],\n      \"confidence\": \"high\"\n    }\n\nExample without explicit data:\n    {\"min_age\": 18, \"max_age\": 24, \"confidence\": \"medium\"}\n\nExample with partial segments:\n    {\n      \"min_age\": 18, \"max_age\": 34,\n      \"segments\": [\n        {\"min_age\": 24, \"max_age\": 29, \"percentage\": 40},\n        {\"min_age\": 30, \"max_age\": 34, \"percentage\": 30}\n      ],\n      \"confidence\": \"medium\"\n    }\n\nExample unbounded:\n    {\"min_age\": 55, \"confidence\": \"medium\"}  (55+)"
      },
      "AudienceAgeSegment": {
        "properties": {
          "min_age": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Min Age",
            "description": "Lower bound (inclusive), null if unbounded below.",
            "examples": [
              13,
              18,
              25,
              35,
              45,
              55
            ]
          },
          "max_age": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Age",
            "description": "Upper bound (inclusive), null if unbounded above.",
            "examples": [
              17,
              24,
              34,
              44,
              54
            ]
          },
          "percentage": {
            "type": "integer",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Percentage",
            "description": "Percentage of audience in this age range.",
            "examples": [
              45,
              30,
              15
            ]
          }
        },
        "type": "object",
        "required": [
          "percentage"
        ],
        "title": "AudienceAgeSegment",
        "description": "Age segment with percentage breakdown."
      },
      "AudienceCountrySegment": {
        "properties": {
          "country": {
            "type": "string",
            "title": "Country",
            "description": "ISO 3166-1 alpha-2 country code.",
            "examples": [
              "US",
              "GB",
              "CA",
              "BR"
            ]
          },
          "country_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Country Name",
            "description": "Human-readable country name derived from ISO code.",
            "examples": [
              "United States",
              "United Kingdom"
            ]
          },
          "percentage": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 100.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Percentage",
            "description": "Percentage of audience in this country, if known.",
            "examples": [
              65,
              15,
              10
            ]
          }
        },
        "type": "object",
        "required": [
          "country"
        ],
        "title": "AudienceCountrySegment",
        "description": "Country segment with optional percentage breakdown."
      },
      "AudienceGender": {
        "properties": {
          "value": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "male",
                  "female",
                  "balanced"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Value",
            "description": "Gender skew: male, female, balanced (45-55%), or null.",
            "examples": [
              "female",
              "male",
              "balanced"
            ]
          },
          "percentage": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Percentage",
            "description": "Percentage of primary gender (0-100). Only present when explicit analytics data is available.",
            "examples": [
              72,
              65,
              55
            ]
          },
          "confidence": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high"
            ],
            "title": "Confidence",
            "description": "Confidence level based on data source quality.",
            "default": "medium"
          }
        },
        "type": "object",
        "title": "AudienceGender",
        "description": "Gender distribution with confidence.\n\nThe `percentage` field is only included when explicit numerical data exists.\nWhen gender skew is inferred without specific percentages (e.g., \"female-leaning\"),\nonly `value` and `confidence` are returned.\n\nValues:\n  - \"male\"/\"female\": audience skews this direction\n  - \"balanced\": roughly even split (45-55%), backed by evidence\n  - null: unknown / insufficient data\n\nExample with explicit data:\n    {\"value\": \"female\", \"percentage\": 72, \"confidence\": \"high\"}\n\nExample without explicit data:\n    {\"value\": \"female\", \"confidence\": \"medium\"}"
      },
      "AudienceGeography": {
        "properties": {
          "countries": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/AudienceCountrySegment"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Countries",
            "description": "Countries where the creator has significant audience presence, as ISO codes. Order is approximate, not a strict ranking. This list may not be exhaustive — absence of a country does not mean the creator has no audience there. Percentage is included only when grounded data is available."
          },
          "international": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "International",
            "description": "True if meaningful audience outside primary country, false if concentrated in one country, null if unknown."
          },
          "confidence": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high"
            ],
            "title": "Confidence",
            "description": "Confidence level based on data source quality.",
            "default": "medium"
          }
        },
        "type": "object",
        "title": "AudienceGeography",
        "description": "Geographic distribution with confidence.\n\nThe `countries` field lists countries where the creator has significant\naudience presence — NOT necessarily ranked by dominance. Ordering is\napproximate and should not be treated as a strict ranking. This list\nmay not be exhaustive; absence of a country does not mean the creator\nhas no audience there. Use this to answer \"does this creator reach\naudiences in X?\" rather than \"what is their #1 country?\"\n\nPercentage is included only when grounded analytics data exists.\n\nExample with percentages:\n    {\n      \"countries\": [\n        {\"country\": \"US\", \"percentage\": 65},\n        {\"country\": \"GB\", \"percentage\": 15}\n      ],\n      \"international\": true,\n      \"confidence\": \"high\"\n    }\n\nExample without percentages (countries still listed):\n    {\n      \"countries\": [{\"country\": \"US\"}, {\"country\": \"GB\"}],\n      \"international\": true,\n      \"confidence\": \"medium\"\n    }"
      },
      "AudienceInsightsResponseV3": {
        "properties": {
          "rollup_summary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rollup Summary",
            "description": "One-paragraph cross-persona summary (1-2 sentences)."
          },
          "personas": {
            "items": {
              "$ref": "#/components/schemas/PersonaV3"
            },
            "type": "array",
            "title": "Personas",
            "description": "Up to 8 distinct, evidence-supported audience personas. The response may contain fewer when the available evidence does not support more."
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMetaV3",
            "description": "Generation metadata."
          }
        },
        "type": "object",
        "required": [
          "personas"
        ],
        "title": "AudienceInsightsResponseV3"
      },
      "AudienceLanguageSegment": {
        "properties": {
          "language": {
            "type": "string",
            "title": "Language",
            "description": "Language name.",
            "examples": [
              "English",
              "Spanish",
              "Portuguese"
            ]
          },
          "percentage": {
            "type": "integer",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Percentage",
            "description": "Percentage of audience using this language.",
            "examples": [
              85,
              10,
              5
            ]
          }
        },
        "type": "object",
        "required": [
          "language",
          "percentage"
        ],
        "title": "AudienceLanguageSegment",
        "description": "Language segment with percentage breakdown."
      },
      "AudienceLanguages": {
        "properties": {
          "value": {
            "type": "string",
            "title": "Value",
            "description": "Primary language.",
            "examples": [
              "English",
              "Spanish",
              "Portuguese"
            ]
          },
          "breakdown": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/AudienceLanguageSegment"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Breakdown",
            "description": "Breakdown by language with percentages. Only present when explicit analytics data is available."
          },
          "confidence": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high"
            ],
            "title": "Confidence",
            "description": "Confidence level based on data source quality.",
            "default": "medium"
          }
        },
        "type": "object",
        "required": [
          "value"
        ],
        "title": "AudienceLanguages",
        "description": "Language distribution with confidence.\n\nThe `breakdown` field is only included when explicit percentage data exists.\nWhen language is inferred without specific breakdowns, only `value` and\n`confidence` are returned.\n\nExample with explicit data:\n    {\n      \"value\": \"English\",\n      \"breakdown\": [\n        {\"language\": \"English\", \"percentage\": 85},\n        {\"language\": \"Spanish\", \"percentage\": 10}\n      ],\n      \"confidence\": \"high\"\n    }\n\nExample without explicit data:\n    {\"value\": \"English\", \"confidence\": \"high\"}"
      },
      "BrandInput": {
        "properties": {
          "brand_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Brand Url",
            "description": "The brand website URL to research. HTTP URLs are upgraded to HTTPS.",
            "example": "https://example.com"
          },
          "brand_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Brand Name",
            "description": "The brand name to research",
            "example": "Example Brand"
          },
          "include": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Include",
            "description": "Optional list of extra data to include in the response. Supported values: 'colors'. When 'colors' is included, brand colors are extracted from the website CSS and logos.",
            "default": [],
            "example": [
              "colors"
            ]
          }
        },
        "type": "object",
        "title": "BrandInput",
        "description": "Input model for brand research endpoint.",
        "example": {
          "brand_url": "https://www.bose.com"
        }
      },
      "BrandProductDetailInput": {
        "properties": {
          "brand_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Brand Url",
            "description": "The brand's website URL.",
            "example": "https://glossier.com"
          },
          "brand_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Brand Name",
            "description": "Deprecated — brand name is now resolved automatically from the URL. This field is accepted but ignored.",
            "deprecated": true
          },
          "product_name": {
            "type": "string",
            "title": "Product Name",
            "description": "The name of the product to research.",
            "example": "Boy Brow"
          },
          "product_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Product Url",
            "description": "The product page URL.",
            "example": "https://www.glossier.com/products/boy-brow"
          },
          "effort": {
            "$ref": "#/components/schemas/EffortLevel",
            "description": "Effort level: 'low' (basic details), 'high' (includes competitive info)",
            "default": "low",
            "example": "low"
          }
        },
        "type": "object",
        "required": [
          "product_name"
        ],
        "title": "BrandProductDetailInput",
        "description": "Input model for detailed product research endpoint.",
        "example": {
          "product_name": "Boy Brow",
          "product_url": "https://www.glossier.com/products/boy-brow"
        }
      },
      "BrandProductDetailResponse": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Official product name",
            "example": "Boy Brow"
          },
          "description": {
            "type": "string",
            "title": "Description",
            "description": "Detailed product description",
            "example": "A brushable, buildable brow gel that thickens and shapes brows. Available in 5 shades, Boy Brow uses a short bristle brush to deposit a flexible, buildable hold formula."
          },
          "features": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Features",
            "description": "Key features",
            "example": [
              "Flexible, buildable hold",
              "Short bristle brush for precise application",
              "Available in 5 shades",
              "Conditioning formula with cellulose and oleic acid"
            ]
          },
          "specifications": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Specifications",
            "description": "Technical specifications",
            "example": {
              "shades": "Blond, Brown, Black, Auburn, Clear",
              "size": "3.12 g / 0.11 oz",
              "type": "Brow gel"
            }
          },
          "price": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Price",
            "description": "Price information",
            "example": "$18.00"
          },
          "currency": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Currency",
            "description": "Currency code",
            "example": "USD"
          },
          "reviews_summary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reviews Summary",
            "description": "Summary of reviews",
            "example": "4.5 stars from 3,200+ reviews. Customers love the natural look and easy application."
          },
          "alternatives": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Alternatives",
            "description": "Alternative products (high effort only)",
            "example": [
              "Benefit Gimme Brow+",
              "NYX Thick It Stick It Brow Gel"
            ]
          },
          "images": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Images",
            "description": "Product images",
            "example": [
              "https://www.glossier.com/cdn/images/boy-brow-brown.jpg"
            ]
          }
        },
        "type": "object",
        "required": [
          "name",
          "description"
        ],
        "title": "BrandProductDetailResponse",
        "description": "Response model for detailed product research."
      },
      "BrandProductInput": {
        "properties": {
          "brand_url": {
            "type": "string",
            "title": "Brand Url",
            "description": "Required. Brand website URL to research for products. HTTP URLs are upgraded to HTTPS. Provide this on every request, including pagination requests that also send a `cursor`.",
            "example": "https://glossier.com"
          },
          "brand_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Brand Name",
            "description": "Deprecated — brand name is now resolved automatically from the URL. This field is accepted but ignored.",
            "deprecated": true
          },
          "response_format": {
            "$ref": "#/components/schemas/ResponseFormat",
            "description": "Format for the response: 'json' for structured data, 'text' for natural language",
            "default": "json",
            "example": "json"
          },
          "cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cursor",
            "description": "Use this to paginate through results, providing the `next_cursor` returned from a previous request. When set, `brand_url` is still required and must match the brand encoded in the cursor. If omitted, the first page of results is returned. "
          },
          "tier": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "primary",
                  "secondary"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Tier",
            "description": "Optional product relationship filter: primary is what the business mainly sells or provides; secondary covers complementary or incidental offerings outside its main business. Omit to include all verified products, including those whose relationship cannot be established. Use the same filter on every pagination request."
          },
          "limit": {
            "type": "integer",
            "maximum": 20.0,
            "minimum": 1.0,
            "title": "Limit",
            "description": "Maximum products to return, from 1 to 20. Fewer may be returned when the website supports fewer offerings.",
            "default": 10
          },
          "include": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "enum": [
                    "description",
                    "image_url"
                  ]
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Include",
            "description": "Which per-product fields to return. Allowed values: 'description', 'image_url'. Omit the field to get 'description' only (the default). Add 'image_url' to also get product images. An explicit empty list returns name, url, and tier when known. Unrequested fields are omitted. Example: [\"description\", \"image_url\"]"
          }
        },
        "type": "object",
        "required": [
          "brand_url"
        ],
        "title": "BrandProductInput",
        "description": "Input model for brand product research endpoint."
      },
      "BrandProductResponse": {
        "properties": {
          "brand_url": {
            "type": "string",
            "title": "Brand Url",
            "description": "The brand's primary website URL",
            "example": "https://www.glossier.com"
          },
          "brand_name": {
            "type": "string",
            "title": "Brand Name",
            "description": "The resolved brand name",
            "example": "Glossier"
          },
          "products": {
            "items": {
              "$ref": "#/components/schemas/ProductInfo"
            },
            "type": "array",
            "title": "Products",
            "description": "List of products found on the brand's website"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor",
            "description": "Pagination cursor for the next page of results (if available)."
          },
          "has_more": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Has More",
            "description": "Whether more pages of results are available.",
            "example": true
          },
          "effort": {
            "$ref": "#/components/schemas/EffortLevel",
            "description": "Depth actually traveled to produce this page (resolved; never 'auto'). 'low' = served from the catalog/listing with no per-product detail lookups; 'mid'/'high' = a growing share of results needed a detail lookup.",
            "default": "low",
            "example": "low"
          }
        },
        "type": "object",
        "required": [
          "brand_url",
          "brand_name",
          "products"
        ],
        "title": "BrandProductResponse",
        "description": "Response model for brand product research results."
      },
      "BrandResearchEffort": {
        "type": "string",
        "enum": [
          "auto",
          "low",
          "mid",
          "high"
        ],
        "title": "BrandResearchEffort",
        "description": "Effort level for brand research."
      },
      "BrandV2Audience": {
        "properties": {
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description",
            "description": "Narrative description of the target audience"
          }
        },
        "type": "object",
        "title": "BrandV2Audience",
        "description": "Audience summary returned by /v2/brand."
      },
      "BrandV2Brand": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name",
            "description": "Brand name"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Url",
            "description": "Brand website URL"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description",
            "description": "Concise summary of what the brand/company is and does"
          },
          "identity": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BrandV2Identity"
              },
              {
                "type": "null"
              }
            ],
            "description": "Structured identity details"
          },
          "colors": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Colors",
            "description": "Brand color palette (primary/secondary/etc.)"
          },
          "note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Note",
            "description": "Additional notes or caveats from brand research"
          }
        },
        "type": "object",
        "title": "BrandV2Brand",
        "description": "Brand object for the v2 brand research endpoint."
      },
      "BrandV2Identity": {
        "properties": {
          "mission": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mission",
            "description": "Brand mission statement"
          },
          "values": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Values",
            "description": "Core brand values"
          },
          "tagline": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tagline",
            "description": "Brand tagline or slogan"
          },
          "language": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BrandV2Language"
              },
              {
                "type": "null"
              }
            ],
            "description": "Brand language details"
          }
        },
        "type": "object",
        "title": "BrandV2Identity",
        "description": "Structured brand identity block."
      },
      "BrandV2Language": {
        "properties": {
          "tone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tone",
            "description": "Brand tone of voice"
          },
          "key_phrases": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Key Phrases",
            "description": "Common brand phrases or messaging"
          }
        },
        "type": "object",
        "title": "BrandV2Language",
        "description": "Structured brand language details."
      },
      "BrandV2Response": {
        "properties": {
          "brand": {
            "$ref": "#/components/schemas/BrandV2Brand",
            "description": "Brand information"
          },
          "industries": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Industries",
            "description": "Industry labels"
          },
          "audience": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BrandV2Audience"
              },
              {
                "type": "null"
              }
            ],
            "description": "Target audience summary"
          },
          "metadata": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Metadata",
            "description": "Provenance and supporting evidence"
          },
          "effort": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BrandResearchEffort"
              },
              {
                "type": "null"
              }
            ],
            "description": "Effort level used to generate this result. 'auto' is resolved to the actual level applied."
          }
        },
        "type": "object",
        "required": [
          "brand"
        ],
        "title": "BrandV2Response",
        "description": "Response model for the v2 brand research endpoint."
      },
      "BreakoutCategoryMetadata": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id",
            "description": "Category identifier used for filtering"
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Human-readable display name"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name"
        ],
        "title": "BreakoutCategoryMetadata",
        "description": "Category metadata for API discovery."
      },
      "BreakoutCitationResponse": {
        "properties": {
          "source_category": {
            "type": "string",
            "title": "Source Category",
            "description": "Source category: news, web, reddit, tiktok, trends"
          },
          "source_url": {
            "type": "string",
            "title": "Source Url",
            "description": "URL of the source"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title",
            "description": "Headline of the source, when it has one (null for posts)"
          },
          "display": {
            "type": "string",
            "title": "Display",
            "description": "Display-ready label for the source — its headline, or the post text when the source has no headline. Prefer this over title.",
            "default": ""
          },
          "snippet": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Snippet",
            "description": "Relevant snippet from the source"
          },
          "source_authority": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Authority",
            "description": "Authority score of the source (0-1)"
          },
          "engagement_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Engagement Score",
            "description": "Normalized engagement score (0-1) for this citation"
          },
          "published_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Published At",
            "description": "When the source was published"
          }
        },
        "type": "object",
        "required": [
          "source_category",
          "source_url"
        ],
        "title": "BreakoutCitationResponse",
        "description": "Citation in API response — the full topic-surface shape.\n\nInherits the shared display-facing fields (source_category, source_url, title,\ndisplay) from ``CitationBase`` and adds the richer fields the topic detail\nsurface shows."
      },
      "BreakoutEntityResponse": {
        "properties": {
          "canonical_name": {
            "type": "string",
            "title": "Canonical Name",
            "description": "Resolved canonical name"
          },
          "entity_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Entity Id",
            "description": "Opaque identifier for this entity, if resolved"
          },
          "entity_type": {
            "type": "string",
            "title": "Entity Type",
            "description": "Coarse type: person, org, loc, event, product, entity"
          },
          "confidence": {
            "type": "number",
            "title": "Confidence",
            "description": "Resolution confidence (0-1)"
          },
          "entity_subtype": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Entity Subtype",
            "description": "Fine-grained entity type (e.g., sportsperson, city, company)"
          }
        },
        "type": "object",
        "required": [
          "canonical_name",
          "entity_type",
          "confidence"
        ],
        "title": "BreakoutEntityResponse",
        "description": "Resolved entity in API response."
      },
      "BreakoutMetadataResponse": {
        "properties": {
          "verticals": {
            "items": {
              "$ref": "#/components/schemas/BreakoutVerticalMetadata"
            },
            "type": "array",
            "title": "Verticals",
            "description": "Available verticals and any currently supported category filters"
          }
        },
        "type": "object",
        "required": [
          "verticals"
        ],
        "title": "BreakoutMetadataResponse",
        "description": "Metadata about available filters for breakout topics."
      },
      "BreakoutTopicResponse": {
        "properties": {
          "topic_id": {
            "type": "string",
            "title": "Topic Id",
            "description": "Topic UUID. Reuse this value with the breakout detail, story-view, and similar-topics endpoints."
          },
          "topic_name": {
            "type": "string",
            "title": "Topic Name",
            "description": "Primary name for the topic"
          },
          "canonical_name": {
            "type": "string",
            "title": "Canonical Name",
            "description": "Deprecated: use topic_name instead. Primary name for the topic.",
            "deprecated": true
          },
          "vertical": {
            "type": "string",
            "title": "Vertical",
            "description": "Vertical: sports, tech, politics"
          },
          "category": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Category",
            "description": "Category value on the topic. Filtering by category is only supported for sports topics."
          },
          "status": {
            "type": "string",
            "title": "Status",
            "description": "Lifecycle status: detected, emerging, trending, declining"
          },
          "score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score",
            "description": "Primary ranking score (0-1). Time-decayed composite of source authority, signal velocity, cross-platform confirmation, and engagement quality. Use this for sorting results."
          },
          "relevance_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Relevance Score",
            "description": "Query match confidence (0-1) when a search query is provided. Higher values indicate a stronger match to the query. The scale depends on the search mode and vertical, so compare values within one response rather than across searches. Null for browse/list results."
          },
          "engagement": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TopicEngagementResponse"
              },
              {
                "type": "null"
              }
            ],
            "description": "Multi-signal engagement scores for query-time weighting"
          },
          "peak_score": {
            "type": "number",
            "title": "Peak Score",
            "description": "Peak composite importance score (0-1) combining: source authority (domain trust), velocity (signal frequency), volume (total mentions), cross-platform confirmation (source diversity), and engagement quality. This is a frozen/historical metric representing the topic's peak importance—it does not decay over time. Use score for current rankings."
          },
          "confidence_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Confidence Score",
            "description": "Detection confidence (0-1) based on: cross-platform confirmation (multiple source types), source authority (trusted domains), entity resolution quality (how reliably entities were identified), and deduplication method (exact vs fuzzy matching)."
          },
          "discovered_at": {
            "type": "string",
            "format": "date-time",
            "title": "Discovered At",
            "description": "When the topic was first detected"
          },
          "earliest_evidence_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Earliest Evidence At",
            "description": "Earliest publication time among known dated evidence supporting this result; a proxy for when the underlying activity began."
          },
          "last_signal_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Signal At",
            "description": "Latest evidence-backed signal time for this topic. Prefer this over updated_at for user-facing freshness."
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At",
            "description": "Last material row mutation timestamp for the topic"
          },
          "source_summary": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Source Summary",
            "description": "Signal count by source category: {news: 5, reddit: 12, web: 3}"
          },
          "citations": {
            "items": {
              "$ref": "#/components/schemas/BreakoutCitationResponse"
            },
            "type": "array",
            "title": "Citations",
            "description": "Top citations for this topic"
          },
          "entities": {
            "items": {
              "$ref": "#/components/schemas/BreakoutEntityResponse"
            },
            "type": "array",
            "title": "Entities",
            "description": "Resolved entities mentioned in topic"
          },
          "trend": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TopicTrendResponse"
              },
              {
                "type": "null"
              }
            ],
            "description": "Momentum and trend direction signals"
          },
          "citation_rate": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/CitationRateBucket"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Citation Rate",
            "description": "Daily citation counts for charting (detail endpoint only)"
          },
          "citation_rate_hourly": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/HourlyCitationRateBucket"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Citation Rate Hourly",
            "description": "Hourly UTC citation counts, oldest first (detail endpoint only)"
          },
          "narrative": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TopicNarrativeContext"
              },
              {
                "type": "null"
              }
            ],
            "description": "Narrative context when collapse_narratives is enabled"
          },
          "temporal_status": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "upcoming",
                  "ongoing",
                  "past"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Temporal Status",
            "description": "Whether the event this topic is about is upcoming, ongoing, or already past, relative to the request time. Null when the topic is not tied to a scheduled event."
          },
          "event_start_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Event Start At",
            "description": "Scheduled start time (UTC) of the event this topic is about, if known."
          },
          "event_end_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Event End At",
            "description": "Scheduled end time (UTC) of the event this topic is about, if known."
          }
        },
        "type": "object",
        "required": [
          "topic_id",
          "topic_name",
          "canonical_name",
          "vertical",
          "status",
          "peak_score",
          "discovered_at",
          "updated_at"
        ],
        "title": "BreakoutTopicResponse",
        "description": "Single breakout topic in API response."
      },
      "BreakoutVerticalMetadata": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id",
            "description": "Vertical identifier used for filtering"
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Human-readable display name"
          },
          "categories": {
            "items": {
              "$ref": "#/components/schemas/BreakoutCategoryMetadata"
            },
            "type": "array",
            "title": "Categories",
            "description": "Supported categories for this vertical. Currently populated only for sports."
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "categories"
        ],
        "title": "BreakoutVerticalMetadata",
        "description": "Vertical metadata with nested categories."
      },
      "BroadTrend": {
        "properties": {
          "title": {
            "type": "string",
            "title": "Title",
            "description": "Short name of the trend"
          },
          "summary": {
            "type": "string",
            "title": "Summary",
            "description": "1-3 sentences describing why it's culturally relevant"
          },
          "uses_specific_sound": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Uses Specific Sound",
            "description": "Whether the trend uses a specific recognizable sound, derived from dominant-sound evidence and signature-sound classification."
          },
          "participation_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Participation Type",
            "description": "What the trend requires from creators: open, timed, lip_sync, choreography"
          },
          "content_structure": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Content Structure",
            "description": "Shared non-audio pattern across videos: none (sound-led only), loose (shared theme/aesthetic without a repeatable template), or structured (repeatable text, editing, or visual template)."
          },
          "has_text_template": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Has Text Template",
            "description": "Whether videos share a repeatable text overlay pattern"
          },
          "id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Id",
            "description": "Stable trend identifier"
          },
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Status",
            "description": "Trend status (e.g., active)"
          },
          "video_samples": {
            "anyOf": [
              {
                "items": {},
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Video Samples",
            "description": "Sample of video items [{url, media_key}]"
          },
          "emerged_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Emerged At",
            "description": "Timestamp when the trend first showed enough activity to be considered emerging. Drives the ordering of the 'emerging' sort mode."
          },
          "earliest_evidence_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Earliest Evidence At",
            "description": "Earliest publication time among known dated evidence supporting this result; a proxy for when the underlying activity began."
          },
          "freshness_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Freshness Score",
            "description": "Freshness score (0-1) based on most recent evidence date"
          },
          "timeliness_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Timeliness Status",
            "description": "Timeliness status: recent/active/stale/cold"
          },
          "typical_duration_seconds": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Typical Duration Seconds",
            "description": "Representative content duration in seconds. For sound trends: the sound's duration. For other trends: median of video durations."
          },
          "tags": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/TrendTag"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tags",
            "description": "Tags associated with this trend"
          },
          "brand_safety": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Brand Safety"
          },
          "commercial_music_approved": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Commercial Music Approved",
            "description": "Whether the platform explicitly marked the sound as approved for commercial/business use. Omitted when unknown."
          }
        },
        "type": "object",
        "required": [
          "title",
          "summary"
        ],
        "title": "BroadTrend",
        "description": "A single broad cultural trend with social relevance."
      },
      "CandidateResearchSummary": {
        "properties": {
          "contract": {
            "type": "string",
            "const": "candidate-research-summary-v1",
            "title": "Contract",
            "default": "candidate-research-summary-v1"
          },
          "report": {
            "$ref": "#/components/schemas/ArtifactRef"
          },
          "candidate_id": {
            "type": "string",
            "minLength": 1,
            "title": "Candidate Id"
          },
          "proposal_fingerprint": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$",
            "title": "Proposal Fingerprint"
          },
          "generation": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ArtifactRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "completed_at": {
            "type": "string",
            "format": "date-time",
            "title": "Completed At"
          },
          "direct": {
            "$ref": "#/components/schemas/ResearchScopeSummary"
          },
          "broader_context": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ResearchScopeSummary"
              },
              {
                "type": "null"
              }
            ]
          },
          "collection": {
            "$ref": "#/components/schemas/ResearchCollectionSummary"
          },
          "review_budget": {
            "$ref": "#/components/schemas/ResearchBudgetReceipt"
          },
          "qualification": {
            "type": "string",
            "title": "Qualification",
            "default": "Counts describe distinct sources retrieved by topic-directed searches, not a population or measured growth. Direct support and broader context use separate definitions and reviews. Broader context does not establish direct membership or a narrow-topic surge. Creator counts use retained provider identities; missing identities remain visible."
          },
          "population_inference": {
            "type": "boolean",
            "const": false,
            "title": "Population Inference",
            "default": false
          },
          "cpf_admission": {
            "type": "boolean",
            "const": false,
            "title": "Cpf Admission",
            "default": false
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "report",
          "candidate_id",
          "proposal_fingerprint",
          "generation",
          "completed_at",
          "direct",
          "broader_context",
          "collection",
          "review_budget"
        ],
        "title": "CandidateResearchSummary"
      },
      "CatalogMatch": {
        "properties": {
          "ref": {
            "type": "string",
            "title": "Ref",
            "description": "The matched entry's caller-defined identifier."
          },
          "brand_url": {
            "type": "string",
            "title": "Brand Url",
            "description": "Brand website URL for the matched entry."
          },
          "score": {
            "type": "number",
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Score",
            "description": "Fit from 0 to 1 under the reported scoring strategy."
          },
          "evidence_grade": {
            "$ref": "#/components/schemas/EvidenceGrade",
            "description": "Strength of support behind this match."
          },
          "matched_offer": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MatchedOffer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Selected offer when full-context relevance was assessed."
          },
          "contributions": {
            "items": {
              "$ref": "#/components/schemas/Contribution"
            },
            "type": "array",
            "title": "Contributions",
            "description": "Supporting facet relationships. With a selected offer, these explain candidate discovery rather than add up to its relevance score."
          },
          "reasons": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Reasons",
            "description": "Short, human-readable reasons for this match."
          },
          "price_tier_fit": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "match",
                  "adjacent",
                  "mismatch"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Price Tier Fit",
            "description": "How this entry's price tier compares with the persona's price sensitivity: match, adjacent, or mismatch. Null when either the persona or the entry gives no price signal."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "ref",
          "brand_url",
          "score",
          "evidence_grade",
          "contributions",
          "reasons"
        ],
        "title": "CatalogMatch",
        "description": "One catalog entry ranked for fit against a persona."
      },
      "CategoriesResponse": {
        "properties": {
          "l1": {
            "items": {
              "$ref": "#/components/schemas/TaxonomyCategory"
            },
            "type": "array",
            "title": "L1",
            "description": "Top-level categories (level=1)"
          },
          "l2": {
            "items": {
              "$ref": "#/components/schemas/TaxonomyCategory"
            },
            "type": "array",
            "title": "L2",
            "description": "Second-level categories (level=2)"
          }
        },
        "type": "object",
        "required": [
          "l1",
          "l2"
        ],
        "title": "CategoriesResponse",
        "description": "Response containing lists of L1 and L2 taxonomy categories."
      },
      "CategoryMatch": {
        "properties": {
          "category_id": {
            "type": "string",
            "title": "Category Id",
            "description": "Category ID from taxonomy"
          },
          "display_name": {
            "type": "string",
            "title": "Display Name",
            "description": "Human-readable category name. Use this for embedding-based resolution in downstream endpoints."
          },
          "level": {
            "type": "integer",
            "title": "Level",
            "description": "Taxonomy level (1 or 2)"
          },
          "parent_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Parent Id",
            "description": "Parent category ID for L2 categories"
          },
          "confidence": {
            "type": "number",
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Confidence",
            "description": "Confidence score for this match"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason",
            "description": "Explanation for why this category was chosen"
          }
        },
        "type": "object",
        "required": [
          "category_id",
          "display_name",
          "level",
          "confidence"
        ],
        "title": "CategoryMatch",
        "description": "A matched category with confidence score.\n\nNote: When passing the matched category to other endpoints that use\nembedding-based resolution (like /sponsors), use the display_name field\nrather than category_id for better embedding matches."
      },
      "CategorySearchInput": {
        "properties": {
          "text": {
            "type": "string",
            "title": "Text",
            "description": "Freeform text to match against category taxonomy",
            "examples": [
              "telehealth and men's health"
            ]
          },
          "top_k": {
            "type": "integer",
            "maximum": 20.0,
            "minimum": 1.0,
            "title": "Top K",
            "description": "Number of categories to return, ordered by relevance",
            "default": 5
          }
        },
        "type": "object",
        "required": [
          "text"
        ],
        "title": "CategorySearchInput",
        "description": "Input for category search endpoint."
      },
      "CategorySearchResponse": {
        "properties": {
          "matches": {
            "items": {
              "$ref": "#/components/schemas/CategoryMatch"
            },
            "type": "array",
            "title": "Matches",
            "description": "Ordered list of matched categories (highest confidence first)"
          },
          "query_text": {
            "type": "string",
            "title": "Query Text",
            "description": "The input text that was matched"
          }
        },
        "type": "object",
        "required": [
          "matches",
          "query_text"
        ],
        "title": "CategorySearchResponse",
        "description": "Response from category search endpoint."
      },
      "CitationRateBucket": {
        "properties": {
          "day": {
            "type": "string",
            "title": "Day",
            "description": "Date in YYYY-MM-DD format"
          },
          "count": {
            "type": "integer",
            "title": "Count",
            "description": "Number of citations published that day"
          }
        },
        "type": "object",
        "required": [
          "day",
          "count"
        ],
        "title": "CitationRateBucket",
        "description": "A single day's citation count for charting."
      },
      "CitationSourceCategory": {
        "type": "string",
        "enum": [
          "news",
          "reddit",
          "twitter"
        ],
        "title": "CitationSourceCategory",
        "description": "Citation source categories usable as a citation filter.\n\nA subset of the ``source_category`` values that appear on returned citations —\nthe categories worth filtering on. Other categories (web, tiktok, trends) can\nstill appear on citations but are not offered as filter values."
      },
      "Completeness": {
        "type": "string",
        "enum": [
          "complete",
          "truncated",
          "unavailable"
        ],
        "title": "Completeness"
      },
      "ContentReadBoundary": {
        "properties": {
          "source_table": {
            "type": "string",
            "title": "Source Table"
          },
          "snapshot_id": {
            "type": "integer",
            "title": "Snapshot Id"
          },
          "snapshot_committed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Snapshot Committed At"
          }
        },
        "type": "object",
        "required": [
          "source_table",
          "snapshot_id"
        ],
        "title": "ContentReadBoundary"
      },
      "ContentScopeCounts": {
        "properties": {
          "general": {
            "type": "integer",
            "title": "General",
            "default": 0
          },
          "multi_platform": {
            "type": "integer",
            "title": "Multi Platform",
            "default": 0
          },
          "platform_specific": {
            "type": "integer",
            "title": "Platform Specific",
            "default": 0
          }
        },
        "type": "object",
        "title": "ContentScopeCounts",
        "description": "Count of returned items by ContentScope.\nThese counts reflect the final payload after confidence/limit filters."
      },
      "Contribution": {
        "properties": {
          "edge": {
            "$ref": "#/components/schemas/EdgeType",
            "description": "The kind of relationship this edge represents."
          },
          "user_facet": {
            "$ref": "#/components/schemas/PersonaFacetSummary",
            "description": "The persona facet on this edge."
          },
          "product_facet": {
            "$ref": "#/components/schemas/ProductFacetSummary",
            "description": "The product facet on this edge."
          },
          "similarity": {
            "type": "number",
            "title": "Similarity",
            "description": "Raw similarity between the two facets."
          },
          "weight": {
            "type": "number",
            "title": "Weight",
            "description": "Weight applied to this edge under the caller's settings."
          },
          "delta": {
            "type": "number",
            "title": "Delta",
            "description": "This edge's signed contribution to the raw score."
          },
          "evidence": {
            "items": {
              "$ref": "#/components/schemas/EvidenceItem"
            },
            "type": "array",
            "title": "Evidence",
            "description": "Supporting evidence behind the product facet."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "edge",
          "user_facet",
          "product_facet",
          "similarity",
          "weight",
          "delta"
        ],
        "title": "Contribution",
        "description": "One persona-facet-to-product-facet edge that contributed to a score."
      },
      "CreatorAssociatedCreator": {
        "properties": {
          "creator_id": {
            "type": "string",
            "title": "Creator Id",
            "description": "Upriver creator ID for the associated creator cluster.",
            "examples": [
              "cb4f53f0-c905-4c0a-86df-9a6c7551c408"
            ]
          },
          "creator_role": {
            "type": "string",
            "enum": [
              "surface",
              "primary_creator",
              "group",
              "member",
              "peer"
            ],
            "title": "Creator Role",
            "description": "Role of the associated creator cluster relative to the current creator. 'surface' = a distinct project, brand, or publication surface associated with this creator. 'primary_creator' = the main creator this cluster is a surface for. 'group' = a shared or collab cluster this creator is part of. 'member' = an individual creator who is part of this cluster. 'peer' = a co-equal shared-owner creator cluster.",
            "examples": [
              "surface",
              "primary_creator",
              "group",
              "member",
              "peer"
            ]
          }
        },
        "type": "object",
        "required": [
          "creator_id",
          "creator_role"
        ],
        "title": "CreatorAssociatedCreator",
        "description": "Reference to a related but separate creator cluster."
      },
      "CreatorAudience": {
        "properties": {
          "status": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "full_coverage",
                  "limited_coverage",
                  "no_coverage",
                  "skipped"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Status",
            "description": "Coverage quality of this enrichment block. `full_coverage` means the research passed the reliability threshold and a clean result can be trusted as a real signal. `limited_coverage` means some evidence was found but below the reliability threshold — treat absent findings as unknown, not negative. `no_coverage` means research could not gather enough evidence to make a call. `skipped` means the account did not meet the minimum bar for this enrichment to return useful results — see `skip_reason` for details."
          },
          "skip_reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EnrichmentSkipReason"
              },
              {
                "type": "null"
              }
            ],
            "description": "Present only when `status` is `skipped`. Explains why this enrichment was not attempted."
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description",
            "description": "Natural language description of the typical audience.",
            "examples": [
              "Young female audience interested in comedy and lifestyle content.",
              "Tech-savvy males aged 25-44 interested in gadgets and gaming."
            ]
          },
          "gender": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AudienceGender"
              },
              {
                "type": "null"
              }
            ],
            "description": "Gender distribution with confidence level."
          },
          "age": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AudienceAge"
              },
              {
                "type": "null"
              }
            ],
            "description": "Age distribution with optional segment breakdown."
          },
          "geography": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AudienceGeography"
              },
              {
                "type": "null"
              }
            ],
            "description": "Geographic distribution with optional country breakdown."
          },
          "languages": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AudienceLanguages"
              },
              {
                "type": "null"
              }
            ],
            "description": "Language distribution with optional language breakdown."
          }
        },
        "type": "object",
        "title": "CreatorAudience",
        "description": "Audience demographic information for a creator.\n\nAll fields are **directional signals** — they indicate where the creator\nhas significant audience presence, not exact analytics. Use these to answer\n\"does this creator reach X demographic?\" rather than \"what is the exact\nbreakdown?\" Check the `confidence` field on each sub-object to gauge\nreliability.\n\nDemographic breakdowns (age segments, country percentages, language\nbreakdown) are only included when explicit percentage data is available from\nanalytics or research sources. When data is inferred without specific\npercentages, only primary directional fields and `confidence` are returned.\n\nAge contract:\n- `age.min_age` / `age.max_age`: directional envelope from all available\n  evidence.\n- `age.segments`: explicit percentage buckets only.\n- These can coexist when percentages are partial; segments do not need to\n  cover the full envelope or sum to 100.\n\n**With explicit analytics data** (high confidence):\n```json\n{\n  \"description\": \"Young female audience interested in comedy and lifestyle.\",\n  \"gender\": {\"value\": \"female\", \"percentage\": 72, \"confidence\": \"high\"},\n  \"age\": {\n    \"min_age\": 18, \"max_age\": 24,\n    \"segments\": [\n      {\"min_age\": 18, \"max_age\": 24, \"percentage\": 45},\n      {\"min_age\": 25, \"max_age\": 34, \"percentage\": 30}\n    ],\n    \"confidence\": \"high\"\n  },\n  \"geography\": {\n    \"countries\": [\n      {\"country\": \"US\", \"percentage\": 65},\n      {\"country\": \"GB\", \"percentage\": 15}\n    ],\n    \"international\": true,\n    \"confidence\": \"high\"\n  },\n  \"languages\": {\n    \"value\": \"English\",\n    \"breakdown\": [\n      {\"language\": \"English\", \"percentage\": 85},\n      {\"language\": \"Spanish\", \"percentage\": 10}\n    ],\n    \"confidence\": \"high\"\n  }\n}\n```\n\n**Without explicit data** (inferred, medium/low confidence):\n```json\n{\n  \"description\": \"Young female audience interested in comedy and lifestyle.\",\n  \"gender\": {\"value\": \"female\", \"confidence\": \"medium\"},\n  \"age\": {\"min_age\": 18, \"max_age\": 24, \"confidence\": \"medium\"},\n  \"geography\": {\"countries\": [{\"country\": \"US\"}], \"confidence\": \"medium\"},\n  \"languages\": {\"value\": \"English\", \"confidence\": \"high\"}\n}\n```"
      },
      "CreatorBatchInput": {
        "properties": {
          "urls": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 10,
            "minItems": 1,
            "title": "Urls",
            "description": "Known social media profile URLs for the creators. Example: https://youtube.com/@handle",
            "examples": [
              [
                "https://youtube.com/@MrBeast",
                "https://youtube.com/@MKBHD",
                "https://youtube.com/@CelineDept"
              ]
            ]
          }
        },
        "type": "object",
        "required": [
          "urls"
        ],
        "title": "CreatorBatchInput",
        "description": "Input payload for batch creator lookup."
      },
      "CreatorBatchItemResult": {
        "properties": {
          "url": {
            "type": "string",
            "title": "Url",
            "description": "The input URL for this result."
          },
          "channels": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/CreatorPlatform"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Channels",
            "description": "Social media channels for the creator across supported platforms. Present on success."
          },
          "associated_creators": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/CreatorAssociatedCreator"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Associated Creators",
            "description": "Distinct associated creator clusters related to this creator. Present on success."
          },
          "labels": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/CreatorLabel"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Labels",
            "description": "Descriptive labels for the creator. Includes stable categories (type='category') and dynamic tags (type='tag'). Present on success."
          },
          "tags": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/CreatorTag"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tags",
            "description": "DEPRECATED: Use 'labels' instead. This field will be removed in a future version.",
            "deprecated": true
          },
          "creator_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Creator Id",
            "description": "Upriver creator ID. Present on successful results, including provisional single-platform creators."
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error",
            "description": "Error message. Present on failure."
          }
        },
        "type": "object",
        "required": [
          "url"
        ],
        "title": "CreatorBatchItemResult",
        "description": "Result for a single URL in the batch response.\n\nOn success: contains url, channels, labels, tags (no error field).\nOn failure: contains url, error (no channels/labels/tags fields)."
      },
      "CreatorBatchResponse": {
        "properties": {
          "results": {
            "items": {
              "$ref": "#/components/schemas/CreatorBatchItemResult"
            },
            "type": "array",
            "title": "Results",
            "description": "Results for each URL in the same order as the input."
          },
          "successful_count": {
            "type": "integer",
            "title": "Successful Count",
            "description": "Number of URLs successfully resolved."
          },
          "failed_count": {
            "type": "integer",
            "title": "Failed Count",
            "description": "Number of URLs that failed to resolve."
          }
        },
        "type": "object",
        "required": [
          "results",
          "successful_count",
          "failed_count"
        ],
        "title": "CreatorBatchResponse",
        "description": "Response for batch creator lookup."
      },
      "CreatorBio": {
        "properties": {
          "status": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "full_coverage",
                  "limited_coverage",
                  "no_coverage",
                  "skipped"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Status",
            "description": "Coverage quality of this enrichment block. `full_coverage` means the research passed the reliability threshold and a clean result can be trusted as a real signal. `limited_coverage` means some evidence was found but below the reliability threshold — treat absent findings as unknown, not negative. `no_coverage` means research could not gather enough evidence to make a call. `skipped` means the account did not meet the minimum bar for this enrichment to return useful results — see `skip_reason` for details."
          },
          "skip_reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EnrichmentSkipReason"
              },
              {
                "type": "null"
              }
            ],
            "description": "Present only when `status` is `skipped`. Explains why this enrichment was not attempted."
          },
          "summary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Summary",
            "description": "Short 2-3 sentence summary of the creator's background and focus.",
            "examples": [
              "MrBeast is a YouTube creator known for expensive stunts and philanthropy.",
              "Marques Brownlee is a tech reviewer focused on consumer electronics."
            ]
          }
        },
        "type": "object",
        "title": "CreatorBio",
        "description": "Biographical summary of a creator."
      },
      "CreatorGetResponse": {
        "properties": {
          "bio": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CreatorBio"
              },
              {
                "type": "null"
              }
            ],
            "description": "Biographical summary of the creator. Only present when include=bio is specified."
          },
          "channels": {
            "items": {
              "$ref": "#/components/schemas/CreatorPlatform"
            },
            "type": "array",
            "title": "Channels",
            "description": "Social media channels for the creator across supported platforms."
          },
          "associated_creators": {
            "items": {
              "$ref": "#/components/schemas/CreatorAssociatedCreator"
            },
            "type": "array",
            "title": "Associated Creators",
            "description": "Distinct associated creator clusters related to this creator."
          },
          "labels": {
            "items": {
              "$ref": "#/components/schemas/CreatorLabel"
            },
            "type": "array",
            "title": "Labels",
            "description": "Descriptive labels for the creator. Includes stable categories (type='category', use for filtering) and dynamic tags (type='tag'). See /media_categories for the full category taxonomy."
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/CreatorTag"
            },
            "type": "array",
            "title": "Tags",
            "description": "DEPRECATED: Use 'labels' instead. This field will be removed in a future version.",
            "deprecated": true
          },
          "creator_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Creator Id",
            "description": "Upriver creator ID. Present for any successful creator response, including provisional single-platform creators. Store and reuse this ID for consistency across API calls."
          },
          "location": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CreatorLocation"
              },
              {
                "type": "null"
              }
            ],
            "description": "Only returned for exact lookups with include=location. Reconciles current location separately from origin. Birthplace or nationality alone can provide a low-confidence fallback, never a confirmed residence. This expansion does not change country-filter matching."
          },
          "emails": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Emails",
            "description": "Public contact email addresses for the creator, if any are available. Returned only when requested via include=email.",
            "examples": [
              [
                "press@creator.com"
              ]
            ]
          },
          "redirect": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CreatorRedirectInfo"
              },
              {
                "type": "null"
              }
            ],
            "description": "Present when the requested creator_id has been merged into another creator. Clients should update any stored ID to `redirect.canonical_creator_id`."
          },
          "skipped_enrichments": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CreatorSkippedEnrichments"
              },
              {
                "type": "null"
              }
            ],
            "description": "Compact metadata for requested enrichments that were skipped and therefore omitted from their top-level keys."
          },
          "audience": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CreatorAudience"
              },
              {
                "type": "null"
              }
            ],
            "description": "Directional audience demographics. Only present when include=audience is specified. `age.min_age`/`max_age` is a directional envelope; `age.segments` contains explicit percentage buckets and may be partial."
          }
        },
        "type": "object",
        "title": "CreatorGetResponse",
        "description": "Response returned by the creator get endpoint."
      },
      "CreatorLabel": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id",
            "description": "Stable identifier. For categories, matches /media_categories IDs.",
            "examples": [
              "beauty",
              "skincare",
              "clean-beauty-expert"
            ]
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Human-readable display name.",
            "examples": [
              "Beauty",
              "Skincare",
              "Clean Beauty Expert"
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "category",
              "tag"
            ],
            "title": "Type",
            "description": "Label type: 'category' = stable taxonomy (filterable), 'tag' = dynamic descriptor."
          },
          "level": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Level",
            "description": "Hierarchy level for categories: 1 = broad, 2 = specific. Null for tags.",
            "examples": [
              1,
              2
            ]
          },
          "parent_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Parent Id",
            "description": "Parent category ID for level-2 categories. Null for L1 and tags.",
            "examples": [
              "beauty"
            ]
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "type"
        ],
        "title": "CreatorLabel",
        "description": "Descriptive label for a creator (category or tag).\n\nLabels come in two types:\n- `category`: Stable classifications from the taxonomy (see /media_categories).\n  Use these for filtering. Categories have `level` (1=broad, 2=specific) and\n  L2 categories include `parent_id` linking to their parent L1.\n- `tag`: Dynamic descriptors extracted for this creator. More specific but\n  may vary over time."
      },
      "CreatorLocation": {
        "properties": {
          "current_location": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CreatorLocationCandidate"
              },
              {
                "type": "null"
              }
            ]
          },
          "origins": {
            "items": {
              "$ref": "#/components/schemas/CreatorOriginEvidence"
            },
            "type": "array",
            "title": "Origins"
          },
          "status": {
            "type": "string",
            "enum": [
              "resolved",
              "unknown",
              "conflicting"
            ],
            "title": "Status",
            "description": "Whether one current-location candidate could be selected. Conflicting evidence leaves current_location empty. Resolved does not imply certainty."
          }
        },
        "type": "object",
        "required": [
          "status"
        ],
        "title": "CreatorLocation"
      },
      "CreatorLocationCandidate": {
        "properties": {
          "country": {
            "type": "string",
            "title": "Country",
            "description": "ISO 3166-1 alpha-2 country code."
          },
          "confidence": {
            "type": "string",
            "enum": [
              "high",
              "medium",
              "low"
            ],
            "title": "Confidence"
          },
          "source": {
            "type": "string",
            "enum": [
              "current_evidence",
              "origin_fallback"
            ],
            "title": "Source",
            "description": "Whether the result uses current-location evidence or a weak origin-based inference. An origin fallback does not establish current residence."
          }
        },
        "type": "object",
        "required": [
          "country",
          "confidence",
          "source"
        ],
        "title": "CreatorLocationCandidate"
      },
      "CreatorOriginEvidence": {
        "properties": {
          "country": {
            "type": "string",
            "title": "Country",
            "description": "ISO 3166-1 alpha-2 country code."
          },
          "basis": {
            "type": "string",
            "enum": [
              "birthplace",
              "nationality",
              "heritage",
              "departed",
              "unknown"
            ],
            "title": "Basis"
          }
        },
        "type": "object",
        "required": [
          "country",
          "basis"
        ],
        "title": "CreatorOriginEvidence"
      },
      "CreatorPlatform": {
        "properties": {
          "platform": {
            "type": "string",
            "title": "Platform",
            "description": "Platform identifier (e.g., youtube, x)."
          },
          "handle": {
            "type": "string",
            "title": "Handle",
            "description": "Canonical handle with required prefix."
          },
          "url": {
            "type": "string",
            "minLength": 1,
            "format": "uri",
            "title": "Url",
            "description": "Primary profile URL for the platform."
          },
          "platform_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Platform Id",
            "description": "Native platform identifier (e.g., YouTube channel ID, Instagram pk).",
            "examples": [
              "UCBcRF18a7Qf58cCRy5xuWwQ",
              "1234567890"
            ]
          },
          "display_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Display Name",
            "description": "The creator's display name or channel title.",
            "examples": [
              "MrBeast",
              "Lex Fridman",
              "Colin and Samir"
            ]
          },
          "channel_relationship": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "attached",
                  "group"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Channel Relationship",
            "description": "Only present for non-primary channels. Omitted for channels the creator directly owns. 'attached' = a distinct show, brand, project, or publication surface closely associated with the creator (e.g. @Denki for Austin Evans). 'group' = a shared, joint, or collab surface the creator is part of (e.g. @samandcolby for Sam Golbach).",
            "examples": [
              "attached",
              "group"
            ]
          },
          "profile_pic_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Profile Pic Url",
            "description": "Short-lived URL for the channel's profile picture. Fetch a new creator result after the URL expires; previously downloaded image bytes may be cached by the client.",
            "examples": [
              "https://d111111abcdef8.cloudfront.net/creator-avatars/v1/..."
            ]
          },
          "subscriber_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subscriber Count",
            "description": "Most recently observed subscriber/follower count for sorting and calculations. Only present for platforms that support subscriber counts.",
            "examples": [
              4227,
              133017,
              1500000,
              51389232
            ]
          },
          "subscriber_count_text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subscriber Count Text",
            "description": "Subscriber/follower count formatted for display. Only present for platforms that support subscriber counts.",
            "examples": [
              "4.2K",
              "133K",
              "1.5M",
              "51M"
            ]
          },
          "follower_bucket": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FollowerBucket"
              },
              {
                "type": "null"
              }
            ],
            "description": "Advertiser-facing follower bucket derived from subscriber_count. Only present for platforms that support subscriber counts."
          },
          "engagement_metrics": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EngagementMetrics"
              },
              {
                "type": "null"
              }
            ],
            "description": "Engagement metrics from the most recent videos/posts. Includes average views, likes, comments, and engagement rate."
          },
          "video_metrics": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VideoMetrics"
              },
              {
                "type": "null"
              }
            ],
            "description": "Video-specific metrics for ad inventory estimation. Includes average duration, upload frequency, and optional lookback coverage metadata. Only present when include=video_metrics is specified."
          },
          "relative_metrics": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RelativeMetrics"
              },
              {
                "type": "null"
              }
            ],
            "description": "Public benchmark summaries relative to similar creators. Only present when include=relative_metrics is specified and benchmark data is available."
          }
        },
        "type": "object",
        "required": [
          "platform",
          "handle",
          "url"
        ],
        "title": "CreatorPlatform",
        "description": "Primary social profile discovered for a creator."
      },
      "CreatorRedirectInfo": {
        "properties": {
          "requested_creator_id": {
            "type": "string",
            "title": "Requested Creator Id",
            "description": "The creator ID that was requested by the client.",
            "examples": [
              "97ca4d8c-c1b2-4c73-a4f0-7ac6bb05e0cf"
            ]
          },
          "canonical_creator_id": {
            "type": "string",
            "title": "Canonical Creator Id",
            "description": "The canonical creator ID clients should store going forward.",
            "examples": [
              "cb4f53f0-c905-4c0a-86df-9a6c7551c408"
            ]
          },
          "reason": {
            "type": "string",
            "title": "Reason",
            "description": "Why the requested ID resolved to a different canonical creator.",
            "default": "merged",
            "examples": [
              "merged"
            ]
          }
        },
        "type": "object",
        "required": [
          "requested_creator_id",
          "canonical_creator_id"
        ],
        "title": "CreatorRedirectInfo",
        "description": "Metadata about a creator ID redirect/merge.",
        "examples": [
          {
            "canonical_creator_id": "cb4f53f0-c905-4c0a-86df-9a6c7551c408",
            "reason": "merged",
            "requested_creator_id": "97ca4d8c-c1b2-4c73-a4f0-7ac6bb05e0cf"
          }
        ]
      },
      "CreatorSearchInput": {
        "properties": {
          "creator_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Creator Url",
            "description": "Known social media URL for the creator.",
            "examples": [
              "https://www.youtube.com/@MrBeast"
            ]
          },
          "name_or_handle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name Or Handle",
            "description": "Resolve a specific creator by handle or display name. Matches exactly, by prefix, and by fuzzy substring (e.g. 'beast' finds 'MrBeast'). For discovery, use the category/follower/platform filters instead.",
            "examples": [
              "MrBeast",
              "mkbhd"
            ]
          },
          "creator_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Creator Name",
            "description": "Deprecated. Use `name_or_handle`.",
            "deprecated": true,
            "examples": [
              "MrBeast"
            ]
          },
          "query": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Query",
            "description": "Deprecated. Use `name_or_handle` for creator resolution.",
            "deprecated": true,
            "examples": [
              "@mkbhd",
              "tech creators"
            ]
          },
          "limit": {
            "type": "integer",
            "maximum": 50.0,
            "minimum": 1.0,
            "title": "Limit",
            "description": "Maximum number of creators to return, from 1 to 50.",
            "default": 10
          },
          "platforms": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Platforms",
            "description": "Optional platform filter. Supported platforms: instagram, podcast, spotify, substack, tiktok, twitch, x, youtube (the alias `twitter` is accepted for `x`). Any other value returns a 400 error.",
            "examples": [
              [
                "youtube",
                "tiktok"
              ]
            ]
          },
          "category_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Category Ids",
            "description": "Optional category filter using taxonomy IDs (e.g. technology, tech_news_lifestyle).",
            "examples": [
              [
                "technology",
                "tech_news_lifestyle"
              ]
            ]
          },
          "categories": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Categories",
            "description": "Free-text category keywords to filter results by content category.",
            "examples": [
              [
                "gaming and esports",
                "AI tools"
              ]
            ]
          },
          "min_followers": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Min Followers",
            "description": "Optional approximate minimum based on recently observed follower counts.",
            "examples": [
              10000
            ]
          },
          "max_followers": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Followers",
            "description": "Optional approximate maximum based on recently observed follower counts.",
            "examples": [
              5000000
            ]
          },
          "follower_bucket": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Follower Bucket",
            "description": "Approximate audience-size filter using recently observed follower counts.",
            "examples": [
              [
                "10k_50k",
                "50k_100k"
              ]
            ]
          },
          "cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cursor",
            "description": "Opaque cursor from a previous response for pagination."
          },
          "creator_country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Creator Country",
            "description": "Filter by where creators are based, as one or more ISO 3166-1 alpha-2 country codes (e.g. US). Location coverage varies by platform, and not every creator has a known location.",
            "examples": [
              [
                "US"
              ],
              [
                "US",
                "GB"
              ]
            ]
          },
          "audience_country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Audience Country",
            "description": "Filter by where a creator's audience is located, as one or more ISO 3166-1 alpha-2 country codes. Matches creators whose known audience includes any of these countries, or who are themselves based in them.",
            "examples": [
              [
                "US"
              ],
              [
                "US",
                "CA"
              ]
            ]
          },
          "creator_language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Creator Language",
            "description": "Optional creator language filter.",
            "examples": [
              "en"
            ]
          },
          "has_email": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Has Email",
            "description": "Filter by whether the creator has at least one public contact email available. `true` returns only creators with a contact email; `false` returns only those without; omit to include both.",
            "examples": [
              true
            ]
          },
          "include": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Include",
            "description": "Optional response expansions, equivalent to the `include` query parameter (the two are merged). In broad/filter-only search only `email` is supported; other expansions require an exact `creator_url`.",
            "examples": [
              [
                "email"
              ]
            ]
          },
          "content_query": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Content Query",
            "description": "Describe the kind of content or creator you're looking for in plain language, and results are ranked by how well each creator's content matches — going beyond name and handle matching. Combine with the category, platform, follower, country, and language filters to narrow the field. When set, this drives ranking and any name/handle 'query' is not applied.",
            "examples": [
              "cozy gaming creators",
              "football players",
              "creators who reviewed the DJI Pocket 3"
            ]
          }
        },
        "type": "object",
        "title": "CreatorSearchInput",
        "description": "Input payload for creator discovery.",
        "example": {
          "creator_url": "https://www.youtube.com/@MrBeast"
        }
      },
      "CreatorSearchResponse": {
        "properties": {
          "results": {
            "items": {
              "$ref": "#/components/schemas/CreatorSearchResult"
            },
            "type": "array",
            "title": "Results",
            "description": "Ordered list of creator matches. The first result is the best canonical match when an exact creator exists."
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor",
            "description": "Opaque cursor for fetching the next page of results. Null when the current ranked result frontier is exhausted."
          }
        },
        "type": "object",
        "title": "CreatorSearchResponse",
        "description": "Envelope returned by the creator search endpoint."
      },
      "CreatorSearchResult": {
        "properties": {
          "score": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 1.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Score",
            "description": "Relevance score in [0,1] for this result, where higher is a stronger match. Returned for keyword and URL search. Omitted for category/size browse, which has no query to rank relevance against and is ordered by audience size instead."
          },
          "similarity_score": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 1.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Similarity Score",
            "description": "Similarity score in [0,1] for similar-creator discovery. Higher means the result is more similar to the anchor creator."
          },
          "similarity_signals": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Similarity Signals",
            "description": "Human-readable signals explaining why a creator matched (e.g., shared topics, niche, or profession). Present for similar-creator discovery and for natural-language content searches; omitted from plain keyword and filter-only results."
          },
          "bio": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CreatorBio"
              },
              {
                "type": "null"
              }
            ],
            "description": "Biographical summary of the creator. Only present when include=bio is specified."
          },
          "channels": {
            "items": {
              "$ref": "#/components/schemas/CreatorPlatform"
            },
            "type": "array",
            "title": "Channels",
            "description": "Social media channels for the creator across supported platforms."
          },
          "associated_creators": {
            "items": {
              "$ref": "#/components/schemas/CreatorAssociatedCreator"
            },
            "type": "array",
            "title": "Associated Creators",
            "description": "Distinct associated creator clusters related to this creator."
          },
          "labels": {
            "items": {
              "$ref": "#/components/schemas/CreatorLabel"
            },
            "type": "array",
            "title": "Labels",
            "description": "Descriptive labels for the creator. Includes stable categories (type='category', use for filtering) and dynamic tags (type='tag'). See /media_categories for the full category taxonomy.",
            "examples": [
              [
                {
                  "id": "sports",
                  "level": 1,
                  "name": "Sports",
                  "type": "category"
                },
                {
                  "id": "nfl",
                  "level": 2,
                  "name": "NFL",
                  "parent_id": "sports",
                  "type": "category"
                }
              ],
              [
                {
                  "id": "beauty",
                  "level": 1,
                  "name": "Beauty",
                  "type": "category"
                },
                {
                  "id": "skincare",
                  "level": 2,
                  "name": "Skincare",
                  "parent_id": "beauty",
                  "type": "category"
                },
                {
                  "id": "clean-beauty-expert",
                  "name": "Clean Beauty Expert",
                  "type": "tag"
                }
              ]
            ]
          },
          "creator_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Creator Id",
            "description": "Upriver creator ID for the creator's unified cross-platform identity. Present once a creator has been resolved to a unified identity; when present, store and reuse it for consistency across API calls. May be absent for creators not yet resolved to a unified identity (common for single-platform results) — re-query those by a channel URL instead."
          },
          "location": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CreatorLocation"
              },
              {
                "type": "null"
              }
            ],
            "description": "Only returned for exact lookups with include=location. Reconciles current location separately from origin. Birthplace or nationality alone can provide a low-confidence fallback, never a confirmed residence. This expansion does not change country-filter matching."
          },
          "emails": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Emails",
            "description": "Public contact email addresses for the creator, if any are available. Returned only when requested via include=email.",
            "examples": [
              [
                "press@creator.com"
              ]
            ]
          },
          "skipped_enrichments": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CreatorSkippedEnrichments"
              },
              {
                "type": "null"
              }
            ],
            "description": "Compact metadata for requested enrichments that were skipped and therefore omitted from their top-level keys."
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/CreatorTag"
            },
            "type": "array",
            "title": "Tags",
            "description": "DEPRECATED: Use 'labels' instead. This field will be removed in a future version.",
            "deprecated": true
          },
          "audience": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CreatorAudience"
              },
              {
                "type": "null"
              }
            ],
            "description": "Directional audience demographics. Only present when include=audience is specified. `age.min_age`/`max_age` is a directional envelope; `age.segments` contains explicit percentage buckets and may be partial."
          }
        },
        "type": "object",
        "title": "CreatorSearchResult",
        "description": "Single search match containing primary channels for a creator."
      },
      "CreatorSimilarAnchor": {
        "oneOf": [
          {
            "properties": {
              "scope": {
                "const": "creator"
              },
              "requested_channel_url": {
                "type": "null"
              },
              "channel_url": {
                "type": "null"
              }
            },
            "required": [
              "scope",
              "requested_creator_id",
              "creator_id"
            ]
          },
          {
            "properties": {
              "scope": {
                "const": "channel"
              },
              "requested_creator_id": {
                "type": "null"
              }
            },
            "required": [
              "scope",
              "creator_id",
              "requested_channel_url",
              "channel_url"
            ]
          }
        ],
        "properties": {
          "scope": {
            "type": "string",
            "enum": [
              "creator",
              "channel"
            ],
            "title": "Scope",
            "description": "Whether similarity used the creator's eligible channel cluster or one specific channel as its evidence anchor. A creator-scoped result may qualify through one coherent channel expression."
          },
          "requested_creator_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requested Creator Id",
            "description": "The creator ID supplied in a creator-scoped request. Omitted for a channel-scoped request.",
            "examples": [
              "d91b83e4-0e38-40dd-ad08-cbf1d2b2e947"
            ]
          },
          "creator_id": {
            "type": "string",
            "title": "Creator Id",
            "description": "The current canonical creator ID used for similarity.",
            "examples": [
              "cb4f53f0-c905-4c0a-86df-9a6c7551c408"
            ]
          },
          "requested_channel_url": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "format": "uri"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requested Channel Url",
            "description": "The profile URL supplied in a channel-scoped request. Omitted for a creator-scoped request.",
            "examples": [
              "https://youtube.com/@example"
            ]
          },
          "channel_url": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "format": "uri"
              },
              {
                "type": "null"
              }
            ],
            "title": "Channel Url",
            "description": "The canonical stored profile URL used for channel-scoped similarity. Omitted for a creator-scoped request.",
            "examples": [
              "https://www.youtube.com/@example"
            ]
          }
        },
        "type": "object",
        "required": [
          "scope",
          "creator_id"
        ],
        "title": "CreatorSimilarAnchor",
        "description": "Requested and resolved identity for a similarity search."
      },
      "CreatorSimilarChannel": {
        "properties": {
          "platform": {
            "type": "string",
            "enum": [
              "instagram",
              "tiktok",
              "youtube"
            ],
            "title": "Platform",
            "description": "Platform for this owned creator channel."
          },
          "url": {
            "type": "string",
            "minLength": 1,
            "format": "uri",
            "title": "Url",
            "description": "Canonical profile URL for the channel."
          },
          "handle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Handle",
            "description": "Canonical public handle when available.",
            "examples": [
              "@example"
            ]
          },
          "subscriber_count": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Subscriber Count",
            "description": "Most recently known follower or subscriber count.",
            "examples": [
              184000
            ]
          }
        },
        "type": "object",
        "required": [
          "platform",
          "url"
        ],
        "title": "CreatorSimilarChannel",
        "description": "Lean owned-channel reference returned for a similar creator."
      },
      "CreatorSimilarErrorDetail": {
        "properties": {
          "code": {
            "type": "string",
            "minLength": 1,
            "title": "Code",
            "description": "Stable error code suitable for programmatic handling.",
            "examples": [
              "creator_not_found"
            ]
          },
          "message": {
            "type": "string",
            "minLength": 1,
            "title": "Message",
            "description": "Human-readable description of the error.",
            "examples": [
              "The requested creator was not found."
            ]
          }
        },
        "type": "object",
        "required": [
          "code",
          "message"
        ],
        "title": "CreatorSimilarErrorDetail",
        "description": "Stable machine-readable creator-similarity error."
      },
      "CreatorSimilarErrorResponse": {
        "properties": {
          "detail": {
            "$ref": "#/components/schemas/CreatorSimilarErrorDetail"
          }
        },
        "type": "object",
        "required": [
          "detail"
        ],
        "title": "CreatorSimilarErrorResponse",
        "description": "Error envelope returned by the similar-creators endpoint."
      },
      "CreatorSimilarInput": {
        "oneOf": [
          {
            "properties": {
              "creator_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Creator Id",
                "description": "Optional Upriver creator ID whose eligible channel cluster supplies the similarity anchor. Each returned creator may qualify through one coherent channel expression; every channel in either creator's cluster does not need to match. Provide exactly one of `creator_id` or `channel_url`. Reuse the `creator_id` returned by `/v1/creators` or `/v1/creators/search`.",
                "examples": [
                  "cb4f53f0-c905-4c0a-86df-9a6c7551c408"
                ]
              },
              "limit": {
                "type": "integer",
                "maximum": 50.0,
                "minimum": 1.0,
                "title": "Limit",
                "description": "Maximum number of similar creators to return, from 1 to 50.",
                "default": 10
              },
              "platforms": {
                "anyOf": [
                  {
                    "items": {
                      "type": "string"
                    },
                    "type": "array",
                    "maxItems": 3
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Platforms",
                "description": "Optional platform filter. Supported values are instagram, tiktok, and youtube. A matching result must have an eligible channel on at least one requested platform.",
                "examples": [
                  [
                    "youtube",
                    "tiktok"
                  ]
                ]
              },
              "category_ids": {
                "anyOf": [
                  {
                    "items": {
                      "type": "string"
                    },
                    "type": "array",
                    "maxItems": 20
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Category Ids",
                "description": "Optional category filter using exact taxonomy IDs. A matching channel may satisfy any supplied category.",
                "examples": [
                  [
                    "technology",
                    "tech_news_lifestyle"
                  ]
                ]
              },
              "min_followers": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0.0
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Min Followers",
                "description": "Optional minimum follower/subscriber count filter.",
                "examples": [
                  10000
                ]
              },
              "max_followers": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0.0
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Max Followers",
                "description": "Optional maximum follower/subscriber count filter.",
                "examples": [
                  5000000
                ]
              },
              "creator_country": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      }
                    ],
                    "maxLength": 20
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Creator Country",
                "description": "Filter by where creators are based, as one or more ISO 3166-1 alpha-2 country codes (e.g. US). Location coverage varies by platform, and not every creator has a known location.",
                "examples": [
                  [
                    "US"
                  ],
                  [
                    "US",
                    "GB"
                  ]
                ]
              },
              "exclude_creator_ids": {
                "anyOf": [
                  {
                    "items": {
                      "type": "string"
                    },
                    "type": "array",
                    "maxItems": 100
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Exclude Creator Ids",
                "description": "Optional creator IDs to exclude from similar results.",
                "examples": [
                  [
                    "72f3a038-b304-49ea-9048-c17bf31f52d1"
                  ]
                ]
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "creator_id"
            ],
            "title": "By creator ID",
            "description": "Input payload for canonical creator-peer discovery."
          },
          {
            "properties": {
              "channel_url": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "format": "uri"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Channel Url",
                "description": "Optional known Instagram, TikTok, or YouTube profile URL used as a channel-specific similarity anchor. Provide exactly one of `creator_id` or `channel_url`.",
                "examples": [
                  "https://www.youtube.com/@example"
                ]
              },
              "limit": {
                "type": "integer",
                "maximum": 50.0,
                "minimum": 1.0,
                "title": "Limit",
                "description": "Maximum number of similar creators to return, from 1 to 50.",
                "default": 10
              },
              "platforms": {
                "anyOf": [
                  {
                    "items": {
                      "type": "string"
                    },
                    "type": "array",
                    "maxItems": 3
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Platforms",
                "description": "Optional platform filter. Supported values are instagram, tiktok, and youtube. A matching result must have an eligible channel on at least one requested platform.",
                "examples": [
                  [
                    "youtube",
                    "tiktok"
                  ]
                ]
              },
              "category_ids": {
                "anyOf": [
                  {
                    "items": {
                      "type": "string"
                    },
                    "type": "array",
                    "maxItems": 20
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Category Ids",
                "description": "Optional category filter using exact taxonomy IDs. A matching channel may satisfy any supplied category.",
                "examples": [
                  [
                    "technology",
                    "tech_news_lifestyle"
                  ]
                ]
              },
              "min_followers": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0.0
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Min Followers",
                "description": "Optional minimum follower/subscriber count filter.",
                "examples": [
                  10000
                ]
              },
              "max_followers": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0.0
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Max Followers",
                "description": "Optional maximum follower/subscriber count filter.",
                "examples": [
                  5000000
                ]
              },
              "creator_country": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      }
                    ],
                    "maxLength": 20
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Creator Country",
                "description": "Filter by where creators are based, as one or more ISO 3166-1 alpha-2 country codes (e.g. US). Location coverage varies by platform, and not every creator has a known location.",
                "examples": [
                  [
                    "US"
                  ],
                  [
                    "US",
                    "GB"
                  ]
                ]
              },
              "exclude_creator_ids": {
                "anyOf": [
                  {
                    "items": {
                      "type": "string"
                    },
                    "type": "array",
                    "maxItems": 100
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Exclude Creator Ids",
                "description": "Optional creator IDs to exclude from similar results.",
                "examples": [
                  [
                    "72f3a038-b304-49ea-9048-c17bf31f52d1"
                  ]
                ]
              }
            },
            "additionalProperties": false,
            "type": "object",
            "required": [
              "channel_url"
            ],
            "title": "By channel URL",
            "description": "Input payload for canonical creator-peer discovery."
          }
        ]
      },
      "CreatorSimilarResponse": {
        "properties": {
          "beta": {
            "type": "string",
            "title": "Beta",
            "description": "Beta status caveat; the response shape may change without notice.",
            "default": "Beta: this endpoint is unlisted and its response shape may change without notice."
          },
          "anchor": {
            "$ref": "#/components/schemas/CreatorSimilarAnchor",
            "description": "Requested and canonical metadata for the similarity anchor."
          },
          "ranking_version": {
            "type": "string",
            "minLength": 1,
            "title": "Ranking Version",
            "description": "Opaque version identifier for the ranking behavior.",
            "examples": [
              "creator-peer-2026-07-13.7"
            ]
          },
          "results": {
            "items": {
              "$ref": "#/components/schemas/CreatorSimilarResult"
            },
            "type": "array",
            "maxItems": 50,
            "title": "Results",
            "description": "Ordered list of creators similar to the requested anchor creator."
          },
          "incomplete_results": {
            "type": "boolean",
            "title": "Incomplete Results",
            "description": "True when this evaluation was truncated by an internal time budget and retrying may return more complete results. False for a complete evaluation, including one with an empty `results` list.",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "anchor",
          "ranking_version",
          "results"
        ],
        "title": "CreatorSimilarResponse",
        "description": "Envelope returned by the similar-creators endpoint."
      },
      "CreatorSimilarResult": {
        "properties": {
          "creator_id": {
            "type": "string",
            "title": "Creator Id",
            "description": "Canonical Upriver creator ID.",
            "examples": [
              "f1985b79-b891-40cc-b7af-df850e197f8d"
            ]
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "title": "Name",
            "description": "Creator display name."
          },
          "labels": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 5,
            "title": "Labels",
            "description": "Human-readable category, topic, identity, and profession labels."
          },
          "channel_count": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Channel Count",
            "description": "Number of active owned Instagram, TikTok, and YouTube channels for the creator, including channels omitted from this lean response."
          },
          "channels": {
            "items": {
              "$ref": "#/components/schemas/CreatorSimilarChannel"
            },
            "type": "array",
            "maxItems": 3,
            "minItems": 1,
            "title": "Channels",
            "description": "Ordered owned channels. The first entry is the channel that qualified the creator for this request."
          },
          "similarity": {
            "$ref": "#/components/schemas/CreatorSimilarity",
            "description": "Factual evidence supporting this creator-peer result."
          }
        },
        "type": "object",
        "required": [
          "creator_id",
          "name",
          "channel_count",
          "channels",
          "similarity"
        ],
        "title": "CreatorSimilarResult",
        "description": "Lean canonical creator returned by creator-peer discovery."
      },
      "CreatorSimilarValidationErrorResponse": {
        "properties": {
          "detail": {
            "type": "string",
            "minLength": 1,
            "title": "Detail",
            "description": "Human-readable request validation error.",
            "examples": [
              "Provide exactly one of creator_id or channel_url"
            ]
          }
        },
        "type": "object",
        "required": [
          "detail"
        ],
        "title": "CreatorSimilarValidationErrorResponse",
        "description": "Field-validation error returned before similarity execution begins."
      },
      "CreatorSimilarity": {
        "properties": {
          "reasons": {
            "items": {
              "$ref": "#/components/schemas/CreatorSimilarityReason"
            },
            "type": "array",
            "maxItems": 3,
            "minItems": 1,
            "title": "Reasons",
            "description": "Ordered factual reasons supporting the creator match."
          }
        },
        "type": "object",
        "required": [
          "reasons"
        ],
        "title": "CreatorSimilarity",
        "description": "Evidence supporting one creator-peer result."
      },
      "CreatorSimilarityReason": {
        "properties": {
          "code": {
            "type": "string",
            "minLength": 1,
            "title": "Code",
            "description": "Stable reason code. The vocabulary is extensible; clients should ignore codes they do not recognize.",
            "examples": [
              "shared_topics"
            ]
          },
          "values": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 3,
            "minItems": 1,
            "title": "Values",
            "description": "Human-readable values supporting this reason.",
            "examples": [
              [
                "Consumer technology",
                "Product reviews"
              ]
            ]
          }
        },
        "type": "object",
        "required": [
          "code",
          "values"
        ],
        "title": "CreatorSimilarityReason",
        "description": "Factual display evidence explaining a similarity result."
      },
      "CreatorSkippedEnrichments": {
        "properties": {
          "fields": {
            "items": {
              "type": "string",
              "enum": [
                "bio",
                "audience",
                "brand_safety"
              ]
            },
            "type": "array",
            "title": "Fields",
            "description": "Requested enrichment fields that were omitted because enrichment was deterministically skipped."
          },
          "reason": {
            "$ref": "#/components/schemas/EnrichmentSkipReason",
            "description": "Structured reason those enrichment fields were skipped."
          }
        },
        "type": "object",
        "required": [
          "fields",
          "reason"
        ],
        "title": "CreatorSkippedEnrichments",
        "description": "Compact metadata for omitted enrichment blocks."
      },
      "CreatorTag": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id",
            "description": "Stable tag ID (taxonomy slug)"
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Human-readable display name for the tag"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name"
        ],
        "title": "CreatorTag",
        "description": "User-facing tag object for creator search results.\n\nDeprecated: Use CreatorLabel instead for richer metadata."
      },
      "CreditFeatureData": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "balance": {
            "type": "number",
            "title": "Balance"
          },
          "usage": {
            "type": "number",
            "title": "Usage"
          },
          "included_usage": {
            "type": "number",
            "title": "Included Usage"
          },
          "next_reset_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Reset At",
            "description": "Aggregate reset in UTC milliseconds. May be null for mixed schedules; inspect breakdown for individual resets."
          },
          "interval": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Interval",
            "description": "Reset cadence; multiple indicates combined credit schedules."
          },
          "interval_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Interval Count",
            "description": "Number of cadence units between resets, when known."
          },
          "breakdown": {
            "items": {
              "$ref": "#/components/schemas/FeatureBreakdown"
            },
            "type": "array",
            "title": "Breakdown",
            "description": "Current allowances grouped by credit schedule. These balances do not change with the requested history range. No main schedule is implied."
          },
          "usage_by_feature": {
            "additionalProperties": {
              "$ref": "#/components/schemas/UsageByFeature"
            },
            "type": "object",
            "title": "Usage By Feature"
          }
        },
        "type": "object",
        "required": [
          "name",
          "balance",
          "usage",
          "included_usage",
          "usage_by_feature"
        ],
        "title": "CreditFeatureData"
      },
      "DebugInfo": {
        "properties": {
          "duration_ms": {
            "type": "integer",
            "title": "Duration Ms",
            "description": "End-to-end processing time for this request (ms)."
          },
          "candidates_before_filter": {
            "type": "integer",
            "title": "Candidates Before Filter",
            "description": "Number of candidate items BEFORE applying min_confidence/max_results."
          },
          "applied_filters": {
            "items": {
              "$ref": "#/components/schemas/AppliedFilter"
            },
            "type": "array",
            "title": "Applied Filters",
            "description": "List of filters/normalizations that materially changed the payload."
          }
        },
        "type": "object",
        "required": [
          "duration_ms",
          "candidates_before_filter"
        ],
        "title": "DebugInfo",
        "description": "Optional development diagnostics (included when metadata_mode='debug').\nTimes and counts should refer to the current request execution only."
      },
      "DemandBudget": {
        "properties": {
          "max_candidates": {
            "type": "integer",
            "maximum": 10000.0,
            "minimum": 1.0,
            "title": "Max Candidates"
          },
          "max_scanned_rows": {
            "type": "integer",
            "maximum": 1000000.0,
            "minimum": 1.0,
            "title": "Max Scanned Rows"
          },
          "max_llm_calls": {
            "type": "integer",
            "maximum": 10000.0,
            "minimum": 0.0,
            "title": "Max Llm Calls"
          },
          "concurrency": {
            "type": "integer",
            "maximum": 16.0,
            "minimum": 1.0,
            "title": "Concurrency"
          },
          "max_unknown_candidates": {
            "type": "integer",
            "maximum": 1000.0,
            "minimum": 0.0,
            "title": "Max Unknown Candidates"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "max_candidates",
          "max_scanned_rows",
          "max_llm_calls",
          "concurrency",
          "max_unknown_candidates"
        ],
        "title": "DemandBudget"
      },
      "DemandResultProof": {
        "properties": {
          "work_key": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$",
            "title": "Work Key"
          },
          "extraction_key": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$",
            "title": "Extraction Key"
          },
          "result_event_key": {
            "type": "string",
            "maxLength": 256,
            "minLength": 1,
            "title": "Result Event Key"
          },
          "origin_request_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 256,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Origin Request Id"
          },
          "origin_run_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 256,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Origin Run Id"
          },
          "origin_claim_holder": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 256,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Origin Claim Holder"
          },
          "origin_validation_grant_id": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[0-9a-f]{32}$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Origin Validation Grant Id"
          },
          "origin_deployment_revision": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[0-9a-f]{40}$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Origin Deployment Revision"
          },
          "evaluation_kind": {
            "type": "string",
            "enum": [
              "model_evaluated",
              "gate_only"
            ],
            "title": "Evaluation Kind"
          },
          "extractor_revision": {
            "type": "string",
            "maxLength": 256,
            "minLength": 1,
            "title": "Extractor Revision"
          },
          "gate_revision": {
            "type": "string",
            "maxLength": 256,
            "minLength": 1,
            "title": "Gate Revision"
          },
          "evidence_revision": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$",
            "title": "Evidence Revision"
          },
          "disposition": {
            "type": "string",
            "enum": [
              "sponsor_positive",
              "supported_negative",
              "gate_skipped"
            ],
            "title": "Disposition"
          },
          "result_available_at": {
            "type": "string",
            "format": "date-time",
            "title": "Result Available At"
          },
          "mentions": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Mentions",
            "default": []
          },
          "applied_revision": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Applied Revision"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "work_key",
          "extraction_key",
          "result_event_key",
          "evaluation_kind",
          "extractor_revision",
          "gate_revision",
          "evidence_revision",
          "disposition",
          "result_available_at"
        ],
        "title": "DemandResultProof"
      },
      "DemandStatus": {
        "properties": {
          "request_id": {
            "type": "string",
            "maxLength": 256,
            "minLength": 1,
            "title": "Request Id"
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "processing",
              "waiting",
              "complete",
              "partial"
            ],
            "title": "Status"
          },
          "scanned_rows": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Scanned Rows"
          },
          "matched_candidates": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Matched Candidates"
          },
          "completed_candidates": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Completed Candidates"
          },
          "pending_candidates": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Pending Candidates"
          },
          "unknown_rows": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Unknown Rows"
          },
          "scan_complete": {
            "type": "boolean",
            "title": "Scan Complete"
          },
          "coverage": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "integer"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Coverage"
          },
          "source_boundary": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ContentReadBoundary"
              },
              {
                "type": "null"
              }
            ]
          },
          "captured_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Captured At"
          },
          "reasons": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Reasons",
            "default": []
          },
          "results": {
            "items": {
              "$ref": "#/components/schemas/DemandResultProof"
            },
            "type": "array",
            "title": "Results",
            "default": []
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "request_id",
          "status",
          "scanned_rows",
          "matched_candidates",
          "completed_candidates",
          "pending_candidates",
          "unknown_rows",
          "scan_complete"
        ],
        "title": "DemandStatus"
      },
      "DiscoverCollectionPolicy": {
        "properties": {
          "max_listing_urls": {
            "type": "integer",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Max Listing Urls",
            "default": 3
          },
          "max_pages_per_listing": {
            "type": "integer",
            "maximum": 20.0,
            "minimum": 1.0,
            "title": "Max Pages Per Listing",
            "default": 3
          },
          "max_requests": {
            "type": "integer",
            "maximum": 1000.0,
            "minimum": 0.0,
            "title": "Max Requests",
            "default": 9
          },
          "max_consecutive_no_new_pages": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 20.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Consecutive No New Pages",
            "default": 2
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "DiscoverCollectionPolicy",
        "description": "Logical listing-call budgets; provider-internal retry guards remain active."
      },
      "DiscoverSearchPolicy": {
        "properties": {
          "max_requests": {
            "type": "integer",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Max Requests",
            "default": 3
          },
          "max_pages_per_query": {
            "type": "integer",
            "maximum": 20.0,
            "minimum": 0.0,
            "title": "Max Pages Per Query",
            "default": 1
          },
          "results_per_page": {
            "type": "integer",
            "maximum": 100.0,
            "minimum": 1.0,
            "title": "Results Per Page",
            "default": 10
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "DiscoverSearchPolicy",
        "description": "Limits count logical page attempts, including failed requests."
      },
      "DiscoveryFeedCatalog": {
        "properties": {
          "feeds": {
            "items": {
              "$ref": "#/components/schemas/FeedSummary"
            },
            "type": "array",
            "title": "Feeds",
            "description": "Saved discovery feeds available to this account."
          }
        },
        "type": "object",
        "required": [
          "feeds"
        ],
        "title": "DiscoveryFeedCatalog"
      },
      "DiscoveryFeedEdition": {
        "properties": {
          "release_id": {
            "type": "string",
            "title": "Release Id",
            "description": "Saved edition identifier. Pass it as `release_id` to open it."
          },
          "published_at": {
            "type": "string",
            "format": "date-time",
            "title": "Published At",
            "description": "When this edition was published."
          },
          "item_count": {
            "type": "integer",
            "title": "Item Count",
            "description": "Selected items shown when this edition opens."
          },
          "is_current": {
            "type": "boolean",
            "title": "Is Current",
            "description": "Whether this is the feed's current edition."
          },
          "examined_window_start": {
            "type": "string",
            "format": "date-time",
            "title": "Examined Window Start",
            "description": "Start of the period this edition examined."
          },
          "examined_window_end": {
            "type": "string",
            "format": "date-time",
            "title": "Examined Window End",
            "description": "End of the period this edition examined."
          },
          "earlier_versions": {
            "items": {
              "$ref": "#/components/schemas/DiscoveryFeedReleaseSummary"
            },
            "type": "array",
            "title": "Earlier Versions",
            "description": "Earlier publications of the same examined period, newest first. Each was replaced by a later correction or update."
          }
        },
        "type": "object",
        "required": [
          "release_id",
          "published_at",
          "item_count",
          "is_current",
          "examined_window_start",
          "examined_window_end",
          "earlier_versions"
        ],
        "title": "DiscoveryFeedEdition"
      },
      "DiscoveryFeedItemResponse": {
        "properties": {
          "feed": {
            "$ref": "#/components/schemas/FeedSummary"
          },
          "release_id": {
            "type": "string",
            "title": "Release Id"
          },
          "published_at": {
            "type": "string",
            "format": "date-time",
            "title": "Published At"
          },
          "freshness": {
            "$ref": "#/components/schemas/FeedFreshness"
          },
          "examined_window_start": {
            "type": "string",
            "format": "date-time",
            "title": "Examined Window Start"
          },
          "examined_window_end": {
            "type": "string",
            "format": "date-time",
            "title": "Examined Window End"
          },
          "time_basis": {
            "type": "string",
            "enum": [
              "published",
              "observed",
              "publication_proxy",
              "mixed"
            ],
            "title": "Time Basis"
          },
          "is_current": {
            "type": "boolean",
            "title": "Is Current"
          },
          "item": {
            "$ref": "#/components/schemas/FeedItem"
          },
          "provenance": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FeedProvenance"
              },
              {
                "type": "null"
              }
            ]
          },
          "research_history": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ResearchHistory"
              },
              {
                "type": "null"
              }
            ],
            "description": "Current research activity, separate from this saved edition."
          },
          "research_history_status": {
            "type": "string",
            "enum": [
              "not_requested",
              "available",
              "unavailable"
            ],
            "title": "Research History Status",
            "description": "Whether current research activity could be loaded for this request.",
            "default": "not_requested"
          }
        },
        "type": "object",
        "required": [
          "feed",
          "release_id",
          "published_at",
          "freshness",
          "examined_window_start",
          "examined_window_end",
          "time_basis",
          "is_current",
          "item"
        ],
        "title": "DiscoveryFeedItemResponse"
      },
      "DiscoveryFeedReleaseHistory": {
        "properties": {
          "feed": {
            "$ref": "#/components/schemas/FeedSummary"
          },
          "editions": {
            "items": {
              "$ref": "#/components/schemas/DiscoveryFeedEdition"
            },
            "type": "array",
            "title": "Editions",
            "description": "Published editions, newest first. Consecutive publications of the same examined period form one edition, led by the newest."
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor",
            "description": "Pass as `cursor` to read older editions. Null when none remain."
          }
        },
        "type": "object",
        "required": [
          "feed",
          "editions",
          "next_cursor"
        ],
        "title": "DiscoveryFeedReleaseHistory"
      },
      "DiscoveryFeedReleaseSummary": {
        "properties": {
          "release_id": {
            "type": "string",
            "title": "Release Id",
            "description": "Saved edition identifier. Pass it as `release_id` to open it."
          },
          "published_at": {
            "type": "string",
            "format": "date-time",
            "title": "Published At",
            "description": "When this edition was published."
          },
          "item_count": {
            "type": "integer",
            "title": "Item Count",
            "description": "Selected items shown when this edition opens."
          },
          "is_current": {
            "type": "boolean",
            "title": "Is Current",
            "description": "Whether this is the feed's current edition."
          },
          "examined_window_start": {
            "type": "string",
            "format": "date-time",
            "title": "Examined Window Start",
            "description": "Start of the period this edition examined."
          },
          "examined_window_end": {
            "type": "string",
            "format": "date-time",
            "title": "Examined Window End",
            "description": "End of the period this edition examined."
          }
        },
        "type": "object",
        "required": [
          "release_id",
          "published_at",
          "item_count",
          "is_current",
          "examined_window_start",
          "examined_window_end"
        ],
        "title": "DiscoveryFeedReleaseSummary"
      },
      "DiscoveryFeedResponse": {
        "properties": {
          "feed": {
            "$ref": "#/components/schemas/FeedSummary"
          },
          "release_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Release Id",
            "description": "Saved edition identifier. Null before the first successful refresh."
          },
          "published_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Published At",
            "description": "When this edition was published, separate from source publication."
          },
          "freshness": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FeedFreshness"
              },
              {
                "type": "null"
              }
            ]
          },
          "examined_window_start": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Examined Window Start"
          },
          "examined_window_end": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Examined Window End"
          },
          "time_basis": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "published",
                  "observed",
                  "publication_proxy",
                  "mixed"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Time Basis"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "ready",
              "empty"
            ],
            "title": "Status"
          },
          "refresh_status": {
            "type": "string",
            "enum": [
              "pending",
              "running",
              "succeeded",
              "failed"
            ],
            "title": "Refresh Status"
          },
          "last_attempt_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Attempt At"
          },
          "is_current": {
            "type": "boolean",
            "title": "Is Current",
            "description": "Whether this is the feed's current edition."
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/FeedItem"
            },
            "type": "array",
            "title": "Items",
            "description": "Selected discoveries with exact examples and qualified meanings."
          },
          "provenance": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FeedProvenance"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "feed",
          "release_id",
          "published_at",
          "freshness",
          "examined_window_start",
          "examined_window_end",
          "time_basis",
          "status",
          "refresh_status",
          "last_attempt_at",
          "is_current",
          "items"
        ],
        "title": "DiscoveryFeedResponse"
      },
      "EdgeType": {
        "type": "string",
        "enum": [
          "direct",
          "affinity",
          "inferred",
          "barrier"
        ],
        "title": "EdgeType"
      },
      "EffortLevel": {
        "type": "string",
        "enum": [
          "auto",
          "low",
          "mid",
          "high"
        ],
        "title": "EffortLevel",
        "description": "Effort level for product research."
      },
      "EngagementMetrics": {
        "properties": {
          "avg_views": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avg Views",
            "description": "Average view count from recent content. On platforms with multiple upload formats, this blends across the supported formats.",
            "examples": [
              125000,
              500000,
              2000000
            ]
          },
          "avg_likes": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avg Likes",
            "description": "Average like count from recent content. On platforms with multiple upload formats, this blends across the supported formats.",
            "examples": [
              5000,
              25000,
              100000
            ]
          },
          "avg_comments": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avg Comments",
            "description": "Average comment count from recent content. On platforms with multiple upload formats, this blends across the supported formats.",
            "examples": [
              500,
              2500,
              10000
            ]
          },
          "avg_engagement_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avg Engagement Rate",
            "description": "Average engagement rate calculated as (likes + comments) / views. Expressed as a decimal (e.g., 0.05 = 5%).",
            "examples": [
              0.05,
              0.1,
              0.15
            ]
          }
        },
        "type": "object",
        "title": "EngagementMetrics",
        "description": "Engagement metrics from recent videos/posts."
      },
      "EnrichmentSkipReason": {
        "properties": {
          "code": {
            "type": "string",
            "const": "below_minimum_subscribers",
            "title": "Code",
            "description": "Machine-readable reason code. `below_minimum_subscribers` means the account's follower count is below the minimum where this enrichment reliably returns useful results."
          },
          "minimum_subscribers": {
            "type": "integer",
            "title": "Minimum Subscribers",
            "description": "The minimum subscriber count required to attempt this enrichment."
          },
          "platform": {
            "type": "string",
            "title": "Platform",
            "description": "Platform this threshold was evaluated against."
          }
        },
        "type": "object",
        "required": [
          "code",
          "minimum_subscribers",
          "platform"
        ],
        "title": "EnrichmentSkipReason",
        "description": "Structured reason why an enrichment block was deterministically skipped."
      },
      "EntityBreakoutDetailResponse": {
        "properties": {
          "entity_id": {
            "type": "string",
            "title": "Entity Id",
            "description": "Opaque identifier for this entity"
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Entity display name"
          },
          "entity_type": {
            "type": "string",
            "title": "Entity Type",
            "description": "Entity kind: 'player' or 'team'"
          },
          "velocity": {
            "type": "number",
            "title": "Velocity",
            "description": "Recent activity relative to the entity's own typical level"
          },
          "trend_direction": {
            "type": "string",
            "title": "Trend Direction",
            "description": "'rising', 'steady', or 'cooling'"
          },
          "last_activity_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Activity At",
            "description": "When this entity most recently appeared in breaking coverage (ISO 8601, UTC)"
          },
          "topics": {
            "items": {
              "$ref": "#/components/schemas/EntityTopicRef"
            },
            "type": "array",
            "title": "Topics",
            "description": "The entity's current breaking topics"
          },
          "timeline": {
            "items": {
              "$ref": "#/components/schemas/EntityTimelineBucket"
            },
            "type": "array",
            "title": "Timeline",
            "description": "Recent daily activity for this entity"
          }
        },
        "type": "object",
        "required": [
          "entity_id",
          "name",
          "entity_type",
          "velocity",
          "trend_direction"
        ],
        "title": "EntityBreakoutDetailResponse",
        "description": "A single entity's current breaking topics and recent activity.\n\nThere is no ranking ``score`` here — that value is only meaningful in the\nranked list context, not for a single-entity fetch."
      },
      "EntityBreakoutListResponse": {
        "properties": {
          "entities": {
            "items": {
              "$ref": "#/components/schemas/EntityBreakoutResponse"
            },
            "type": "array",
            "title": "Entities",
            "description": "Ranked breaking entities"
          },
          "total_count": {
            "type": "integer",
            "title": "Total Count",
            "description": "Total matching entities before pagination"
          }
        },
        "type": "object",
        "required": [
          "total_count"
        ],
        "title": "EntityBreakoutListResponse",
        "description": "Ranked breaking entities for a vertical."
      },
      "EntityBreakoutResponse": {
        "properties": {
          "entity_id": {
            "type": "string",
            "title": "Entity Id",
            "description": "Opaque identifier for this entity; reuse with the entity detail endpoint"
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Entity display name"
          },
          "entity_type": {
            "type": "string",
            "title": "Entity Type",
            "description": "Entity kind: 'player' or 'team'"
          },
          "score": {
            "type": "number",
            "title": "Score",
            "description": "Breakout ranking score (0-1); higher is more notable right now"
          },
          "velocity": {
            "type": "number",
            "title": "Velocity",
            "description": "Recent activity relative to the entity's own typical level (e.g. 2.4 means 240% above its baseline)"
          },
          "trend_direction": {
            "type": "string",
            "title": "Trend Direction",
            "description": "'rising', 'steady', or 'cooling'"
          },
          "last_activity_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Activity At",
            "description": "When this entity most recently appeared in breaking coverage (ISO 8601, UTC)."
          },
          "top_topics": {
            "items": {
              "$ref": "#/components/schemas/EntityTopicRef"
            },
            "type": "array",
            "title": "Top Topics",
            "description": "The entity's current breaking topics"
          }
        },
        "type": "object",
        "required": [
          "entity_id",
          "name",
          "entity_type",
          "score",
          "velocity",
          "trend_direction"
        ],
        "title": "EntityBreakoutResponse",
        "description": "A breaking entity (player or team) with its supporting topics."
      },
      "EntityFacet": {
        "properties": {
          "relation": {
            "type": "string",
            "title": "Relation",
            "description": "The kind of association, e.g. 'sport', 'team', 'league'"
          },
          "tag": {
            "type": "string",
            "title": "Tag",
            "description": "Tag identifier; pass as the 'tag' query parameter on the list endpoint"
          },
          "label": {
            "type": "string",
            "title": "Label",
            "description": "Canonical, region-neutral tag name, e.g. 'association football'"
          },
          "display_name": {
            "type": "string",
            "title": "Display Name",
            "description": "Name to show in the UI, adapted to the requested locale (e.g. 'soccer' for en-US, 'football' for en-GB). Use 'tag' as the filter value, not this."
          },
          "entity_count": {
            "type": "integer",
            "title": "Entity Count",
            "description": "How many currently-breaking entities carry this tag"
          }
        },
        "type": "object",
        "required": [
          "relation",
          "tag",
          "label",
          "display_name",
          "entity_count"
        ],
        "title": "EntityFacet",
        "description": "One value you can filter the breakout list by (e.g. a sport)."
      },
      "EntityFacetsResponse": {
        "properties": {
          "facets": {
            "items": {
              "$ref": "#/components/schemas/EntityFacet"
            },
            "type": "array",
            "title": "Facets",
            "description": "Tags present among the currently-breaking entities, most common first"
          }
        },
        "type": "object",
        "title": "EntityFacetsResponse",
        "description": "Available tags to filter the breakout entity list by."
      },
      "EntityTimelineBucket": {
        "properties": {
          "day": {
            "type": "string",
            "title": "Day",
            "description": "Date in YYYY-MM-DD format"
          },
          "topic_count": {
            "type": "integer",
            "title": "Topic Count",
            "description": "Number of the entity's topics active that day"
          }
        },
        "type": "object",
        "required": [
          "day",
          "topic_count"
        ],
        "title": "EntityTimelineBucket",
        "description": "One day's activity count for an entity."
      },
      "EntityTopicCitation": {
        "properties": {
          "source_category": {
            "type": "string",
            "title": "Source Category",
            "description": "Source category: news, web, reddit, tiktok, trends"
          },
          "source_url": {
            "type": "string",
            "title": "Source Url",
            "description": "URL of the source"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title",
            "description": "Headline of the source, when it has one (null for posts)"
          },
          "display": {
            "type": "string",
            "title": "Display",
            "description": "Display-ready label for the source — its headline, or the post text when the source has no headline. Prefer this over title.",
            "default": ""
          }
        },
        "type": "object",
        "required": [
          "source_category",
          "source_url"
        ],
        "title": "EntityTopicCitation",
        "description": "A supporting source for a topic — the lean entity-card citation shape.\n\nInherits the shared citation fields (source_category, source_url, title,\ndisplay) and intentionally adds nothing else; the entity cards only render a\ncompact source link, not the full citation detail."
      },
      "EntityTopicRef": {
        "properties": {
          "topic_id": {
            "type": "string",
            "title": "Topic Id",
            "description": "Topic identifier; reuse with the breakout topic endpoints"
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Topic name"
          },
          "citations": {
            "items": {
              "$ref": "#/components/schemas/EntityTopicCitation"
            },
            "type": "array",
            "title": "Citations",
            "description": "A few supporting sources for this topic"
          },
          "source_summary": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Source Summary",
            "description": "Supporting-source count by category: {news: 5, reddit: 12, web: 3}"
          },
          "citation_rate": {
            "items": {
              "$ref": "#/components/schemas/CitationRateBucket"
            },
            "type": "array",
            "title": "Citation Rate",
            "description": "Daily supporting-source counts for this topic, oldest first"
          },
          "citation_rate_hourly": {
            "items": {
              "$ref": "#/components/schemas/HourlyCitationRateBucket"
            },
            "type": "array",
            "title": "Citation Rate Hourly",
            "description": "Hourly UTC supporting-source counts for this topic, oldest first"
          },
          "last_activity_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Activity At",
            "description": "When this topic most recently appeared in breaking coverage (ISO 8601, UTC)"
          }
        },
        "type": "object",
        "required": [
          "topic_id",
          "name"
        ],
        "title": "EntityTopicRef",
        "description": "A topic the entity is currently breaking in."
      },
      "EvidenceGrade": {
        "type": "string",
        "enum": [
          "grounded",
          "sparse",
          "derived"
        ],
        "title": "EvidenceGrade"
      },
      "EvidenceItem": {
        "properties": {
          "source": {
            "type": "string",
            "title": "Source",
            "description": "Community, platform or document the snippet came from."
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Url",
            "description": "Link to the source when known."
          },
          "snippet": {
            "type": "string",
            "maxLength": 600,
            "minLength": 1,
            "title": "Snippet",
            "description": "Short excerpt supporting the facet."
          },
          "similarity": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 1.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Similarity",
            "description": "How closely the excerpt supports the facet, 0 to 1 when known."
          },
          "judge_probability": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 1.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Judge Probability",
            "description": "Calibrated probability that this evidence supports the facet, when a judge scored it."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "source",
          "snippet"
        ],
        "title": "EvidenceItem"
      },
      "Exclusions": {
        "properties": {
          "categories": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 50,
            "title": "Categories",
            "description": "Product categories to leave out of the results."
          },
          "brands": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 200,
            "title": "Brands",
            "description": "Brand websites, as domains, to leave out of the results."
          },
          "sensitive": {
            "type": "boolean",
            "title": "Sensitive",
            "description": "When true, statements about sensitive topics never contribute to a score.",
            "default": true
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "Exclusions"
      },
      "FacetKind": {
        "type": "string",
        "enum": [
          "identity",
          "need",
          "trigger",
          "barrier",
          "interest",
          "situation",
          "intent"
        ],
        "title": "FacetKind"
      },
      "FacetValue": {
        "properties": {
          "value": {
            "type": "string",
            "title": "Value",
            "description": "The filter value to pass in queries."
          },
          "label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Label",
            "description": "Display label."
          },
          "count": {
            "type": "integer",
            "title": "Count",
            "description": "Items currently carrying this value."
          }
        },
        "type": "object",
        "required": [
          "value",
          "count"
        ],
        "title": "FacetValue"
      },
      "FeatureBreakdown": {
        "properties": {
          "interval": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Interval",
            "description": "Reset cadence, or lifetime for no scheduled reset."
          },
          "interval_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Interval Count",
            "description": "Number of cadence units between resets, when known."
          },
          "balance": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Balance",
            "description": "Current remaining allowance for this credit schedule."
          },
          "usage": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Usage",
            "description": "Current usage charged to this credit schedule."
          },
          "included_usage": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Included Usage",
            "description": "Total allowance for this credit schedule."
          },
          "next_reset_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Reset At",
            "description": "Next reset in UTC milliseconds, or null when none is supplied."
          },
          "unlimited": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Unlimited",
            "description": "Whether this credit schedule has unlimited usage."
          }
        },
        "type": "object",
        "title": "FeatureBreakdown"
      },
      "FeedFreshness": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ready",
              "partial",
              "stale",
              "unknown"
            ],
            "title": "Status"
          },
          "evaluated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Evaluated At"
          },
          "collection_checked_through": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Collection Checked Through"
          },
          "discovery_processed_through": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Discovery Processed Through"
          },
          "max_lag_seconds": {
            "type": "integer",
            "title": "Max Lag Seconds"
          },
          "notes": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Notes",
            "default": [
              "Coverage describes the examined sources, not the whole platform.",
              "Cited examples are not discussion volume or measured growth."
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "status",
          "evaluated_at",
          "collection_checked_through",
          "discovery_processed_through",
          "max_lag_seconds"
        ],
        "title": "FeedFreshness"
      },
      "FeedItem": {
        "properties": {
          "item_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$",
            "title": "Item Id"
          },
          "kind": {
            "type": "string",
            "enum": [
              "topic",
              "format",
              "observation"
            ],
            "title": "Kind"
          },
          "facets": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Facets"
          },
          "history_scope": {
            "type": "string",
            "const": "selected_occurrences_in_view",
            "title": "History Scope",
            "default": "selected_occurrences_in_view"
          },
          "latest": {
            "$ref": "#/components/schemas/FeedOccurrence"
          },
          "other_occurrences_in_latest_window": {
            "items": {
              "$ref": "#/components/schemas/FeedOccurrence"
            },
            "type": "array",
            "title": "Other Occurrences In Latest Window",
            "default": []
          },
          "previous_occurrences": {
            "items": {
              "$ref": "#/components/schemas/FeedOccurrence"
            },
            "type": "array",
            "title": "Previous Occurrences",
            "default": []
          },
          "related_items": {
            "items": {
              "$ref": "#/components/schemas/FeedRelatedItem"
            },
            "type": "array",
            "maxItems": 100,
            "title": "Related Items",
            "default": []
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "item_id",
          "kind",
          "facets",
          "latest"
        ],
        "title": "FeedItem"
      },
      "FeedOccurrence": {
        "additionalProperties": true,
        "type": "object"
      },
      "FeedProvenance": {
        "additionalProperties": true,
        "type": "object"
      },
      "FeedRelatedItem": {
        "properties": {
          "item_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$",
            "title": "Item Id"
          },
          "relation": {
            "type": "string",
            "enum": [
              "narrower",
              "broader",
              "related"
            ],
            "title": "Relation"
          },
          "reason": {
            "type": "string",
            "minLength": 1,
            "title": "Reason"
          },
          "source_occurrence_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$",
            "title": "Source Occurrence Id"
          },
          "target_occurrence_id": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$",
            "title": "Target Occurrence Id"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "item_id",
          "relation",
          "reason",
          "source_occurrence_id",
          "target_occurrence_id"
        ],
        "title": "FeedRelatedItem"
      },
      "FeedSummary": {
        "properties": {
          "slug": {
            "type": "string",
            "minLength": 1,
            "title": "Slug"
          },
          "label": {
            "type": "string",
            "minLength": 1,
            "title": "Label"
          },
          "version": {
            "type": "string",
            "minLength": 1,
            "title": "Version"
          },
          "facets": {
            "items": {
              "$ref": "#/components/schemas/PublicFeedFacet"
            },
            "type": "array",
            "title": "Facets"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "slug",
          "label",
          "version",
          "facets"
        ],
        "title": "FeedSummary"
      },
      "FollowerBucket": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id",
            "description": "Stable follower bucket identifier.",
            "examples": [
              "10k_50k",
              "100k_300k",
              "over_1m"
            ]
          },
          "display": {
            "type": "string",
            "title": "Display",
            "description": "Human-readable label for the follower bucket.",
            "examples": [
              "10K-50K followers",
              "100K-300K followers",
              "1M+ followers"
            ]
          },
          "min_followers": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Min Followers",
            "description": "Inclusive lower bound for the bucket.",
            "examples": [
              10000,
              100000,
              1000000
            ]
          },
          "max_followers": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Followers",
            "description": "Inclusive upper bound for the bucket, if finite.",
            "examples": [
              49999,
              299999,
              999999
            ]
          }
        },
        "type": "object",
        "required": [
          "id",
          "display",
          "min_followers"
        ],
        "title": "FollowerBucket",
        "description": "Advertiser-facing follower bucket for a channel."
      },
      "FormationIdentityState": {
        "type": "string",
        "enum": [
          "provisional",
          "canonical"
        ],
        "title": "FormationIdentityState",
        "description": "Whether identity is still run-local or maintained across observations."
      },
      "FormationKind": {
        "type": "string",
        "enum": [
          "story",
          "theme",
          "topic",
          "trend",
          "entity"
        ],
        "title": "FormationKind",
        "description": "What an observed formation represents."
      },
      "FormationProjectionItemType": {
        "type": "string",
        "enum": [
          "evidence",
          "formation"
        ],
        "title": "FormationProjectionItemType",
        "description": "Whether a projection row points at evidence or a formation."
      },
      "GetTopicResponse": {
        "properties": {
          "topic": {
            "$ref": "#/components/schemas/BreakoutTopicResponse",
            "description": "The requested topic"
          }
        },
        "type": "object",
        "required": [
          "topic"
        ],
        "title": "GetTopicResponse",
        "description": "Response for getting a single topic."
      },
      "GroundedEffort": {
        "type": "string",
        "enum": [
          "auto",
          "low",
          "mid",
          "high"
        ],
        "title": "GroundedEffort"
      },
      "GroundedInsightsInput": {
        "properties": {
          "brand_url": {
            "type": "string",
            "title": "Brand Url",
            "description": "Brand website to research.",
            "examples": [
              "https://nike.com"
            ]
          },
          "query": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Query",
            "description": "Optional query to focus the audience research on a specific topic or angle. When provided, personas will be weighted toward conversations matching this query in addition to the brand itself. For example, 'running shoes for beginners' produces personas focused on entry-level runners, while 'streetwear fashion' emphasizes style-driven audiences. When omitted, the endpoint explores the brand broadly."
          },
          "effort": {
            "$ref": "#/components/schemas/GroundedEffort",
            "description": "Effort level: low, mid, high. Default is mid.",
            "default": "auto"
          },
          "include_citations": {
            "type": "boolean",
            "title": "Include Citations",
            "description": "When true, include real world citations for each persona.",
            "default": true
          }
        },
        "type": "object",
        "required": [
          "brand_url"
        ],
        "title": "GroundedInsightsInput"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "HourlyCitationRateBucket": {
        "properties": {
          "hour": {
            "type": "string",
            "title": "Hour",
            "description": "Start of the hour in ISO 8601 UTC format"
          },
          "count": {
            "type": "integer",
            "title": "Count",
            "description": "Number of citations published during that hour"
          }
        },
        "type": "object",
        "required": [
          "hour",
          "count"
        ],
        "title": "HourlyCitationRateBucket",
        "description": "A single UTC hour's citation count for charting."
      },
      "ImageDownloadInput": {
        "properties": {
          "url": {
            "type": "string",
            "maxLength": 8192,
            "minLength": 1,
            "title": "Url",
            "description": "Public HTTPS URL of the image to download.",
            "examples": [
              "https://example.com/product.png"
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "url"
        ],
        "title": "ImageDownloadInput"
      },
      "InferredNeeds": {
        "type": "string",
        "enum": [
          "off",
          "capped",
          "on"
        ],
        "title": "InferredNeeds"
      },
      "InterpretationMode": {
        "type": "string",
        "enum": [
          "summary",
          "profile",
          "facets"
        ],
        "title": "InterpretationMode"
      },
      "ListNarrativesResponse": {
        "properties": {
          "narratives": {
            "items": {
              "$ref": "#/components/schemas/NarrativeResponse"
            },
            "type": "array",
            "title": "Narratives",
            "description": "Narratives ordered by updated_at DESC"
          }
        },
        "type": "object",
        "required": [
          "narratives"
        ],
        "title": "ListNarrativesResponse",
        "description": "List of narratives."
      },
      "ListSurfaceMode": {
        "type": "string",
        "enum": [
          "topic",
          "story"
        ],
        "title": "ListSurfaceMode",
        "description": "List surface mode for breakout browse responses."
      },
      "ListTopicsResponse": {
        "properties": {
          "surface_mode": {
            "$ref": "#/components/schemas/ListSurfaceMode",
            "description": "Whether the list contains raw topics or derived story surfaces",
            "default": "topic"
          },
          "topics": {
            "items": {
              "$ref": "#/components/schemas/BreakoutTopicResponse"
            },
            "type": "array",
            "title": "Topics",
            "description": "List of topics when surface_mode=topic"
          },
          "stories": {
            "items": {
              "$ref": "#/components/schemas/TopicStoryViewResponse"
            },
            "type": "array",
            "title": "Stories",
            "description": "Derived story surfaces when surface_mode=story"
          },
          "story_source": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StoryListSource"
              },
              {
                "type": "null"
              }
            ],
            "description": "Actual story list source when surface_mode=story. 'projection' means cached group membership with live ranking, 'live' means request-time seed expansion."
          },
          "total_count": {
            "type": "integer",
            "title": "Total Count",
            "description": "Total matching rows for the current list mode. When surface_mode=story, this counts exact-deduped projected story surfaces before list-level overlap suppression and pagination."
          },
          "source_topic_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Topic Count",
            "description": "Raw source-topic seed count behind story mode before exact projection dedupe. This helps distinguish story-surface volume from the broader seed pool used to build them."
          },
          "returned_story_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Returned Story Count",
            "description": "Number of returned story surfaces when surface_mode=story"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor",
            "description": "Cursor for next page, if more results"
          }
        },
        "type": "object",
        "required": [
          "total_count"
        ],
        "title": "ListTopicsResponse",
        "description": "Response for listing breakout topics."
      },
      "MatchInput": {
        "properties": {
          "persona": {
            "$ref": "#/components/schemas/PersonaInputModel",
            "description": "The persona to match against this catalog."
          },
          "settings": {
            "$ref": "#/components/schemas/MatchSettings",
            "description": "Caller-controlled matching settings."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "persona"
        ],
        "title": "MatchInput",
        "description": "Request to match a persona against one catalog's entries."
      },
      "MatchInterpretation": {
        "properties": {
          "mode": {
            "$ref": "#/components/schemas/InterpretationMode",
            "description": "How the persona was provided."
          },
          "facets": {
            "items": {
              "$ref": "#/components/schemas/PersonaFacetSummary"
            },
            "type": "array",
            "title": "Facets",
            "description": "The typed facets read from the persona."
          },
          "llm_calls": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Llm Calls",
            "description": "Number of model calls used to read this persona."
          },
          "language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Language",
            "description": "This persona's dominant language, as a two-letter code, or `mixed` when the persona mixes multiple languages with no single dominant one. Null when it could not be determined."
          },
          "price_sensitivity": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "budget",
                  "mid",
                  "premium"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Price Sensitivity",
            "description": "This persona's price sensitivity, when stated: budget, mid or premium. Null when the persona said nothing about spend."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "mode",
          "facets",
          "llm_calls"
        ],
        "title": "MatchInterpretation",
        "description": "What was read from the supplied persona."
      },
      "MatchOutput": {
        "properties": {
          "interpretation": {
            "$ref": "#/components/schemas/MatchInterpretation"
          },
          "matches": {
            "items": {
              "$ref": "#/components/schemas/CatalogMatch"
            },
            "type": "array",
            "title": "Matches",
            "description": "Ranked catalog entries that fit the persona."
          },
          "settings_applied": {
            "$ref": "#/components/schemas/MatchSettings",
            "description": "The settings this match was computed under."
          },
          "strategy_version": {
            "type": "string",
            "title": "Strategy Version",
            "description": "Version of the scoring strategy that produced this match."
          },
          "completeness": {
            "$ref": "#/components/schemas/Completeness",
            "description": "Whether this response is complete."
          },
          "brief_fingerprint": {
            "type": "string",
            "title": "Brief Fingerprint",
            "description": "Stable identifier for this persona-and-settings pairing."
          },
          "relevance_status": {
            "type": "string",
            "enum": [
              "disabled",
              "applied",
              "fallback",
              "skipped_sensitive",
              "skipped_settings",
              "no_candidates"
            ],
            "title": "Relevance Status",
            "description": "Full-context relevance assessment: applied, disabled, no_candidates, fallback after unavailability, skipped_sensitive to honor exclusions, or skipped_settings to preserve custom scoring preferences.",
            "default": "disabled"
          },
          "judge_applied": {
            "type": "boolean",
            "title": "Judge Applied",
            "description": "Whether a borderline-match verification pass, selected server-side, was in effect for this response: either it ran and its answers were applied, or there was nothing borderline enough to need verifying. A match still returns normally, with this false, when no verification pass is configured, it only measures without changing results, or the selected backend is unavailable.",
            "default": false
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "interpretation",
          "matches",
          "settings_applied",
          "strategy_version",
          "completeness",
          "brief_fingerprint"
        ],
        "title": "MatchOutput",
        "description": "Ranked catalog entries for one persona, with an explained score each."
      },
      "MatchSettings": {
        "properties": {
          "preset": {
            "$ref": "#/components/schemas/Preset",
            "description": "Named weighting: balanced, performance (stated needs first) or awareness (interests and situations count more).",
            "default": "balanced"
          },
          "priorities": {
            "additionalProperties": {
              "type": "number"
            },
            "propertyNames": {
              "$ref": "#/components/schemas/FacetKind"
            },
            "type": "object",
            "title": "Priorities",
            "description": "Optional multipliers from 0 to 2 per characteristic kind, applied on top of the preset."
          },
          "exclusions": {
            "$ref": "#/components/schemas/Exclusions",
            "description": "What to leave out of the results."
          },
          "inferred_needs": {
            "$ref": "#/components/schemas/InferredNeeds",
            "description": "Whether needs implied by stated interests and situations may contribute: off, capped (a bounded share of each score) or on.",
            "default": "off"
          },
          "min_evidence": {
            "type": "number",
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Min Evidence",
            "description": "Minimum score for an advertiser to be returned at all. A price-tier mismatch (see price_tier_affinity) can by itself lower a score below this threshold.",
            "default": 0.35
          },
          "price_tier_affinity": {
            "type": "boolean",
            "title": "Price Tier Affinity",
            "description": "Whether an entry's price tier and the persona's price sensitivity, when both are known, adjust that entry's score: a small boost when they agree, a small penalty at the two extremes. Set false to leave scores unaffected by price tier.",
            "default": true
          },
          "geo": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2,
                "minLength": 2,
                "pattern": "^[A-Za-z]{2}$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Geo",
            "description": "Optional country filter, as a two-letter ISO 3166-1 country code."
          },
          "language": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 16
              },
              {
                "type": "null"
              }
            ],
            "title": "Language",
            "description": "Optional language code filter."
          },
          "limit": {
            "type": "integer",
            "maximum": 50.0,
            "minimum": 1.0,
            "title": "Limit",
            "description": "Maximum number of advertisers returned.",
            "default": 10
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "MatchSettings",
        "description": "Caller-controlled settings. Presets plus bounded multipliers, not free weights."
      },
      "MatchedOffer": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the selected product or service."
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Url",
            "description": "Selected offer page, when known."
          },
          "description": {
            "type": "string",
            "title": "Description",
            "description": "Available description of the selected offer."
          },
          "evidence": {
            "items": {
              "$ref": "#/components/schemas/EvidenceItem"
            },
            "type": "array",
            "title": "Evidence",
            "description": "Source excerpts supporting this offer."
          },
          "relevance_score": {
            "type": "number",
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Relevance Score",
            "description": "Assessed relevance from 0 to 1; not a purchase probability."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "name",
          "description",
          "relevance_score"
        ],
        "title": "MatchedOffer",
        "description": "Specific product or service supporting the advertiser recommendation."
      },
      "MostRecentAd": {
        "properties": {
          "publication_name": {
            "type": "string",
            "title": "Publication Name",
            "description": "Name of the publication where the ad appeared",
            "example": "TechCrunch"
          },
          "publication_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Publication Url",
            "description": "URL of the publication",
            "example": "https://techcrunch.com"
          },
          "publication_categories": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Publication Categories",
            "description": "Categories of the publication",
            "example": [
              "technology",
              "startups"
            ]
          },
          "publication_platform": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Publication Platform",
            "description": "Platform of the publication",
            "example": "substack"
          },
          "content_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Content Url",
            "description": "URL of the specific content containing the ad, if available",
            "example": "https://example.com/article"
          },
          "sponsor_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sponsor Type",
            "description": "Legacy single-label sponsorship category for the most recent ad (for example explicit_ad, implicit_ad, affiliate, promotion, or unknown), kept for backward compatibility. It groups several available signals into one value; for example, explicit_ad does not prove a cash payment.",
            "example": "explicit_ad"
          },
          "monetization_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Monetization Type",
            "description": "Likely type of deal for the most recent ad: paid_partnership, affiliate, gifted, or unknown (some older placements carry promotion, self_promotion, or merch_store). It does not confirm a private contract or payment. Omitted when it was not populated.",
            "example": "paid_partnership"
          },
          "disclosure_tier": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Disclosure Tier",
            "description": "Strongest evidence found for the most recent ad's creator-sponsor relationship: platform_verified, creator_disclosed, commercial_signal, or inferred. Omitted when it was not populated.",
            "example": "platform_verified"
          },
          "published_date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Published Date",
            "description": "Date when this ad was published (YYYY-MM-DD)",
            "example": "2024-03-15"
          },
          "evidence": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AdEvidence"
              },
              {
                "type": "null"
              }
            ],
            "description": "Structured evidence for the most recent ad, including source and offsets. Returned only when 'include_evidence=true'."
          }
        },
        "type": "object",
        "required": [
          "publication_name"
        ],
        "title": "MostRecentAd",
        "description": "Details from the partner's most recent advertisement"
      },
      "NarrativeDetailResponse": {
        "properties": {
          "narrative": {
            "$ref": "#/components/schemas/NarrativeResponse"
          },
          "member_topics": {
            "items": {
              "$ref": "#/components/schemas/BreakoutTopicResponse"
            },
            "type": "array",
            "title": "Member Topics",
            "description": "Topics belonging to this narrative"
          }
        },
        "type": "object",
        "required": [
          "narrative"
        ],
        "title": "NarrativeDetailResponse",
        "description": "Narrative with its member topics."
      },
      "NarrativeResponse": {
        "properties": {
          "narrative_id": {
            "type": "string",
            "title": "Narrative Id",
            "description": "UUID identifier"
          },
          "slug": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Slug",
            "description": "URL-friendly slug (non-identity)"
          },
          "display_name": {
            "type": "string",
            "title": "Display Name",
            "description": "Human-readable name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description",
            "description": "Longer description of the developing story"
          },
          "vertical": {
            "type": "string",
            "title": "Vertical",
            "description": "Vertical slug"
          },
          "member_count": {
            "type": "integer",
            "title": "Member Count",
            "description": "Number of linked topics"
          },
          "total_citations": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total Citations",
            "description": "Total citations across all member topics"
          },
          "combined_source_summary": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "integer"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Combined Source Summary",
            "description": "Aggregate source counts across members"
          },
          "date_range": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Date Range",
            "description": "Earliest and latest discovered_at across members"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          }
        },
        "type": "object",
        "required": [
          "narrative_id",
          "display_name",
          "vertical",
          "member_count",
          "created_at",
          "updated_at"
        ],
        "title": "NarrativeResponse",
        "description": "A lightweight narrative arc linking related breakout topics."
      },
      "PeriodUsage": {
        "properties": {
          "period": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "title": "Period"
          },
          "features": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Features"
          }
        },
        "type": "object",
        "required": [
          "period",
          "features"
        ],
        "title": "PeriodUsage"
      },
      "PersonaCitationV3": {
        "properties": {
          "title": {
            "type": "string",
            "title": "Title",
            "description": "Title"
          },
          "text": {
            "type": "string",
            "title": "Text",
            "description": "Relevant excerpt from the citation"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Url",
            "description": "URL of the source if available"
          },
          "subreddit": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subreddit",
            "description": "Subreddit if from Reddit"
          }
        },
        "type": "object",
        "required": [
          "title",
          "text"
        ],
        "title": "PersonaCitationV3"
      },
      "PersonaFacetInput": {
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/FacetKind",
            "description": "What kind of statement this facet is."
          },
          "text": {
            "type": "string",
            "maxLength": 300,
            "minLength": 2,
            "title": "Text",
            "description": "The facet's text."
          },
          "confidence": {
            "type": "number",
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Confidence",
            "description": "Confidence in this facet, from 0 to 1."
          },
          "sensitive": {
            "type": "boolean",
            "title": "Sensitive",
            "description": "Whether this facet touches a sensitive topic.",
            "default": false
          },
          "source_span": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 300
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Span",
            "description": "The phrase in the persona this facet came from, when known."
          },
          "parent_index": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Parent Index",
            "description": "Index of the stated facet this facet was inferred from. Must be null unless `inferred` is true."
          },
          "inferred": {
            "type": "boolean",
            "title": "Inferred",
            "description": "Whether this facet was inferred by the caller rather than stated directly in the persona.",
            "default": false
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "kind",
          "text",
          "confidence"
        ],
        "title": "PersonaFacetInput",
        "description": "One caller-supplied statement describing the persona."
      },
      "PersonaFacetSummary": {
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/FacetKind",
            "description": "What kind of statement this facet is."
          },
          "text": {
            "type": "string",
            "title": "Text",
            "description": "The facet's text."
          },
          "confidence": {
            "type": "number",
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Confidence",
            "description": "Confidence in this facet, from 0 to 1."
          },
          "sensitive": {
            "type": "boolean",
            "title": "Sensitive",
            "description": "Whether this facet touches a sensitive topic."
          },
          "source_span": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 300
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Span",
            "description": "The phrase in the persona this facet came from, when known."
          },
          "parent_index": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Parent Index",
            "description": "Index of the stated facet this facet was inferred from, if any."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "kind",
          "text",
          "confidence",
          "sensitive"
        ],
        "title": "PersonaFacetSummary",
        "description": "One typed statement interpreted from a supplied persona."
      },
      "PersonaInputModel": {
        "properties": {
          "summary": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 8000,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Summary",
            "description": "Free-text persona description."
          },
          "profile": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonaProfileInput"
              },
              {
                "type": "null"
              }
            ],
            "description": "Structured persona fields."
          },
          "facets": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/PersonaFacetInput"
                },
                "type": "array",
                "maxItems": 80
              },
              {
                "type": "null"
              }
            ],
            "title": "Facets",
            "description": "Caller-typed persona facets."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "PersonaInputModel",
        "description": "Persona to match against a catalog: exactly one of summary, profile or facets.",
        "example": {
          "summary": "Tech founders interested in developer tools and automation"
        }
      },
      "PersonaProfileInput": {
        "properties": {
          "identity": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 300,
                "minLength": 2
              },
              {
                "type": "null"
              }
            ],
            "title": "Identity",
            "description": "A short description of who this persona is."
          },
          "interests": {
            "items": {
              "type": "string",
              "maxLength": 300,
              "minLength": 2
            },
            "type": "array",
            "maxItems": 40,
            "title": "Interests",
            "description": "Topics or activities this persona is interested in."
          },
          "situations": {
            "items": {
              "type": "string",
              "maxLength": 300,
              "minLength": 2
            },
            "type": "array",
            "maxItems": 40,
            "title": "Situations",
            "description": "Situations or contexts relevant to this persona."
          },
          "needs": {
            "items": {
              "type": "string",
              "maxLength": 300,
              "minLength": 2
            },
            "type": "array",
            "maxItems": 40,
            "title": "Needs",
            "description": "Needs this persona has."
          },
          "intent": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 300,
                "minLength": 2
              },
              {
                "type": "null"
              }
            ],
            "title": "Intent",
            "description": "This persona's stated intent, when known."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "PersonaProfileInput",
        "description": "Structured persona fields, mapped deterministically to facets."
      },
      "PersonaV3": {
        "properties": {
          "label": {
            "type": "string",
            "title": "Label",
            "description": "Short descriptive label for this audience segment."
          },
          "description": {
            "type": "string",
            "title": "Description",
            "description": "1-sentence summary of what was observed about this group."
          },
          "personality_traits": {
            "items": {
              "$ref": "#/components/schemas/PersonalityTraitV3"
            },
            "type": "array",
            "title": "Personality Traits",
            "description": "Deprecated. Previously contained personality taxonomy traits. Now always empty — use buying_mindset for behavioral insights.",
            "deprecated": true
          },
          "buying_mindset": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Buying Mindset",
            "description": "1-2 short observations about how this group makes buying decisions — what influences them, how they relate to brands."
          },
          "purchase_motivations": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Purchase Motivations",
            "description": "Why this group wants the product category — enduring desired outcomes, problems solved, and identity payoffs observed in real discussions. 2-5 items; fewer is preferable when evidence is sparse."
          },
          "purchase_triggers": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Purchase Triggers",
            "description": "What pushes them toward purchase now — specific moments, comparisons, and need states observed in real discussions. 2-5 items; fewer is preferable when evidence is sparse."
          },
          "purchase_barriers": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Purchase Barriers",
            "description": "What stops them from buying — specific fears, concerns, objections, and friction points observed in real discussions. 2-5 items; fewer is preferable when evidence is sparse."
          },
          "behaviors": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Behaviors",
            "description": "Deprecated. No longer populated — always returns an empty list. For behavioral insights use buying_mindset, purchase_triggers, and phrase_examples.",
            "deprecated": true
          },
          "phrase_examples": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Phrase Examples",
            "description": "Distinctive slang, idioms, jargon, emojis, hashtags — 1-5 words each. 2-7 items; fewer is preferable to generic filler."
          },
          "voice_and_tone": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Voice And Tone",
            "description": "Deprecated. No longer populated — always returns an empty list. Use phrase_examples for how this audience communicates.",
            "deprecated": true
          },
          "communities": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Communities",
            "description": "Online communities supported by the segment's cited discussions. Omitted when the evidence does not establish a concentrated audience habitat."
          },
          "citations": {
            "items": {
              "$ref": "#/components/schemas/PersonaCitationV3"
            },
            "type": "array",
            "title": "Citations",
            "description": "Supporting citations from real discussions that validate this segment's characteristics."
          }
        },
        "type": "object",
        "required": [
          "label",
          "description",
          "purchase_motivations",
          "purchase_triggers",
          "purchase_barriers",
          "phrase_examples"
        ],
        "title": "PersonaV3"
      },
      "PersonalityTraitV3": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id",
            "description": "Taxonomy key, e.g. 'analytical', 'security_oriented'."
          },
          "label": {
            "type": "string",
            "title": "Label",
            "description": "Human-readable label for the trait, e.g. 'Analytical', 'Stability-Seeking'."
          }
        },
        "type": "object",
        "required": [
          "id",
          "label"
        ],
        "title": "PersonalityTraitV3"
      },
      "Preset": {
        "type": "string",
        "enum": [
          "balanced",
          "performance",
          "awareness"
        ],
        "title": "Preset"
      },
      "PricingInfo": {
        "properties": {
          "amount": {
            "type": "number",
            "title": "Amount"
          },
          "unit": {
            "type": "string",
            "title": "Unit"
          },
          "interval": {
            "type": "string",
            "title": "Interval"
          },
          "included_usage": {
            "type": "integer",
            "title": "Included Usage"
          }
        },
        "type": "object",
        "required": [
          "amount",
          "unit",
          "interval",
          "included_usage"
        ],
        "title": "PricingInfo"
      },
      "PrivateFeedAnnotations": {
        "properties": {
          "webflow_relevance": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Webflow Relevance",
            "description": "Why this story is worth covering for Webflow's readers now."
          },
          "from_discussion": {
            "items": {
              "$ref": "#/components/schemas/PrivateFeedDiscussionNote"
            },
            "type": "array",
            "title": "From Discussion",
            "description": "Optional attributed replies with a recent visibility check.",
            "default": []
          }
        },
        "type": "object",
        "title": "PrivateFeedAnnotations"
      },
      "PrivateFeedCatalogResponse": {
        "properties": {
          "feeds": {
            "items": {
              "$ref": "#/components/schemas/PrivateFeedSummary"
            },
            "type": "array",
            "title": "Feeds",
            "description": "Private feeds enabled for the authenticated account."
          }
        },
        "type": "object",
        "required": [
          "feeds"
        ],
        "title": "PrivateFeedCatalogResponse"
      },
      "PrivateFeedDiscussionNote": {
        "properties": {
          "platform": {
            "anyOf": [
              {
                "type": "string",
                "const": "x"
              },
              {
                "type": "null"
              }
            ],
            "title": "Platform",
            "description": "Where the reply was posted."
          },
          "url": {
            "type": "string",
            "title": "Url",
            "description": "Permalink of the individual reply."
          },
          "author": {
            "type": "string",
            "title": "Author",
            "description": "Public author handle."
          },
          "quote": {
            "type": "string",
            "title": "Quote",
            "description": "An exact attributed passage from the reply."
          },
          "role": {
            "type": "string",
            "enum": [
              "practice",
              "counterpoint",
              "question"
            ],
            "title": "Role",
            "description": "Why this reply is shown alongside the story."
          },
          "published_at": {
            "type": "string",
            "format": "date-time",
            "title": "Published At",
            "description": "When the reply was posted."
          },
          "observed_at": {
            "type": "string",
            "format": "date-time",
            "title": "Observed At",
            "description": "When the reply was checked."
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "title": "Expires At",
            "description": "When the current reply check expires."
          }
        },
        "type": "object",
        "required": [
          "url",
          "author",
          "quote",
          "role",
          "published_at",
          "observed_at",
          "expires_at"
        ],
        "title": "PrivateFeedDiscussionNote"
      },
      "PrivateFeedEvidence": {
        "properties": {
          "evidence_id": {
            "type": "string",
            "title": "Evidence Id",
            "description": "Stable source evidence identifier."
          },
          "source_type": {
            "type": "string",
            "title": "Source Type",
            "description": "Kind of source containing the evidence."
          },
          "source_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Url",
            "description": "Link to the evidence."
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title",
            "description": "Evidence title when present."
          },
          "excerpt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Excerpt",
            "description": "Short evidence excerpt."
          },
          "author_handle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Author Handle",
            "description": "Public author handle when present."
          },
          "community": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Community",
            "description": "Community containing the evidence."
          },
          "published_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Published At",
            "description": "When the evidence was published."
          },
          "claims": {
            "items": {
              "$ref": "#/components/schemas/PrivateFeedEvidenceClaim"
            },
            "type": "array",
            "title": "Claims",
            "description": "Numbers this evidence states about its own subject, quoted from its text. Empty when it states none, when the figures could not be established, or when the text changed after they were read."
          }
        },
        "type": "object",
        "required": [
          "evidence_id",
          "source_type"
        ],
        "title": "PrivateFeedEvidence"
      },
      "PrivateFeedEvidenceClaim": {
        "properties": {
          "quantity": {
            "type": "string",
            "title": "Quantity",
            "description": "The figure exactly as the evidence states it."
          },
          "subject": {
            "type": "string",
            "title": "Subject",
            "description": "What the figure refers to, in the evidence's own words."
          }
        },
        "type": "object",
        "required": [
          "quantity",
          "subject"
        ],
        "title": "PrivateFeedEvidenceClaim"
      },
      "PrivateFeedEvidenceSummary": {
        "properties": {
          "total": {
            "type": "integer",
            "title": "Total"
          },
          "shown": {
            "type": "integer",
            "title": "Shown"
          },
          "source_type_count": {
            "type": "integer",
            "title": "Source Type Count"
          },
          "latest_shown_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Latest Shown At"
          }
        },
        "type": "object",
        "required": [
          "total",
          "shown",
          "source_type_count"
        ],
        "title": "PrivateFeedEvidenceSummary"
      },
      "PrivateFeedFacet": {
        "properties": {
          "slug": {
            "type": "string",
            "title": "Slug",
            "description": "Stable feed facet identifier."
          },
          "label": {
            "type": "string",
            "title": "Label",
            "description": "Human-readable facet label."
          }
        },
        "type": "object",
        "required": [
          "slug",
          "label"
        ],
        "title": "PrivateFeedFacet"
      },
      "PrivateFeedFormation": {
        "properties": {
          "formation_id": {
            "type": "string",
            "title": "Formation Id"
          },
          "kind": {
            "$ref": "#/components/schemas/FormationKind"
          },
          "identity_state": {
            "$ref": "#/components/schemas/FormationIdentityState"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "summary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Summary"
          },
          "maturity": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "watchlist",
                  "established"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Maturity"
          },
          "entities": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Entities"
          },
          "first_seen": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "First Seen"
          },
          "last_seen": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Seen"
          },
          "evidence": {
            "items": {
              "$ref": "#/components/schemas/PrivateFeedEvidence"
            },
            "type": "array",
            "title": "Evidence"
          },
          "observations": {
            "items": {
              "$ref": "#/components/schemas/PrivateFeedObservation"
            },
            "type": "array",
            "title": "Observations"
          }
        },
        "type": "object",
        "required": [
          "formation_id",
          "kind",
          "identity_state",
          "title",
          "entities",
          "evidence",
          "observations"
        ],
        "title": "PrivateFeedFormation"
      },
      "PrivateFeedInsight": {
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "evidence",
              "story",
              "theme"
            ],
            "title": "Kind"
          },
          "summary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Summary"
          },
          "qualifications": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Qualifications"
          },
          "claim_support": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "recurring",
                  "single_source",
                  "comparison",
                  "unclear"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Claim Support",
            "description": "How the cited accounts support the claim or comparison."
          },
          "evidence": {
            "items": {
              "$ref": "#/components/schemas/PrivateFeedInsightEvidence"
            },
            "type": "array",
            "title": "Evidence"
          },
          "topic_attention": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TopicAttentionSummary"
              },
              {
                "type": "null"
              }
            ],
            "description": "Dated coverage and discussion found around this topic."
          },
          "source_activity": {
            "items": {
              "$ref": "#/components/schemas/SourceActivity"
            },
            "type": "array",
            "title": "Source Activity",
            "description": "Sampled reply, repost, and quote counts for individual cited posts."
          },
          "source_activity_status": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "partial",
                  "unavailable"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Activity Status",
            "description": "Whether requested post activity is partial or unavailable."
          }
        },
        "type": "object",
        "required": [
          "kind",
          "summary",
          "qualifications",
          "claim_support",
          "evidence"
        ],
        "title": "PrivateFeedInsight"
      },
      "PrivateFeedInsightEvidence": {
        "properties": {
          "evidence_id": {
            "type": "string",
            "title": "Evidence Id",
            "description": "Stable source evidence identifier."
          },
          "source_type": {
            "type": "string",
            "title": "Source Type",
            "description": "Kind of source containing the evidence."
          },
          "source_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Url",
            "description": "Link to the evidence."
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title",
            "description": "Evidence title when present."
          },
          "excerpt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Excerpt",
            "description": "Short evidence excerpt."
          },
          "author_handle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Author Handle",
            "description": "Public author handle when present."
          },
          "community": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Community",
            "description": "Community containing the evidence."
          },
          "published_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Published At",
            "description": "When the evidence was published."
          },
          "claims": {
            "items": {
              "$ref": "#/components/schemas/PrivateFeedEvidenceClaim"
            },
            "type": "array",
            "title": "Claims",
            "description": "Numbers this evidence states about its own subject, quoted from its text. Empty when it states none, when the figures could not be established, or when the text changed after they were read."
          },
          "author_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Author Name",
            "description": "Public publisher, author, or credited speaker name."
          },
          "exact_quotes": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Exact Quotes",
            "description": "Passages reproduced word for word from this source."
          },
          "role": {
            "type": "string",
            "enum": [
              "support",
              "context",
              "dissent",
              "coverage",
              "control"
            ],
            "title": "Role",
            "description": "How this source relates to the insight."
          },
          "published_on": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "Published On",
            "description": "Publisher-reported calendar date when the time is unavailable."
          }
        },
        "type": "object",
        "required": [
          "evidence_id",
          "source_type",
          "exact_quotes",
          "role"
        ],
        "title": "PrivateFeedInsightEvidence"
      },
      "PrivateFeedItem": {
        "properties": {
          "item_id": {
            "type": "string",
            "title": "Item Id"
          },
          "parent_item_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Parent Item Id"
          },
          "item_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FormationProjectionItemType"
              },
              {
                "type": "string",
                "const": "insight"
              }
            ],
            "title": "Item Type"
          },
          "facet": {
            "type": "string",
            "title": "Facet"
          },
          "facet_label": {
            "type": "string",
            "title": "Facet Label"
          },
          "headline": {
            "type": "string",
            "title": "Headline"
          },
          "why_relevant": {
            "type": "string",
            "title": "Why Relevant"
          },
          "why_now": {
            "type": "string",
            "title": "Why Now"
          },
          "overall_rank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Overall Rank"
          },
          "facet_rank": {
            "type": "integer",
            "title": "Facet Rank"
          },
          "earliest_evidence_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Earliest Evidence At",
            "description": "Earliest publication time among known dated evidence supporting this result; a proxy for when the underlying activity began."
          },
          "evidence_summary": {
            "$ref": "#/components/schemas/PrivateFeedEvidenceSummary"
          },
          "evidence": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PrivateFeedEvidence"
              },
              {
                "type": "null"
              }
            ]
          },
          "formation": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PrivateFeedFormation"
              },
              {
                "type": "null"
              }
            ]
          },
          "insight": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PrivateFeedInsight"
              },
              {
                "type": "null"
              }
            ]
          },
          "annotations": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PrivateFeedAnnotations"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional editorial notes for the item."
          }
        },
        "type": "object",
        "required": [
          "item_id",
          "item_type",
          "facet",
          "facet_label",
          "headline",
          "why_relevant",
          "why_now",
          "facet_rank",
          "evidence_summary"
        ],
        "title": "PrivateFeedItem"
      },
      "PrivateFeedObservation": {
        "properties": {
          "observed_at": {
            "type": "string",
            "format": "date-time",
            "title": "Observed At",
            "description": "When this measurement was made."
          },
          "evidence_count": {
            "type": "integer",
            "title": "Evidence Count",
            "description": "Evidence count at this observation."
          },
          "source_type_count": {
            "type": "integer",
            "title": "Source Type Count",
            "description": "Distinct source-type count."
          },
          "momentum_ratio": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Momentum Ratio",
            "description": "Recent activity relative to its baseline."
          },
          "trajectory": {
            "type": "string",
            "title": "Trajectory",
            "description": "Observed direction of activity."
          }
        },
        "type": "object",
        "required": [
          "observed_at",
          "evidence_count",
          "source_type_count",
          "trajectory"
        ],
        "title": "PrivateFeedObservation"
      },
      "PrivateFeedResponse": {
        "properties": {
          "feed": {
            "$ref": "#/components/schemas/PrivateFeedSummary"
          },
          "generated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Generated At"
          },
          "lookback_days": {
            "type": "integer",
            "title": "Lookback Days"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PrivateFeedItem"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "feed",
          "generated_at",
          "lookback_days",
          "items"
        ],
        "title": "PrivateFeedResponse"
      },
      "PrivateFeedSummary": {
        "properties": {
          "slug": {
            "type": "string",
            "title": "Slug",
            "description": "Stable private-feed identifier."
          },
          "label": {
            "type": "string",
            "title": "Label",
            "description": "Human-readable private-feed label."
          },
          "facets": {
            "items": {
              "$ref": "#/components/schemas/PrivateFeedFacet"
            },
            "type": "array",
            "title": "Facets",
            "description": "Available feed facets."
          },
          "presentation_source": {
            "type": "string",
            "enum": [
              "curated",
              "breakout"
            ],
            "title": "Presentation Source",
            "description": "Content source used to present this feed."
          },
          "breakout_vertical": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Breakout Vertical",
            "description": "Breakout vertical used when this feed presents Breakout content."
          },
          "available_item_kinds": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "enum": [
                    "evidence",
                    "story",
                    "theme",
                    "trend",
                    "entity"
                  ]
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Available Item Kinds",
            "description": "Item types this feed offers when it uses a narrower set of types."
          }
        },
        "type": "object",
        "required": [
          "slug",
          "label",
          "facets",
          "presentation_source"
        ],
        "title": "PrivateFeedSummary"
      },
      "ProductFacetSummary": {
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/FacetKind",
            "description": "What kind of statement this facet is."
          },
          "text": {
            "type": "string",
            "title": "Text",
            "description": "The facet's text."
          },
          "confidence": {
            "type": "number",
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Confidence",
            "description": "Confidence in this facet, from 0 to 1."
          },
          "evidence_grade": {
            "$ref": "#/components/schemas/EvidenceGrade",
            "description": "Strength of support behind this facet."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "kind",
          "text",
          "confidence",
          "evidence_grade"
        ],
        "title": "ProductFacetSummary",
        "description": "A minimal view of the product facet behind one score contribution."
      },
      "ProductInfo": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name",
            "description": "The name of the product",
            "examples": [
              "Boy Brow"
            ]
          },
          "tier": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "primary",
                  "secondary"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Tier",
            "description": "Relationship to the business: primary is its main goods or services; secondary is complementary or incidental offerings outside its main business. Omitted when website evidence is insufficient. Several or all products can be primary; this is not a popularity ranking."
          },
          "category": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Category",
            "description": "The category or type of the product",
            "examples": [
              "Brows"
            ]
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description",
            "description": "Description of the product",
            "examples": [
              "A brushable, buildable brow gel that shapes and fills brows."
            ]
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Url",
            "description": "URL to the product page",
            "examples": [
              "https://www.glossier.com/products/boy-brow"
            ]
          },
          "image_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Image Url",
            "description": "URL of the product's primary image, if available.",
            "examples": [
              "https://www.glossier.com/cdn/images/boy-brow.jpg"
            ]
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "ProductInfo",
        "description": "Product information from brand website."
      },
      "PublicFeedFacet": {
        "properties": {
          "slug": {
            "type": "string",
            "minLength": 1,
            "title": "Slug"
          },
          "label": {
            "type": "string",
            "minLength": 1,
            "title": "Label"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "slug",
          "label"
        ],
        "title": "PublicFeedFacet"
      },
      "RadarFacetsResponse": {
        "properties": {
          "beta": {
            "type": "string",
            "title": "Beta",
            "description": "Beta status caveat.",
            "default": "Beta: response shapes may change and this surface may converge with /v2/trends."
          },
          "types": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Types",
            "description": "Item types for the type filter."
          },
          "programs": {
            "items": {
              "$ref": "#/components/schemas/FacetValue"
            },
            "type": "array",
            "title": "Programs",
            "description": "Available market catalogs."
          },
          "lifecycle_states": {
            "items": {
              "$ref": "#/components/schemas/FacetValue"
            },
            "type": "array",
            "title": "Lifecycle States",
            "description": "Lifecycle values."
          },
          "personas": {
            "items": {
              "$ref": "#/components/schemas/FacetValue"
            },
            "type": "array",
            "title": "Personas",
            "description": "Audience persona keys."
          },
          "brand_safety": {
            "items": {
              "$ref": "#/components/schemas/FacetValue"
            },
            "type": "array",
            "title": "Brand Safety",
            "description": "Brand-safety values."
          },
          "sorts": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Sorts",
            "description": "Valid sort values for list calls."
          }
        },
        "type": "object",
        "required": [
          "types",
          "programs",
          "lifecycle_states",
          "personas",
          "brand_safety",
          "sorts"
        ],
        "title": "RadarFacetsResponse",
        "description": "Legal filter vocabularies — filters are exact-match, so callers\nneed a way to learn valid values instead of guessing."
      },
      "RadarItem": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id",
            "description": "Stable item identifier."
          },
          "type": {
            "type": "string",
            "enum": [
              "trend_moment",
              "topic",
              "entity_breakout"
            ],
            "title": "Type",
            "description": "trend_moment: a participatory trend moment. topic: a durable subject area. entity_breakout: a product or brand gaining attention."
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Human-readable card title."
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description",
            "description": "One-sentence summary of what the card covers."
          },
          "insight": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Insight",
            "description": "Analyst note on what is driving this right now."
          },
          "how_to_act": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "How To Act",
            "description": "Suggested content, product, or campaign activation angle."
          },
          "brand_safety": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Brand Safety",
            "description": "Brand-safety assessment: safe, caution, unsafe."
          },
          "lifecycle_state": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Lifecycle State",
            "description": "Where the card sits in its lifecycle: emerging, rising, peaking, steady, or declining. Null when comparable search evidence is unavailable."
          },
          "momentum_ratio": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Momentum Ratio",
            "description": "Recent activity relative to the card's comparable search baseline."
          },
          "value_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Value Score",
            "description": "Composite quality/opportunity score."
          },
          "stats": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Stats",
            "description": "Live evaluation stats: video and creator counts, freshness, audience and format composition, publishing activity, and the collection scope in which supporting videos were observed. videos_found counts all supporting videos. measurement_size counts unique supporting videos independently found by scheduled core searches and is null when attribution is unavailable. panel_momentum describes evidence coverage and rates from comparable search windows. On creator-anchored topics, item detail may also include creator_anchor.attention_timeline with timestamped native play or view counts and their average hourly gain between observations. Optional practice_evidence describes known creators in dated TikTok examples, the observation and baseline periods, the latest post date, and whether the evidence supports a change in creator share. Optional topic_kind distinguishes a concrete item, a practice, a creator format or a conversation. Topic detail may include topic_observations on items, behaviors, stated situations and reactions. Each observation links to a creator's post and an exact quotation. Optional presentation_formats list caption-based format names and their evidence_basis: caption_label, caption_description, or mixed. Optional creator_anchor describes the post that drew early attention, how its engagement compared with similar posts, and how many additional videos and creators search verified. Its opportunity field explains the evidence used to prioritize the topic for review. Optional examples include the video URL, caption, creator, views, published_at, and cover_url. Creator examples with a native count identify the unit of views as plays or views in reach_metric. Use cover_url directly while it is valid. It is null when no image is available. TikTok videos carry a tiktok_id; videos from other platforms carry a platform and source_key. Topic and entity examples are ranked by recency, video popularity and available creator performance, with at most one video per account. For creator-anchored topics, accounts with the same verified creator share one slot across platforms. Item detail includes additional_examples when the topic has more verified video evidence, including posts from the same creator on other platforms and earlier comparable posts. recent_examples lists up to six videos published within recent_examples_window_days, ordered by recorded views or plays from highest to lowest, with newer videos first when views are equal. Videos without a valid view count follow videos with known counts. The same video fields are included. An empty list means no recent examples are available. Optional activity.catch_corrected (version cpf-v1) corrects weekly posts for how likely our searches were to find them. Lists, search and item detail carry its version, estimable, and reason (when not estimable). Item detail adds weekly arrays from start_week: observed (videos found), a range from estimate (posts our searches can reach) to estimate_with_quiet (also counting rarely shown videos), low and high (an 80% sampling band), and catch_chance; null weeks can't be estimated, and the last still_found_weeks weeks are still being found."
          },
          "personas": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Personas",
            "description": "Audience personas this card serves, with strength."
          },
          "program": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Program",
            "description": "Market catalog this item belongs to."
          },
          "first_seen": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "First Seen",
            "description": "When this item first appeared on the radar."
          },
          "last_updated": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Updated",
            "description": "When this item's stats were last refreshed."
          },
          "archived": {
            "type": "boolean",
            "title": "Archived",
            "description": "True when the item is no longer tracked; archived items are excluded from lists and search.",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "id",
          "type",
          "name"
        ],
        "title": "RadarItem",
        "description": "One card: a named slice of cultural activity with its live stats."
      },
      "RadarItemResponse": {
        "properties": {
          "beta": {
            "type": "string",
            "title": "Beta",
            "description": "Beta status caveat.",
            "default": "Beta: response shapes may change and this surface may converge with /v2/trends."
          },
          "item": {
            "$ref": "#/components/schemas/RadarItem",
            "description": "The requested item with live stats."
          }
        },
        "type": "object",
        "required": [
          "item"
        ],
        "title": "RadarItemResponse"
      },
      "RadarListResponse": {
        "properties": {
          "beta": {
            "type": "string",
            "title": "Beta",
            "description": "Beta status caveat.",
            "default": "Beta: response shapes may change and this surface may converge with /v2/trends."
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/RadarItem"
            },
            "type": "array",
            "title": "Items",
            "description": "Items matching the query."
          },
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total",
            "description": "Total items matching the filters, across all pages."
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "RadarListResponse"
      },
      "RadarSearchInput": {
        "properties": {
          "query": {
            "type": "string",
            "maxLength": 500,
            "minLength": 2,
            "title": "Query",
            "description": "Natural-language description of the trend, topic, or audience."
          },
          "limit": {
            "type": "integer",
            "maximum": 50.0,
            "minimum": 1.0,
            "title": "Limit",
            "default": 10
          },
          "card_type": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "trend_moment",
                  "topic",
                  "entity_breakout"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Card Type",
            "description": "Restrict results to one item type."
          },
          "program": {
            "type": "string",
            "const": "general_market",
            "title": "Program",
            "description": "Production market catalog searched for results.",
            "default": "general_market"
          },
          "lifecycle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Lifecycle",
            "description": "Restrict results to one lifecycle state."
          },
          "brand_safety": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Brand Safety",
            "description": "Restrict results by brand-safety assessment."
          },
          "entity_type": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "brand",
                  "product",
                  "retailer"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Entity Type",
            "description": "Restrict brand, product, and retailer items to one class. Topics and trends are unaffected."
          }
        },
        "type": "object",
        "required": [
          "query"
        ],
        "title": "RadarSearchInput"
      },
      "RadarSearchResponse": {
        "properties": {
          "beta": {
            "type": "string",
            "title": "Beta",
            "description": "Beta status caveat.",
            "default": "Beta: response shapes may change and this surface may converge with /v2/trends."
          },
          "results": {
            "items": {
              "$ref": "#/components/schemas/RadarSearchResult"
            },
            "type": "array",
            "title": "Results"
          }
        },
        "type": "object",
        "required": [
          "results"
        ],
        "title": "RadarSearchResponse"
      },
      "RadarSearchResult": {
        "properties": {
          "item": {
            "$ref": "#/components/schemas/RadarItem"
          },
          "match_score": {
            "type": "number",
            "title": "Match Score",
            "description": "Semantic match strength for the query."
          }
        },
        "type": "object",
        "required": [
          "item",
          "match_score"
        ],
        "title": "RadarSearchResult"
      },
      "RelativeEngagementMetrics": {
        "properties": {
          "benchmark_basis": {
            "$ref": "#/components/schemas/RelativeMetricBenchmarkBasis",
            "description": "Public explanation of the cohort used for engagement metrics."
          },
          "avg_views": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RelativeMetricSignal"
              },
              {
                "type": "null"
              }
            ],
            "description": "Relative benchmark for average views."
          },
          "avg_engagement_rate": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RelativeMetricSignal"
              },
              {
                "type": "null"
              }
            ],
            "description": "Relative benchmark for average engagement rate."
          }
        },
        "type": "object",
        "required": [
          "benchmark_basis"
        ],
        "title": "RelativeEngagementMetrics",
        "description": "Relative benchmark output for engagement metrics."
      },
      "RelativeMetricBenchmarkBasis": {
        "properties": {
          "platform": {
            "type": "string",
            "title": "Platform",
            "description": "Platform used for the benchmark cohort.",
            "examples": [
              "youtube",
              "instagram"
            ]
          },
          "follower_bucket_id": {
            "type": "string",
            "title": "Follower Bucket Id",
            "description": "Follower bucket identifier used for the benchmark cohort.",
            "examples": [
              "50k_100k",
              "100k_300k"
            ]
          },
          "specificity": {
            "type": "string",
            "enum": [
              "follower_bucket",
              "follower_bucket_content_category"
            ],
            "title": "Specificity",
            "description": "How specific the benchmark cohort was."
          },
          "benchmark_date": {
            "type": "string",
            "title": "Benchmark Date",
            "description": "Date the benchmark snapshot was computed.",
            "examples": [
              "2026-03-17"
            ]
          },
          "content_category": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RelativeMetricContentCategory"
              },
              {
                "type": "null"
              }
            ],
            "description": "Content category used for the benchmark cohort when a category-specific comparison was available."
          }
        },
        "type": "object",
        "required": [
          "platform",
          "follower_bucket_id",
          "specificity",
          "benchmark_date"
        ],
        "title": "RelativeMetricBenchmarkBasis",
        "description": "Public explanation of which peer cohort powered a benchmark."
      },
      "RelativeMetricContentCategory": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id",
            "description": "Category identifier from the creator taxonomy.",
            "examples": [
              "sports",
              "nfl",
              "beauty"
            ]
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Human-readable category name.",
            "examples": [
              "Sports",
              "NFL",
              "Beauty"
            ]
          }
        },
        "type": "object",
        "required": [
          "id",
          "name"
        ],
        "title": "RelativeMetricContentCategory",
        "description": "Content category actually used in a public benchmark basis."
      },
      "RelativeMetricSignal": {
        "properties": {
          "band": {
            "type": "string",
            "enum": [
              "bottom_25",
              "mid_50",
              "top_25"
            ],
            "title": "Band",
            "description": "Coarse benchmark band relative to similar creators."
          }
        },
        "type": "object",
        "required": [
          "band"
        ],
        "title": "RelativeMetricSignal",
        "description": "Public-facing benchmark summary for a single metric."
      },
      "RelativeMetrics": {
        "properties": {
          "engagement": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RelativeEngagementMetrics"
              },
              {
                "type": "null"
              }
            ],
            "description": "Relative benchmark output for engagement metrics. Only present when benchmarks were available for the channel and engagement metrics."
          }
        },
        "type": "object",
        "title": "RelativeMetrics",
        "description": "Public benchmark summaries relative to similar creators."
      },
      "ResearchBudgetReceipt": {
        "properties": {
          "maximum_source_scope_reviews": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Maximum Source Scope Reviews"
          },
          "new_source_scope_reviews": {
            "type": "integer",
            "minimum": 0.0,
            "title": "New Source Scope Reviews",
            "default": 0
          },
          "new_review_calls": {
            "type": "integer",
            "minimum": 0.0,
            "title": "New Review Calls",
            "default": 0
          },
          "new_search_requests": {
            "type": "integer",
            "minimum": 0.0,
            "title": "New Search Requests",
            "default": 0
          },
          "new_listing_requests": {
            "type": "integer",
            "minimum": 0.0,
            "title": "New Listing Requests",
            "default": 0
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "maximum_source_scope_reviews"
        ],
        "title": "ResearchBudgetReceipt"
      },
      "ResearchCollectionSummary": {
        "properties": {
          "search_requests": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Search Requests"
          },
          "listing_requests": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Listing Requests"
          },
          "failed_search_requests": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Failed Search Requests"
          },
          "failed_listing_requests": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Failed Listing Requests"
          },
          "skipped_listing_attempts": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Skipped Listing Attempts"
          },
          "stop_reasons": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Stop Reasons"
          },
          "search_limits": {
            "$ref": "#/components/schemas/DiscoverSearchPolicy"
          },
          "listing_limits": {
            "$ref": "#/components/schemas/DiscoverCollectionPolicy"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "search_requests",
          "listing_requests",
          "failed_search_requests",
          "failed_listing_requests",
          "skipped_listing_attempts",
          "stop_reasons",
          "search_limits",
          "listing_limits"
        ],
        "title": "ResearchCollectionSummary"
      },
      "ResearchCounts": {
        "properties": {
          "retrieved": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Retrieved"
          },
          "accepted": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Accepted"
          },
          "rejected": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Rejected"
          },
          "unresolved": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Unresolved"
          },
          "unassessed": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Unassessed"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "retrieved",
          "accepted",
          "rejected",
          "unresolved",
          "unassessed"
        ],
        "title": "ResearchCounts"
      },
      "ResearchGraphBucket": {
        "properties": {
          "start": {
            "type": "string",
            "format": "date-time",
            "title": "Start"
          },
          "end": {
            "type": "string",
            "format": "date-time",
            "title": "End"
          },
          "counts": {
            "$ref": "#/components/schemas/ResearchCounts"
          },
          "creator_count": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Creator Count"
          },
          "accepted_creator_count": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Accepted Creator Count"
          },
          "missing_creator_sources": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Missing Creator Sources"
          },
          "partial": {
            "type": "boolean",
            "title": "Partial"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "start",
          "end",
          "counts",
          "creator_count",
          "accepted_creator_count",
          "missing_creator_sources",
          "partial"
        ],
        "title": "ResearchGraphBucket"
      },
      "ResearchHistory": {
        "properties": {
          "as_of": {
            "type": "string",
            "format": "date-time",
            "title": "As Of"
          },
          "scope": {
            "type": "string",
            "const": "current_research_history",
            "title": "Scope",
            "default": "current_research_history"
          },
          "attempts": {
            "items": {
              "$ref": "#/components/schemas/ResearchHistoryEntry"
            },
            "type": "array",
            "maxItems": 20,
            "title": "Attempts"
          },
          "has_more": {
            "type": "boolean",
            "title": "Has More",
            "default": false
          },
          "latest_completed": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CandidateResearchSummary"
              },
              {
                "type": "null"
              }
            ]
          },
          "selected_report_id": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Selected Report Id"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "as_of",
          "attempts"
        ],
        "title": "ResearchHistory"
      },
      "ResearchHistoryEntry": {
        "properties": {
          "attempt_id": {
            "type": "string",
            "minLength": 1,
            "title": "Attempt Id"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "finished_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Finished At"
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "running",
              "completed",
              "failed",
              "uncertain"
            ],
            "title": "Status"
          },
          "origin": {
            "type": "string",
            "enum": [
              "operator",
              "pipeline"
            ],
            "title": "Origin"
          },
          "report_id": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Report Id"
          },
          "outcome": {
            "type": "string",
            "enum": [
              "results_saved",
              "no_results",
              "incomplete",
              "in_progress"
            ],
            "title": "Outcome"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "attempt_id",
          "created_at",
          "finished_at",
          "status",
          "origin",
          "outcome"
        ],
        "title": "ResearchHistoryEntry"
      },
      "ResearchScopeSummary": {
        "properties": {
          "role": {
            "type": "string",
            "enum": [
              "direct",
              "broader_context"
            ],
            "title": "Role"
          },
          "definition": {
            "$ref": "#/components/schemas/TopicDefinition"
          },
          "definition_fingerprint": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$",
            "title": "Definition Fingerprint"
          },
          "screening_policy": {
            "$ref": "#/components/schemas/ScreeningPolicy"
          },
          "relationship": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Relationship"
          },
          "totals": {
            "$ref": "#/components/schemas/ResearchCounts"
          },
          "creator_count": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Creator Count"
          },
          "accepted_creator_count": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Accepted Creator Count"
          },
          "missing_creator_sources": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Missing Creator Sources"
          },
          "recent_buckets": {
            "items": {
              "$ref": "#/components/schemas/ResearchGraphBucket"
            },
            "type": "array",
            "maxItems": 8,
            "title": "Recent Buckets"
          },
          "unknown_dates": {
            "$ref": "#/components/schemas/ResearchCounts"
          },
          "future_dates": {
            "$ref": "#/components/schemas/ResearchCounts"
          },
          "inferred_dates": {
            "$ref": "#/components/schemas/ResearchCounts"
          },
          "unassessed_reasons": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Unassessed Reasons"
          },
          "review_budget_skipped": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Review Budget Skipped"
          },
          "binning": {
            "type": "string",
            "enum": [
              "day",
              "week",
              "month"
            ],
            "title": "Binning"
          },
          "as_of": {
            "type": "string",
            "format": "date-time",
            "title": "As Of"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "role",
          "definition",
          "definition_fingerprint",
          "screening_policy",
          "relationship",
          "totals",
          "creator_count",
          "accepted_creator_count",
          "missing_creator_sources",
          "recent_buckets",
          "unknown_dates",
          "future_dates",
          "inferred_dates",
          "unassessed_reasons",
          "review_budget_skipped",
          "binning",
          "as_of"
        ],
        "title": "ResearchScopeSummary"
      },
      "ResponseCounts": {
        "properties": {
          "total": {
            "type": "integer",
            "title": "Total",
            "description": "Total number of items in the response (e.g., len(trends))."
          },
          "by_scope": {
            "$ref": "#/components/schemas/ContentScopeCounts",
            "description": "Breakdown by ContentScope for the returned items."
          }
        },
        "type": "object",
        "required": [
          "total",
          "by_scope"
        ],
        "title": "ResponseCounts",
        "description": "Top-level count diagnostics for the response payload.\n- 'total' MUST equal the number of items returned in this endpoint's main list.\n- 'by_scope' breaks down that same set by ContentScope."
      },
      "ResponseFormat": {
        "type": "string",
        "enum": [
          "json",
          "text"
        ],
        "title": "ResponseFormat",
        "description": "Response format options for brand product research."
      },
      "ResponseMeta": {
        "properties": {
          "generated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Generated At",
            "description": "UTC timestamp when this response was generated"
          },
          "industries": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Industries",
            "description": "Resolved industry labels, when applicable"
          },
          "continuation_token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Continuation Token",
            "description": "A token to retrieve the next part of the result (e.g., citations)."
          },
          "counts": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ResponseCounts"
              },
              {
                "type": "null"
              }
            ],
            "description": "Item counts and scope breakdown (basic and debug modes)"
          },
          "source_filters": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SourceFilters"
              },
              {
                "type": "null"
              }
            ],
            "description": "Applied source filters (basic and debug modes)"
          },
          "debug_info": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DebugInfo"
              },
              {
                "type": "null"
              }
            ],
            "description": "Development diagnostics (debug mode only)"
          }
        },
        "type": "object",
        "required": [
          "generated_at"
        ],
        "title": "ResponseMeta",
        "description": "Response-level metadata (flat and endpoint-agnostic).\n\nProvenance (always present):\n  - generated_at, time_window, industries\n\nDiagnostics (gated by metadata_mode):\n  - counts: ResponseCounts          [included when metadata_mode in {'basic','debug'}]\n  - source_filters: SourceFilters   [included when metadata_mode in {'basic','debug'}]\n  - debug_info: DebugInfo           [included when metadata_mode == 'debug']\n\nNotes:\n  - 'counts.total' SHOULD equal the length of this endpoint's primary items array.\n  - 'by_scope' counts are based on ContentScope classification of returned items.\n  - ContentScope is about applicability (output classification), not where data\n    was sourced."
      },
      "ResponseMetaV3": {
        "properties": {
          "generated_at": {
            "type": "string",
            "title": "Generated At"
          }
        },
        "type": "object",
        "title": "ResponseMetaV3"
      },
      "ScopeConfig": {
        "properties": {
          "from_time": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "From Time",
            "description": "The start of the time window for the scan. This can be an absolute timestamp in ISO 8601 format (e.g., '2025-08-11T00:00:00Z'), or a relative duration string from the current time (e.g., '7d' for 7 days ago, '24h' for 24 hours ago, '2w' for 2 weeks ago).",
            "default": "90d"
          },
          "to_time": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "To Time",
            "description": "The end of the time window for the scan. This can be the string 'now', an absolute timestamp in ISO 8601 format (e.g., '2025-08-11T00:00:00Z'), or a relative duration string from the current time (e.g., '24h' for 24 hours ago). A relative duration for `to_time` should be more recent than `from_time`.",
            "default": "now"
          },
          "platforms": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "enum": [
                    "tiktok",
                    "instagram",
                    "youtube",
                    "twitch",
                    "reddit",
                    "x",
                    "discord",
                    "facebook",
                    "snapchat",
                    "pinterest",
                    "forums",
                    "blogs",
                    "reviews"
                  ]
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Platforms",
            "description": "Platforms to scan and include in results (e.g., Reddit, blogs, forums)"
          }
        },
        "type": "object",
        "title": "ScopeConfig",
        "description": "Where/when to look for signals and which platforms to use.\nThese are query filters (not brand metadata).\n\nTime window:\n  - Use 'from_time' (start) and 'to_time' (end).\n  - Accepts ISO8601 UTC or relative durations like '7d', '24h', '2w'.\n  - If only 'from_time' is relative, window is [now - duration, now].\n  - 'to_time' may be 'now' (default), ISO8601 UTC, or a relative duration\n    interpreted as now - duration.\n  - After normalization the service validates start < end.\n\nPlatforms:\n  - Use 'platforms' to specify which platforms to both scan AND return\n    (e.g., reddit, blogs, forums).\n  - This controls both the data sources analyzed and the results returned."
      },
      "ScreeningPolicy": {
        "additionalProperties": true,
        "type": "object"
      },
      "SearchMode": {
        "type": "string",
        "enum": [
          "vector",
          "keyword",
          "hybrid"
        ],
        "title": "SearchMode",
        "description": "Search mode for topic search."
      },
      "SearchQueryContext": {
        "properties": {
          "source": {
            "type": "string",
            "title": "Source",
            "description": "Optional source hint for query rewriting. Currently only 'kalshi' changes search behavior."
          },
          "series_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Series Title",
            "description": "Source series/event family title for broader context."
          },
          "market_subtitle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Market Subtitle",
            "description": "Source subtitle, often containing compact participant codes."
          },
          "competition": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Competition",
            "description": "Source competition or league label, e.g. 'Pro Basketball (M)'."
          },
          "competition_scope": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Competition Scope",
            "description": "Source event scope such as Game, Future, or Tournament."
          },
          "contract_tickers": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Contract Tickers",
            "description": "Structured contract tickers associated with the source market."
          },
          "contract_titles": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Contract Titles",
            "description": "Optional contract display titles from the source market."
          },
          "contract_subtitles": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Contract Subtitles",
            "description": "Optional contract subtitles from the source market."
          }
        },
        "type": "object",
        "required": [
          "source"
        ],
        "title": "SearchQueryContext",
        "description": "Optional caller context for source-aware search planning.\n\nToday this is used for Kalshi-originated queries, where the visible query text\nis often too terse to retrieve the right breakout topics without extra market\nmetadata. Unknown sources are accepted but ignored by the current API logic."
      },
      "SearchTopicsRequest": {
        "properties": {
          "query": {
            "type": "string",
            "minLength": 1,
            "title": "Query",
            "description": "Search query text"
          },
          "feed": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Feed",
            "description": "Entitled private feed whose Breakout topics should be searched."
          },
          "vertical": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Vertical",
            "description": "Filter by vertical (e.g., 'sports')"
          },
          "mode": {
            "$ref": "#/components/schemas/SearchMode",
            "description": "Search mode: vector, keyword, hybrid",
            "default": "hybrid"
          },
          "surface_mode": {
            "$ref": "#/components/schemas/ListSurfaceMode",
            "description": "Return raw topics or deduped derived story surfaces",
            "default": "topic"
          },
          "limit": {
            "type": "integer",
            "maximum": 100.0,
            "minimum": 1.0,
            "title": "Limit",
            "description": "Maximum number of results. Requesting more than 20 results requires a credits-based plan.",
            "default": 20
          },
          "include": {
            "items": {
              "type": "string",
              "enum": [
                "citations",
                "entities"
              ]
            },
            "type": "array",
            "title": "Include",
            "description": "Optional expansions to include in the response. Allowed values: citations, entities. Example: [\"citations\", \"entities\"]"
          },
          "include_citations": {
            "type": "boolean",
            "title": "Include Citations",
            "description": "Deprecated: use include=[\"citations\",\"entities\"] instead.",
            "default": false
          },
          "query_context": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SearchQueryContext"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional source-aware context for query rewriting. Useful for terse external prompts such as Kalshi markets."
          },
          "kalshi_event_url": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 500
              },
              {
                "type": "null"
              }
            ],
            "title": "Kalshi Event Url",
            "description": "Optional Kalshi event URL or ticker. When provided, the server resolves event metadata and uses it for query planning. Mutually exclusive with query_context."
          },
          "citation_sources": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/CitationSourceCategory"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Citation Sources",
            "description": "Restrict returned citations to these source categories (news, reddit, twitter). Omit for all sources. Only applies when surface_mode=topic."
          },
          "llm_relevance": {
            "type": "boolean",
            "title": "Llm Relevance",
            "description": "Enable enhanced relevance scoring for search results. When true, results are scored and re-ranked by how well they match the query intent.",
            "default": true
          }
        },
        "type": "object",
        "required": [
          "query"
        ],
        "title": "SearchTopicsRequest",
        "description": "Request for searching breakout topics."
      },
      "SearchTopicsResponse": {
        "properties": {
          "surface_mode": {
            "$ref": "#/components/schemas/ListSurfaceMode",
            "description": "Whether search returned raw topics or derived story surfaces",
            "default": "topic"
          },
          "topics": {
            "items": {
              "$ref": "#/components/schemas/BreakoutTopicResponse"
            },
            "type": "array",
            "title": "Topics",
            "description": "Matching topics when surface_mode=topic"
          },
          "stories": {
            "items": {
              "$ref": "#/components/schemas/TopicStoryViewResponse"
            },
            "type": "array",
            "title": "Stories",
            "description": "Matching story surfaces when surface_mode=story"
          },
          "search_mode": {
            "type": "string",
            "title": "Search Mode",
            "description": "Search mode used"
          }
        },
        "type": "object",
        "required": [
          "search_mode"
        ],
        "title": "SearchTopicsResponse",
        "description": "Response for searching breakout topics."
      },
      "SimilarTopicsRequest": {
        "properties": {
          "topic_id": {
            "type": "string",
            "title": "Topic Id",
            "description": "Topic UUID returned by `GET /v1/topics/breakout` or `POST /v1/topics/breakout/search`."
          },
          "feed": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Feed",
            "description": "Entitled private feed that returned the source topic."
          },
          "limit": {
            "type": "integer",
            "maximum": 50.0,
            "minimum": 1.0,
            "title": "Limit",
            "description": "Maximum results",
            "default": 10
          },
          "include": {
            "items": {
              "type": "string",
              "enum": [
                "citations",
                "entities"
              ]
            },
            "type": "array",
            "title": "Include",
            "description": "Optional expansions to include in the response. Allowed values: citations, entities. Example: [\"citations\", \"entities\"]"
          },
          "include_citations": {
            "type": "boolean",
            "title": "Include Citations",
            "description": "Deprecated: use include=[\"citations\",\"entities\"] instead.",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "topic_id"
        ],
        "title": "SimilarTopicsRequest",
        "description": "Request for finding similar topics."
      },
      "SimilarTopicsResponse": {
        "properties": {
          "source_topic": {
            "$ref": "#/components/schemas/BreakoutTopicResponse",
            "description": "The source topic"
          },
          "similar_topics": {
            "items": {
              "$ref": "#/components/schemas/BreakoutTopicResponse"
            },
            "type": "array",
            "title": "Similar Topics",
            "description": "Similar topics sorted by similarity"
          }
        },
        "type": "object",
        "required": [
          "source_topic",
          "similar_topics"
        ],
        "title": "SimilarTopicsResponse",
        "description": "Response for similar topics."
      },
      "SimilarTrendsResponse": {
        "properties": {
          "results": {
            "items": {
              "$ref": "#/components/schemas/TrendMatchResult"
            },
            "type": "array",
            "title": "Results",
            "description": "Similar trends ranked by similarity"
          },
          "source_trend_id": {
            "type": "string",
            "title": "Source Trend Id",
            "description": "The trend these are similar to"
          }
        },
        "type": "object",
        "required": [
          "results",
          "source_trend_id"
        ],
        "title": "SimilarTrendsResponse",
        "description": "Response for GET /v2/trends/{id}/similar."
      },
      "SimpleFeatureData": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "balance": {
            "type": "number",
            "title": "Balance"
          },
          "usage": {
            "type": "number",
            "title": "Usage"
          },
          "included_usage": {
            "type": "number",
            "title": "Included Usage"
          },
          "next_reset_at": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Reset At",
            "description": "Aggregate reset in UTC milliseconds. May be null for mixed schedules; inspect breakdown for individual resets."
          },
          "interval": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Interval",
            "description": "Reset cadence; multiple indicates combined credit schedules."
          },
          "interval_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Interval Count",
            "description": "Number of cadence units between resets, when known."
          },
          "breakdown": {
            "items": {
              "$ref": "#/components/schemas/FeatureBreakdown"
            },
            "type": "array",
            "title": "Breakdown",
            "description": "Current allowances grouped by credit schedule. These balances do not change with the requested history range. No main schedule is implied."
          }
        },
        "type": "object",
        "required": [
          "name",
          "balance",
          "usage",
          "included_usage"
        ],
        "title": "SimpleFeatureData"
      },
      "SimplifiedPartnerSearchResponse": {
        "properties": {
          "results": {
            "items": {
              "$ref": "#/components/schemas/SimplifiedPartnerSearchResult"
            },
            "type": "array",
            "title": "Results",
            "description": "List of partner content results"
          },
          "total_count": {
            "type": "integer",
            "title": "Total Count",
            "description": "Number of results in the current page (not a grand total)"
          },
          "industry_category": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Industry Category",
            "description": "The industry category searched"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor",
            "description": "Cursor for fetching the next page of results"
          },
          "has_more": {
            "type": "boolean",
            "title": "Has More",
            "description": "Whether there are more results available",
            "default": false
          },
          "next_sync_token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Sync Token",
            "description": "Token for starting the next sponsor activity request. Save it after processing the results from this response that you intend to keep. Returned only for activity searches."
          }
        },
        "type": "object",
        "required": [
          "results",
          "total_count"
        ],
        "title": "SimplifiedPartnerSearchResponse",
        "description": "Response for simplified partner search by industry"
      },
      "SimplifiedPartnerSearchResult": {
        "properties": {
          "partner_name": {
            "type": "string",
            "title": "Partner Name",
            "description": "Name of the partner/sponsor entity",
            "example": "Microsoft"
          },
          "sponsor_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sponsor Id",
            "description": "Canonical identifier for this sponsor. Store it and use it for later sponsor-specific searches, saved filters, and deduplication. Results on this endpoint remain grouped by sponsor name, so two results may share one sponsor_id. It may be null when unavailable.",
            "example": "br_0123456789abcdef"
          },
          "sponsor_domain": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sponsor Domain",
            "description": "Canonical apex domain associated with the sponsor when available",
            "example": "microsoft.com"
          },
          "sponsor_linkedin_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sponsor Linkedin Url",
            "description": "LinkedIn company profile URL for the sponsor when available",
            "example": "https://www.linkedin.com/company/microsoft"
          },
          "sponsor_description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sponsor Description",
            "description": "Brief description of the sponsor brand when available"
          },
          "total_ads_found": {
            "type": "integer",
            "title": "Total Ads Found",
            "description": "Total number of sponsored content pieces found across all publications",
            "default": 1,
            "example": 5
          },
          "sponsorships_in_window": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sponsorships In Window",
            "description": "Number of sponsorships for this sponsor in the requested activity window. Returned only for activity requests."
          },
          "most_recent_ad": {
            "$ref": "#/components/schemas/MostRecentAd"
          }
        },
        "type": "object",
        "required": [
          "partner_name",
          "most_recent_ad"
        ],
        "title": "SimplifiedPartnerSearchResult",
        "description": "Partner search result showing aggregated sponsorship data"
      },
      "SourceActivity": {
        "properties": {
          "source_url": {
            "type": "string",
            "title": "Source Url"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "platform": {
            "type": "string",
            "enum": [
              "reddit",
              "x"
            ],
            "title": "Platform"
          },
          "series": {
            "items": {
              "$ref": "#/components/schemas/SourceActivitySeries"
            },
            "type": "array",
            "minItems": 1,
            "title": "Series"
          }
        },
        "type": "object",
        "required": [
          "source_url",
          "platform",
          "series"
        ],
        "title": "SourceActivity"
      },
      "SourceActivityObservation": {
        "properties": {
          "observed_at": {
            "type": "string",
            "format": "date-time",
            "title": "Observed At",
            "description": "When the post count was observed."
          },
          "count": {
            "type": "integer",
            "maximum": 9007199254740991.0,
            "minimum": 0.0,
            "title": "Count",
            "description": "The recorded count for this post."
          }
        },
        "type": "object",
        "required": [
          "observed_at",
          "count"
        ],
        "title": "SourceActivityObservation"
      },
      "SourceActivitySeries": {
        "properties": {
          "metric": {
            "type": "string",
            "enum": [
              "replies",
              "reshares"
            ],
            "title": "Metric",
            "description": "Comments on Reddit, or replies or combined reposts and quote posts on X."
          },
          "observations": {
            "items": {
              "$ref": "#/components/schemas/SourceActivityObservation"
            },
            "type": "array",
            "maxItems": 12,
            "minItems": 1,
            "title": "Observations",
            "description": "Selected observations in time order. Missing times have no count."
          }
        },
        "type": "object",
        "required": [
          "metric",
          "observations"
        ],
        "title": "SourceActivitySeries"
      },
      "SourceFilters": {
        "properties": {
          "platforms": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Platforms"
          },
          "source_names": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Names"
          },
          "source_urls": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "maxLength": 2083,
                  "minLength": 1,
                  "format": "uri"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Urls"
          },
          "restriction": {
            "type": "string",
            "enum": [
              "none",
              "prioritize",
              "only"
            ],
            "title": "Restriction",
            "default": "none"
          }
        },
        "type": "object",
        "title": "SourceFilters"
      },
      "SponsorChannel": {
        "properties": {
          "channel_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Channel Id",
            "description": "Stable identifier for this social account. Null when the account has not been indexed yet.",
            "examples": [
              "123e4567-e89b-12d3-a456-426614174000"
            ]
          },
          "platform": {
            "type": "string",
            "title": "Platform",
            "description": "Platform the account is on (e.g. instagram, tiktok, youtube).",
            "examples": [
              "instagram"
            ]
          },
          "handle": {
            "type": "string",
            "title": "Handle",
            "description": "Account handle or channel identifier on the platform.",
            "examples": [
              "nike"
            ]
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Url",
            "description": "Public profile URL for the account when available.",
            "examples": [
              "https://www.instagram.com/nike"
            ]
          },
          "display_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Display Name",
            "description": "Public display name for the account when available.",
            "examples": [
              "Nike"
            ]
          },
          "follower_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Follower Count",
            "description": "Approximate follower or subscriber count when available.",
            "examples": [
              302000000
            ]
          }
        },
        "type": "object",
        "required": [
          "platform",
          "handle"
        ],
        "title": "SponsorChannel",
        "description": "One social account publicly associated with a sponsor."
      },
      "SponsorChannelsResponse": {
        "properties": {
          "sponsor_id": {
            "type": "string",
            "title": "Sponsor Id",
            "description": "Stable identifier for the sponsor these accounts belong to.",
            "examples": [
              "br_01hzy8k9m4qp7v2wxr3d5abcde"
            ]
          },
          "sponsor_name": {
            "type": "string",
            "title": "Sponsor Name",
            "description": "Name of the sponsor.",
            "examples": [
              "Nike"
            ]
          },
          "results": {
            "items": {
              "$ref": "#/components/schemas/SponsorChannel"
            },
            "type": "array",
            "title": "Results",
            "description": "Social accounts publicly associated with this sponsor."
          },
          "total_count": {
            "type": "integer",
            "title": "Total Count",
            "description": "Number of accounts returned on this page.",
            "examples": [
              3
            ]
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor",
            "description": "Pass as the `cursor` parameter to fetch the next page. Null on the last page."
          },
          "has_more": {
            "type": "boolean",
            "title": "Has More",
            "description": "True when more accounts are available on a following page.",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "sponsor_id",
          "sponsor_name",
          "total_count"
        ],
        "title": "SponsorChannelsResponse",
        "description": "A page of social accounts publicly associated with one sponsor."
      },
      "SponsorshipDemandInput": {
        "properties": {
          "idempotency_key": {
            "type": "string",
            "maxLength": 256,
            "minLength": 1,
            "title": "Idempotency Key"
          },
          "platforms": {
            "items": {
              "type": "string",
              "enum": [
                "instagram",
                "youtube",
                "tiktok"
              ]
            },
            "type": "array",
            "maxItems": 3,
            "minItems": 1,
            "title": "Platforms"
          },
          "publication_ids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 1000,
            "title": "Publication Ids",
            "default": []
          },
          "keywords": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 100,
            "title": "Keywords",
            "default": []
          },
          "categories": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 100,
            "title": "Categories",
            "default": []
          },
          "category_subject": {
            "type": "string",
            "enum": [
              "publication_vertical",
              "sponsor_industry"
            ],
            "title": "Category Subject",
            "default": "publication_vertical"
          },
          "unknown_category_policy": {
            "type": "string",
            "enum": [
              "report_partial",
              "bounded_recall"
            ],
            "title": "Unknown Category Policy",
            "default": "report_partial"
          },
          "recall_terms": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 100,
            "title": "Recall Terms",
            "default": []
          },
          "published_from": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Published From"
          },
          "published_until": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Published Until"
          },
          "include_undated": {
            "type": "boolean",
            "title": "Include Undated",
            "default": true
          },
          "evidence_surfaces": {
            "items": {
              "type": "string",
              "enum": [
                "canonical_text",
                "full_transcript",
                "ocr"
              ]
            },
            "type": "array",
            "title": "Evidence Surfaces",
            "default": [
              "canonical_text"
            ]
          },
          "budget": {
            "$ref": "#/components/schemas/DemandBudget"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "idempotency_key",
          "platforms",
          "budget"
        ],
        "title": "SponsorshipDemandInput"
      },
      "SponsorshipPlacement": {
        "properties": {
          "sponsor_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sponsor Id",
            "description": "Canonical identifier for this sponsor. After finding a sponsor by name or domain, use this identifier for later sponsor-specific searches, saved filters, and deduplication. It may be null when unavailable.",
            "example": "br_01hzy8k9m4qp7v2wxr3d5abcde"
          },
          "sponsor_name": {
            "type": "string",
            "title": "Sponsor Name",
            "description": "Name of the sponsor/brand",
            "example": "Microsoft"
          },
          "sponsor_domain": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sponsor Domain",
            "description": "Canonical apex domain associated with the sponsor",
            "example": "microsoft.com"
          },
          "sponsor_linkedin_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sponsor Linkedin Url",
            "description": "LinkedIn company profile URL for the sponsor",
            "example": "https://www.linkedin.com/company/microsoft"
          },
          "sponsor_description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sponsor Description",
            "description": "Brief description of the sponsor brand when available",
            "example": "Microsoft is a global technology company that develops software, cloud services, and hardware."
          },
          "sponsor_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sponsor Type",
            "description": "Legacy single-label sponsorship category for this placement (for example explicit_ad, implicit_ad, affiliate, promotion, or unknown), kept for backward compatibility. It groups several sponsorship signals into one value; for example, explicit_ad can also represent gifted content and does not prove a cash payment. Use monetization_type to see the likely deal and disclosure_tier to see the relationship evidence. This field remains available for filtering.",
            "example": "explicit_ad"
          },
          "sponsor_channel_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "format": "uuid"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sponsor Channel Ids",
            "description": "Sponsor-owned social accounts observed in this placement's evidence, given as channel_id values (the same identifiers the sponsor channels endpoints return). A placement can list zero, one, or several. Absent when no sponsor-owned account was identified for the placement.",
            "example": [
              "c0ffee00-0000-0000-0000-000000000000"
            ]
          },
          "partner_confidence": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Partner Confidence",
            "description": "Best-effort confidence that the creator-sponsor relationship is present (0-1). It is not confidence in a specific compensation mechanism or legal compliance conclusion.",
            "example": 0.92
          },
          "monetization_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Monetization Type",
            "description": "Likely type of deal: paid_partnership (paid sponsorship), affiliate (commission from attributed actions), gifted (a product, service, access, or experience was provided; cash is not implied), or unknown (the deal type could not be determined). The value is based on available content and platform signals; it does not confirm a private contract or payment. For some older records, it was translated from sponsor_type and can also be promotion, self_promotion, or merch_store. The field is omitted when it was not populated.",
            "example": "paid_partnership"
          },
          "disclosure_tier": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Disclosure Tier",
            "description": "Strongest evidence found for the creator-sponsor relationship: platform_verified (platform data identifies the named relationship), creator_disclosed (the creator's content discloses it), commercial_signal (a link, code, or similar cue supports it), or inferred (the context suggests it without a stronger signal). This field describes how the relationship was identified, not the deal type or legal compliance. For some older records, it was translated from sponsor_type. The field is omitted when it was not populated.",
            "example": "platform_verified"
          },
          "is_first_party": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Is First Party",
            "description": "True when the placement promotes the creator's own product, service, or store; false when a third-party sponsor was identified. Omitted when the counterparty could not be determined.",
            "example": false
          },
          "publication_name": {
            "type": "string",
            "title": "Publication Name",
            "description": "Name of the publication where the placement appeared",
            "example": "Cloud Weekly"
          },
          "publication_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Publication Url",
            "description": "URL of the publication",
            "example": "https://cloudweekly.substack.com"
          },
          "publication_categories": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Publication Categories",
            "description": "Categories for the publication",
            "example": [
              "technology",
              "cloud"
            ]
          },
          "publication_platform": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Publication Platform",
            "description": "Platform of the publication (e.g., substack, podcast, youtube)",
            "example": "substack"
          },
          "content_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Content Title",
            "description": "Title of the content containing the placement",
            "example": "K8s cost control tips"
          },
          "content_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Content Url",
            "description": "Canonical URL of the specific content, if available",
            "example": "https://cloudweekly.substack.com/p/k8s-cost-control"
          },
          "cover_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cover Url",
            "description": "Temporary preview image URL for this content, when available."
          },
          "published_date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Published Date",
            "description": "Publication date (YYYY-MM-DD)",
            "example": "2024-08-12"
          },
          "evidence": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AdEvidence"
              },
              {
                "type": "null"
              }
            ],
            "description": "Structured evidence for the placement (source, excerpt, transcript offset)."
          }
        },
        "type": "object",
        "required": [
          "sponsor_name",
          "publication_name"
        ],
        "title": "SponsorshipPlacement",
        "description": "One sponsor, piece of content, and publication."
      },
      "SponsorshipTrackingStatus": {
        "properties": {
          "publication_url": {
            "type": "string",
            "title": "Publication Url",
            "description": "The YouTube URL that was checked"
          },
          "channel_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Channel Name",
            "description": "Channel name if known"
          },
          "status": {
            "type": "string",
            "title": "Status",
            "description": "'active', 'pending', or 'not_tracked'"
          },
          "message": {
            "type": "string",
            "title": "Message",
            "description": "Human-readable explanation",
            "default": ""
          }
        },
        "type": "object",
        "required": [
          "publication_url",
          "status"
        ],
        "title": "SponsorshipTrackingStatus",
        "description": "Tracking status for a publication in the sponsorship pipeline."
      },
      "SponsorshipsResponse": {
        "properties": {
          "results": {
            "items": {
              "$ref": "#/components/schemas/SponsorshipPlacement"
            },
            "type": "array",
            "title": "Results",
            "description": "List of sponsorship placements. Each record connects one sponsor, piece of content, and publication. Coauthored content can appear once for each participating publication."
          },
          "total_count": {
            "type": "integer",
            "title": "Total Count",
            "description": "Number of placement records. Coauthored content can count more than once because each participating publication has its own record."
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor",
            "description": "Cursor for fetching the next page"
          },
          "has_more": {
            "type": "boolean",
            "title": "Has More",
            "description": "Whether more results are available",
            "default": false
          },
          "next_sync_token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Sync Token",
            "description": "Token for starting the next sponsorship activity request. Save it after processing the results from this response that you intend to keep. Returned only for activity searches."
          },
          "tracking_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SponsorshipTrackingStatus"
              },
              {
                "type": "null"
              }
            ],
            "description": "Tracking status for the supplied publication_url, when available. Describes that channel only, not all channels in the creator search."
          }
        },
        "type": "object",
        "required": [
          "results",
          "total_count"
        ],
        "title": "SponsorshipsResponse"
      },
      "StoryListSource": {
        "type": "string",
        "enum": [
          "auto",
          "live",
          "projection"
        ],
        "title": "StoryListSource",
        "description": "How story-mode list surfaces were sourced."
      },
      "StorySearchMatchResponse": {
        "properties": {
          "matched_topic_ids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Matched Topic Ids",
            "description": "Matched member topic ids that caused this story result to surface"
          },
          "matched_topic_count": {
            "type": "integer",
            "title": "Matched Topic Count",
            "description": "Number of matched member topics represented by this story result"
          },
          "match_sources": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Match Sources",
            "description": "Search lanes that surfaced this story result (e.g. topic, family)"
          }
        },
        "type": "object",
        "required": [
          "matched_topic_count"
        ],
        "title": "StorySearchMatchResponse",
        "description": "How a story result matched the search query."
      },
      "StorySurfaceResponse": {
        "properties": {
          "story_id": {
            "type": "string",
            "title": "Story Id",
            "description": "Stable opaque ID for this topic-seeded derived surface"
          },
          "surface_type": {
            "$ref": "#/components/schemas/StorySurfaceType",
            "description": "Resolved surface type"
          },
          "member_topic_ids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Member Topic Ids",
            "description": "Ordered topic members"
          },
          "lead_topic_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Lead Topic Id",
            "description": "Current presentation-leading topic"
          },
          "display_name": {
            "type": "string",
            "title": "Display Name",
            "description": "Display name for the surface"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description",
            "description": "Surface summary"
          },
          "story_score": {
            "type": "number",
            "title": "Story Score",
            "description": "Story-level ranking score"
          },
          "latest_signal_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Latest Signal At",
            "description": "Latest signal time across members"
          },
          "member_count": {
            "type": "integer",
            "title": "Member Count",
            "description": "Current member count"
          },
          "coherence_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Coherence Score",
            "description": "How coherent the current member set is"
          },
          "projection_refreshed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Projection Refreshed At",
            "description": "When the backing projection row was last refreshed, if cached"
          }
        },
        "type": "object",
        "required": [
          "story_id",
          "surface_type",
          "member_topic_ids",
          "display_name",
          "story_score",
          "member_count"
        ],
        "title": "StorySurfaceResponse",
        "description": "Derived story surface for a topic-seeded view."
      },
      "StorySurfaceType": {
        "type": "string",
        "enum": [
          "topic",
          "cluster",
          "timeline"
        ],
        "title": "StorySurfaceType",
        "description": "Surface type returned by the derived story view builder."
      },
      "StoryViewKind": {
        "type": "string",
        "enum": [
          "cluster",
          "story",
          "timeline"
        ],
        "title": "StoryViewKind",
        "description": "Requested derived view flavor."
      },
      "TaxonomyCategory": {
        "properties": {
          "category_id": {
            "type": "string",
            "title": "Category Id",
            "description": "Stable category slug id"
          },
          "display_name": {
            "type": "string",
            "title": "Display Name",
            "description": "Human-readable name"
          },
          "level": {
            "type": "integer",
            "title": "Level",
            "description": "Hierarchy level: 1 for L1, 2 for L2"
          },
          "parent_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Parent Id",
            "description": "Parent category id (for L2 items)"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description",
            "description": "Optional description"
          },
          "aliases": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Aliases",
            "description": "Known aliases"
          }
        },
        "type": "object",
        "required": [
          "category_id",
          "display_name",
          "level"
        ],
        "title": "TaxonomyCategory",
        "description": "A single taxonomy category item (L1 or L2)."
      },
      "TemporalStatusFilter": {
        "type": "string",
        "enum": [
          "upcoming",
          "ongoing",
          "past"
        ],
        "title": "TemporalStatusFilter",
        "description": "Filter a topic by its request-time event temporal status.\n\nOnly topics linked to a scheduled event carry a temporal status, so filtering\nby any of these values implicitly restricts results to event-linked topics."
      },
      "TopicAttentionDay": {
        "properties": {
          "day": {
            "type": "string",
            "format": "date",
            "title": "Day"
          },
          "observed_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Observed Count"
          },
          "origins": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Origins"
          },
          "discussion": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Discussion"
          },
          "amplification": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Amplification"
          },
          "by_platform": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "By Platform"
          },
          "representative_links": {
            "items": {
              "$ref": "#/components/schemas/TopicAttentionLink"
            },
            "type": "array",
            "title": "Representative Links"
          },
          "partial": {
            "type": "boolean",
            "title": "Partial"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "day",
          "observed_count",
          "origins",
          "discussion",
          "amplification",
          "by_platform",
          "representative_links",
          "partial"
        ],
        "title": "TopicAttentionDay"
      },
      "TopicAttentionLink": {
        "properties": {
          "url": {
            "type": "string",
            "title": "Url"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "platform": {
            "type": "string",
            "title": "Platform"
          },
          "publisher": {
            "type": "string",
            "title": "Publisher"
          },
          "day": {
            "type": "string",
            "format": "date",
            "title": "Day"
          },
          "role": {
            "type": "string",
            "enum": [
              "origin",
              "discussion",
              "amplification"
            ],
            "title": "Role"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "url",
          "title",
          "platform",
          "publisher",
          "day",
          "role"
        ],
        "title": "TopicAttentionLink"
      },
      "TopicAttentionSummary": {
        "properties": {
          "window_start": {
            "type": "string",
            "format": "date",
            "title": "Window Start"
          },
          "window_end": {
            "type": "string",
            "format": "date",
            "title": "Window End"
          },
          "observed_days": {
            "type": "integer",
            "title": "Observed Days"
          },
          "distinct_sources": {
            "type": "integer",
            "title": "Distinct Sources"
          },
          "distinct_publishers": {
            "type": "integer",
            "title": "Distinct Publishers"
          },
          "by_platform": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "By Platform"
          },
          "days": {
            "items": {
              "$ref": "#/components/schemas/TopicAttentionDay"
            },
            "type": "array",
            "title": "Days"
          },
          "representative_links": {
            "items": {
              "$ref": "#/components/schemas/TopicAttentionLink"
            },
            "type": "array",
            "title": "Representative Links"
          },
          "case_evidence": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/TopicAttentionLink"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Case Evidence"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "window_start",
          "window_end",
          "observed_days",
          "distinct_sources",
          "distinct_publishers",
          "by_platform",
          "days",
          "representative_links"
        ],
        "title": "TopicAttentionSummary",
        "description": "Dated, observed posts and articles from a bounded public sample."
      },
      "TopicDefinition": {
        "properties": {
          "definition": {
            "type": "string",
            "maxLength": 32000,
            "minLength": 1,
            "title": "Definition"
          },
          "include": {
            "items": {
              "type": "string",
              "minLength": 1
            },
            "type": "array",
            "title": "Include",
            "default": []
          },
          "exclude": {
            "items": {
              "type": "string",
              "minLength": 1
            },
            "type": "array",
            "title": "Exclude",
            "default": []
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "definition"
        ],
        "title": "TopicDefinition",
        "description": "A complete review predicate, independent of customer and display title."
      },
      "TopicEngagementResponse": {
        "properties": {
          "percentile_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Percentile Score",
            "description": "Peak subreddit-relative engagement (0-1). Measures how exceptional the topic's best-performing citation is within its community. 0.9 = top 10% of that subreddit's posts. Useful for finding niche topics that over-perform in their community."
          }
        },
        "type": "object",
        "title": "TopicEngagementResponse",
        "description": "Engagement scoring signals for a topic."
      },
      "TopicNarrativeContext": {
        "properties": {
          "narrative_id": {
            "type": "string",
            "title": "Narrative Id",
            "description": "Narrative UUID"
          },
          "display_name": {
            "type": "string",
            "title": "Display Name",
            "description": "Human-readable narrative name"
          },
          "member_count": {
            "type": "integer",
            "title": "Member Count",
            "description": "Number of topics in this narrative"
          },
          "arc_summary": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Arc Summary",
            "description": "Names of member topics (up to 3, ordered by discovered_at)"
          }
        },
        "type": "object",
        "required": [
          "narrative_id",
          "display_name",
          "member_count"
        ],
        "title": "TopicNarrativeContext",
        "description": "Inline narrative context on a topic in the list endpoint."
      },
      "TopicStatusFilter": {
        "type": "string",
        "enum": [
          "active",
          "all",
          "detected",
          "emerging",
          "trending",
          "declining"
        ],
        "title": "TopicStatusFilter",
        "description": "Filter options for topic status.\n\nNote: ``archived`` is intentionally absent — archived topics are always\nexcluded from browse/list surfaces, so it is not an accepted filter value."
      },
      "TopicStoryViewResponse": {
        "properties": {
          "requested_view": {
            "$ref": "#/components/schemas/StoryViewKind",
            "description": "Requested derived view"
          },
          "seed_topic": {
            "$ref": "#/components/schemas/BreakoutTopicResponse",
            "description": "Seed topic"
          },
          "surface": {
            "$ref": "#/components/schemas/StorySurfaceResponse",
            "description": "Resolved story surface"
          },
          "member_topics": {
            "items": {
              "$ref": "#/components/schemas/BreakoutTopicResponse"
            },
            "type": "array",
            "title": "Member Topics",
            "description": "Hydrated member topics in surface order"
          },
          "search_match": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StorySearchMatchResponse"
              },
              {
                "type": "null"
              }
            ],
            "description": "Search-only metadata explaining why this story matched"
          }
        },
        "type": "object",
        "required": [
          "requested_view",
          "seed_topic",
          "surface"
        ],
        "title": "TopicStoryViewResponse",
        "description": "Response for a cluster/timeline/story surface seeded by one topic."
      },
      "TopicTrendResponse": {
        "properties": {
          "momentum": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 2.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Momentum",
            "description": "Activity ratio (0.0-2.0). Compares recent signal rate to baseline. 2.0 = 2x usual activity, 1.0 = normal, 0.5 = half, 0.0 = no recent activity."
          },
          "direction": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TrendDirection"
              },
              {
                "type": "null"
              }
            ],
            "description": "Simplified trend indicator derived from momentum. 'up' (>1.3) = accelerating, 'flat' (0.7-1.3) = steady, 'down' (<0.7) = decelerating."
          }
        },
        "type": "object",
        "title": "TopicTrendResponse",
        "description": "Momentum and trend signals for a topic."
      },
      "TrendDetailResponse": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id",
            "description": "Stable trend identifier"
          },
          "title": {
            "type": "string",
            "title": "Title",
            "description": "Short name of the trend"
          },
          "summary": {
            "type": "string",
            "title": "Summary",
            "description": "1-3 sentences describing the trend"
          },
          "uses_specific_sound": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Uses Specific Sound",
            "description": "Whether the trend uses a specific recognizable sound, derived from dominant-sound evidence and signature-sound classification."
          },
          "instructions": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Instructions",
            "description": "Actionable guidance on how to participate in the trend"
          },
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Status",
            "description": "Trend status (e.g., active)"
          },
          "video_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Video Count",
            "description": "Number of video media items"
          },
          "audio_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Audio Count",
            "description": "Number of audio media items"
          },
          "variants_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Variants Count",
            "description": "Number of known variant strings"
          },
          "video_samples": {
            "anyOf": [
              {
                "items": {},
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Video Samples",
            "description": "Representative video samples (shape varies by metadata_mode)"
          },
          "audio_samples": {
            "anyOf": [
              {
                "items": {},
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Audio Samples",
            "description": "Representative audio samples (shape varies by metadata_mode)"
          },
          "playback": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Playback",
            "description": "Playback URL for the trend's audio (only when requested and available)"
          },
          "freshness_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Freshness Score",
            "description": "Freshness score (0-1)"
          },
          "earliest_evidence_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Earliest Evidence At",
            "description": "Earliest publication time among known dated evidence supporting this result; a proxy for when the underlying activity began."
          },
          "tags": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/TrendTag"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tags",
            "description": "Tags associated with this trend"
          },
          "sound_category": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sound Category",
            "description": "Sound type: \"music\", \"speech\", \"sound_effect\", or \"mixed\""
          },
          "sound_genre": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sound Genre",
            "description": "Primary music genre (e.g. pop, hip_hop, electronic)"
          },
          "sound_subgenre": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sound Subgenre",
            "description": "More specific genre classification"
          },
          "sound_mood": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sound Mood",
            "description": "Emotional tone (e.g. happy, sad, energetic, chill)"
          },
          "sound_energy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sound Energy",
            "description": "Energy level: \"calm\", \"low\", \"moderate\", \"high\", or \"intense\""
          },
          "sound_tempo_bpm": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sound Tempo Bpm",
            "description": "Tempo in beats per minute"
          },
          "brand_safety": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Brand Safety",
            "description": "Brand safety rating: \"safe\", \"caution\", or \"unsafe\""
          },
          "brand_safety_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Brand Safety Reason",
            "description": "Explanation for the brand safety rating"
          },
          "is_song": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Is Song",
            "description": "Whether the audio is a song (vs. spoken word, sound effect)"
          },
          "is_catchphrase": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Is Catchphrase",
            "description": "Whether the trend is built around a repeatable phrase"
          },
          "catchphrase_text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Catchphrase Text",
            "description": "The catchphrase text, when applicable"
          },
          "has_vocals": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Has Vocals",
            "description": "Whether the audio contains vocals"
          },
          "has_lyrics": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Has Lyrics",
            "description": "Whether the audio contains sung or rapped lyrics"
          },
          "detected_language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Detected Language",
            "description": "Detected language of the audio content"
          },
          "participation_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Participation Type",
            "description": "What the trend requires: open, timed, lip_sync, choreography"
          },
          "content_structure": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Content Structure",
            "description": "Shared visual pattern: none, loose, or structured"
          },
          "has_text_template": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Has Text Template",
            "description": "Whether videos share a repeatable text overlay pattern"
          },
          "text_template_description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Text Template Description",
            "description": "Description of the text template format"
          },
          "topic_scope": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Topic Scope",
            "description": "How transferable: universal, vertical, internet_culture, event_specific, person_specific"
          },
          "content_scenarios": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Content Scenarios",
            "description": "Observed content scenarios from video analysis"
          },
          "sound_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sound Id",
            "description": "Identifier for the trend's primary sound"
          },
          "sound_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sound Title",
            "description": "Title of the trend's primary sound"
          },
          "sound_artist": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sound Artist",
            "description": "Artist of the trend's primary sound"
          },
          "commercial_music_approved": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Commercial Music Approved",
            "description": "Whether the platform explicitly marked the sound as approved for commercial/business use. Omitted when unknown."
          },
          "audio_summary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Audio Summary",
            "description": "Brief description of the audio content"
          },
          "lyric_snippet": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Lyric Snippet",
            "description": "Short excerpt of lyrics, when available"
          },
          "lyric_theme": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Lyric Theme",
            "description": "Thematic summary of the lyrics"
          },
          "key_instruments": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Key Instruments",
            "description": "Prominent instruments heard in the audio"
          },
          "emerged_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Emerged At",
            "description": "Timestamp when the trend first showed enough activity to be considered emerging. Drives the ordering of the 'emerging' sort mode."
          }
        },
        "type": "object",
        "required": [
          "id",
          "title",
          "summary"
        ],
        "title": "TrendDetailResponse",
        "description": "Response for GET /trends/{id}. Only includes fields returned by the endpoint."
      },
      "TrendDirection": {
        "type": "string",
        "enum": [
          "up",
          "flat",
          "down"
        ],
        "title": "TrendDirection",
        "description": "Trend direction indicator based on momentum ratio."
      },
      "TrendMatchResult": {
        "properties": {
          "trend": {
            "$ref": "#/components/schemas/BroadTrend"
          },
          "match_score": {
            "type": "number",
            "title": "Match Score",
            "description": "Relevance score (0-1, higher is better)"
          },
          "match_mode": {
            "type": "string",
            "title": "Match Mode",
            "description": "Which matching strategy was used"
          }
        },
        "type": "object",
        "required": [
          "trend",
          "match_score",
          "match_mode"
        ],
        "title": "TrendMatchResult",
        "description": "A single matched trend with similarity score."
      },
      "TrendTag": {
        "properties": {
          "tag_name": {
            "type": "string",
            "title": "Tag Name",
            "description": "Tag label (e.g. 'Beauty', 'Comedy')"
          },
          "strength": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Strength",
            "description": "Relevance strength of this tag (0-1)"
          },
          "purpose": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Purpose",
            "description": "Why this tag applies to the trend"
          },
          "rationale": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rationale",
            "description": "Supporting rationale for the tag assignment"
          }
        },
        "type": "object",
        "required": [
          "tag_name"
        ],
        "title": "TrendTag",
        "description": "A tag attached to a trend (e.g., 'Beauty', 'Comedy')."
      },
      "TrendsBroadInput": {
        "properties": {
          "audience": {
            "$ref": "#/components/schemas/TrendsBroadTargetAudience"
          },
          "scope": {
            "$ref": "#/components/schemas/ScopeConfig",
            "description": "Time period to search."
          },
          "response_config": {
            "$ref": "#/components/schemas/TrendsBroadResponseConfig"
          },
          "cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cursor",
            "description": "Pagination cursor from the previous response's next_cursor field."
          },
          "sort_by": {
            "type": "string",
            "enum": [
              "recommended",
              "emerging",
              "newest",
              "rising"
            ],
            "title": "Sort By",
            "description": "Sort order for trend ranking. 'recommended' returns trends sorted by relevance and engagement (default). 'emerging' (legacy; prefer 'newest') surfaces trends that recently crossed from noise to signal. 'newest' returns trends by when they were first confirmed as real. 'rising' surfaces trends whose posting activity is accelerating right now; the signal fades as a trend's latest evidence ages. Legacy values 'momentum' and 'timeliness' are accepted and resolve to 'rising' and 'newest' respectively. Guide: https://docs.upriver.ai/trends/sorting",
            "default": "recommended"
          },
          "trend_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Trend Ids",
            "description": "Return exactly these trends in the given order. When set, all other filters and ranking are ignored."
          },
          "uses_specific_sound": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Uses Specific Sound",
            "description": "Filter for trends that use a specific recognizable sound, derived from dominant-sound evidence and signature-sound classification."
          },
          "participation_type": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Participation Type",
            "description": "Filter by participation type(s): 'open', 'timed', 'lip_sync', 'choreography'. Accepts a single string or a list."
          },
          "content_structure": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "none",
                  "loose",
                  "structured"
                ]
              },
              {
                "items": {
                  "type": "string",
                  "enum": [
                    "none",
                    "loose",
                    "structured"
                  ]
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Content Structure",
            "description": "Filter by shared non-audio pattern across videos: 'none' (sound-led only), 'loose' (shared theme/aesthetic without a repeatable template), or 'structured' (repeatable text, editing, or visual template). Accepts a single string or a list; lists match any requested value."
          },
          "has_text_template": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Has Text Template",
            "description": "Filter for trends with repeatable text overlay format"
          },
          "topic_scope": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Topic Scope",
            "description": "Filter by topic scope: 'universal', 'vertical', 'internet_culture', 'event_specific', 'person_specific'"
          },
          "topic_scope_exclude": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Topic Scope Exclude",
            "description": "Exclude trends matching these topic scopes"
          },
          "tags": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tags",
            "description": "Include trends having at least one of these tags"
          },
          "exclude_tags": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Exclude Tags",
            "description": "Exclude trends having any of these tags"
          },
          "min_duration": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Min Duration",
            "description": "Minimum typical duration in seconds. Trends with unknown duration are excluded when set."
          },
          "max_duration": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Duration",
            "description": "Maximum typical duration in seconds. Trends with unknown duration are excluded when set."
          },
          "query": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Query",
            "description": "Full-text search query across trend name, description, sound title, artist, genre, mood, and catchphrase. Supports phrases and OR operators."
          },
          "genre": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Genre",
            "description": "Filter by sound genre (e.g. pop, hip_hop, electronic)"
          },
          "mood": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mood",
            "description": "Filter by sound mood (e.g. happy, sad, energetic, chill)"
          },
          "sound_category": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sound Category",
            "description": "Filter by sound category: \"music\", \"speech\", \"sound_effect\", \"mixed\""
          },
          "has_lyrics": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Has Lyrics",
            "description": "Filter for trends with/without sung or rapped lyrics"
          },
          "is_catchphrase": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Is Catchphrase",
            "description": "Filter for trends built around a repeatable phrase"
          },
          "min_bpm": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Min Bpm",
            "description": "Minimum tempo in BPM"
          },
          "max_bpm": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Bpm",
            "description": "Maximum tempo in BPM"
          },
          "content_scenario": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Content Scenario",
            "description": "Filter by observed content scenario"
          },
          "energy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Energy",
            "description": "Filter by energy level: \"calm\", \"low\", \"moderate\", \"high\", \"intense\""
          },
          "is_song": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Is Song",
            "description": "Filter for trends with/without a recognizable song"
          },
          "has_vocals": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Has Vocals",
            "description": "Filter for trends with/without vocal content"
          },
          "detected_language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Detected Language",
            "description": "Filter by content language — the primary language of captions, hashtags, and text overlays (ISO 639-1 code, e.g. \"en\", \"es\"). Falls back to audio language when content language is unavailable."
          },
          "timeliness_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Timeliness Status",
            "description": "Minimum freshness level. 'recent' (>=0.7), 'active' (>=0.3), 'stale' (>=0.1). Filter is 'at least this fresh' -- timeliness_status=active returns recent + active trends."
          },
          "discovered_within_hours": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 8760.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Discovered Within Hours",
            "description": "Only include trends discovered within the past N hours (e.g. 24 for the last day, 168 for the last week)."
          },
          "earliest_evidence_at_or_after": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Earliest Evidence At Or After",
            "description": "Inclusive ISO 8601 lower bound for the result's `earliest_evidence_at`. Use it to restrict results to activity that first appeared within a recent window. Results with earlier dated evidence, or with no dated evidence, are excluded as a whole; evidence returned within a matching result is not time-filtered. The comparison uses all known supporting evidence, including records omitted by response filters or limits."
          },
          "brand_safety": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Brand Safety",
            "description": "Filter by brand safety level(s): \"safe\", \"caution\", \"unsafe\". Accepts a single string or a list. When omitted, unsafe trends are excluded by default."
          }
        },
        "type": "object",
        "title": "TrendsBroadInput",
        "description": "Payload model for the /trends/broad endpoint.",
        "example": {
          "audience": {
            "location": "United States"
          }
        }
      },
      "TrendsBroadResponse": {
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta",
            "description": "Provenance and optional diagnostics for this response."
          },
          "trends": {
            "items": {
              "$ref": "#/components/schemas/BroadTrend"
            },
            "type": "array",
            "title": "Trends",
            "description": "List of broad cultural trends currently trending across platforms."
          },
          "has_more": {
            "type": "boolean",
            "title": "Has More",
            "description": "Whether more trends are available beyond this page.",
            "default": false
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor",
            "description": "Cursor to fetch the next page of trends when has_more is true."
          }
        },
        "type": "object",
        "required": [
          "meta",
          "trends"
        ],
        "title": "TrendsBroadResponse",
        "description": "Broad cultural trend detection results.\nIdentifies current, socially relevant cultural topics that could inspire ad creative."
      },
      "TrendsBroadResponseConfig": {
        "properties": {
          "include_rollup": {
            "type": "boolean",
            "title": "Include Rollup",
            "description": "Include a summary paragraph of all the trends found.",
            "default": false
          },
          "verbosity": {
            "type": "string",
            "title": "Verbosity",
            "description": "How much detail to include: compact | standard | verbose.",
            "default": "standard"
          },
          "max_results": {
            "type": "integer",
            "maximum": 50.0,
            "minimum": 1.0,
            "title": "Max Results",
            "description": "Maximum number of trends to return.",
            "default": 10
          },
          "min_confidence": {
            "type": "number",
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Min Confidence",
            "description": "Only return trends with confidence above this score.",
            "default": 0.55
          },
          "media_limit": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 50.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Media Limit",
            "description": "Max media samples per trend. Default: 3 (basic/none), 10 (debug)."
          }
        },
        "type": "object",
        "title": "TrendsBroadResponseConfig",
        "description": "How to format the response."
      },
      "TrendsBroadTargetAudience": {
        "properties": {
          "geo": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Geo",
            "description": "Which countries to focus on (use ISO country codes like 'US', 'CA')",
            "default": [
              "US"
            ]
          }
        },
        "type": "object",
        "title": "TrendsBroadTargetAudience",
        "description": "Where to look for trends."
      },
      "UsageByFeature": {
        "properties": {
          "credit_rate": {
            "type": "number",
            "title": "Credit Rate"
          },
          "quantity": {
            "type": "integer",
            "title": "Quantity"
          },
          "credits_used": {
            "type": "number",
            "title": "Credits Used"
          }
        },
        "type": "object",
        "required": [
          "credit_rate",
          "quantity",
          "credits_used"
        ],
        "title": "UsageByFeature"
      },
      "UsageByRange": {
        "properties": {
          "features": {
            "additionalProperties": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SimpleFeatureData"
                },
                {
                  "$ref": "#/components/schemas/CreditFeatureData"
                }
              ]
            },
            "type": "object",
            "title": "Features"
          },
          "time_series": {
            "items": {
              "$ref": "#/components/schemas/PeriodUsage"
            },
            "type": "array",
            "title": "Time Series",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "features"
        ],
        "title": "UsageByRange"
      },
      "UsagePeriod": {
        "properties": {
          "start": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Start",
            "description": "Shared current usage period start in UTC milliseconds, or null if no unambiguous shared period is available."
          },
          "end": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "End",
            "description": "Shared current usage period end in UTC milliseconds, or null if no unambiguous shared period is available."
          }
        },
        "type": "object",
        "required": [
          "start",
          "end"
        ],
        "title": "UsagePeriod"
      },
      "UsageResponse": {
        "properties": {
          "created_at": {
            "type": "integer",
            "title": "Created At"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email"
          },
          "usage_by_range": {
            "additionalProperties": {
              "$ref": "#/components/schemas/UsageByRange"
            },
            "type": "object",
            "title": "Usage By Range"
          },
          "usage_period": {
            "$ref": "#/components/schemas/UsagePeriod"
          },
          "pricing": {
            "anyOf": [
              {
                "additionalProperties": {
                  "$ref": "#/components/schemas/PricingInfo"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pricing"
          }
        },
        "type": "object",
        "required": [
          "created_at",
          "name",
          "email",
          "usage_by_range",
          "usage_period"
        ],
        "title": "UsageResponse"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      },
      "VideoMetrics": {
        "properties": {
          "avg_duration_seconds": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avg Duration Seconds",
            "description": "Average video duration in seconds from uploads inside the trailing 12-week long-form inventory window. Omitted from creator responses when no uploads fall inside the window.",
            "examples": [
              600,
              120,
              45
            ]
          },
          "uploads_per_week": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Uploads Per Week",
            "description": "Average number of uploads per week over the trailing 12-week inventory window for long-form uploads. When the creator has less history than the full lookback, the rate is calculated over the observed weeks and accompanied by coverage metadata.",
            "examples": [
              1.5,
              3.0,
              7.0
            ]
          },
          "pct_over_8m": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pct Over 8M",
            "description": "Percentage of in-window videos with duration over 8 minutes (480 seconds). Videos over 8 minutes are eligible for mid-roll ads. Based on long-form uploads only. Omitted from creator responses when no uploads fall inside the window.",
            "examples": [
              75.0,
              100.0,
              0.0
            ]
          },
          "lookback_weeks": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Lookback Weeks",
            "description": "Trailing lookback window used for advertiser inventory estimation. Currently fixed at 12 weeks in the public creator API.",
            "examples": [
              12
            ]
          },
          "weeks_observed": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Weeks Observed",
            "description": "Number of weeks of upload history actually observed for the inventory calculation. Can be less than lookback_weeks for newer creators.",
            "examples": [
              2,
              12
            ]
          },
          "window_complete": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Window Complete",
            "description": "True when a full lookback window was observed. False when the creator has less than the full lookback of upload history.",
            "examples": [
              true,
              false
            ]
          }
        },
        "type": "object",
        "title": "VideoMetrics",
        "description": "Video-specific metrics for ad inventory estimation.\n\nComputed from the creator's trailing 12-week long-form upload window. Includes\naverage duration (useful for estimating mid-roll ad slots), upload\nfrequency, and coverage metadata describing how much recent history\nwas actually observed.",
        "examples": [
          {
            "avg_duration_seconds": 615,
            "lookback_weeks": 12,
            "pct_over_8m": 66.7,
            "uploads_per_week": 1.75,
            "weeks_observed": 12,
            "window_complete": true
          },
          {
            "lookback_weeks": 12,
            "uploads_per_week": 0.0,
            "weeks_observed": 12,
            "window_complete": true
          },
          {
            "avg_duration_seconds": 420,
            "lookback_weeks": 12,
            "pct_over_8m": 25.0,
            "uploads_per_week": 2.5,
            "weeks_observed": 2,
            "window_complete": false
          }
        ]
      }
    },
    "securitySchemes": {
      "APIKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key"
      }
    }
  },
  "tags": [
    {
      "name": "Brands"
    },
    {
      "name": "Products"
    },
    {
      "name": "Creators"
    },
    {
      "name": "Audience"
    },
    {
      "name": "Sponsorships"
    },
    {
      "name": "Trends"
    },
    {
      "name": "Trends Radar (Beta)"
    },
    {
      "name": "Breakout Topics"
    },
    {
      "name": "Taxonomy"
    }
  ]
}