{
  "openapi": "3.1.0",
  "info": {
    "title": "采风风 Open API",
    "version": "0.1.0",
    "description": "采风风 agent 把 Amazon 卖家的每一条卖点，对证到买家原话与 TikTok 市场的真实说法：每条结论都指得到出处；没有原话就说没有。"
  },
  "components": {
    "schemas": {
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "title": "Detail",
            "type": "array"
          }
        },
        "title": "HTTPValidationError",
        "type": "object"
      },
      "ClaimCheckBody": {
        "additionalProperties": false,
        "description": "052 v1.7：卖点原句走 **body**（⛔ URL）——访问日志会记请求行，原句进日志＝客户内容泄漏。",
        "properties": {
          "claim": {
            "title": "Claim",
            "type": "string"
          },
          "marketplace": {
            "default": "amazon.com",
            "title": "Marketplace",
            "type": "string"
          }
        },
        "required": [
          "claim"
        ],
        "title": "ClaimCheckBody",
        "type": "object"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "title": "Location",
            "type": "array"
          },
          "msg": {
            "title": "Message",
            "type": "string"
          },
          "type": {
            "title": "Error Type",
            "type": "string"
          }
        },
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError",
        "type": "object"
      }
    }
  },
  "paths": {
    "/api/v6/asins": {
      "get": {
        "description": "账号已归属 (asin, marketplace) 列表 ＋ 每个商品的**轮状态三读数**（W15）。\n\n三读数的口径与唯一实现都在 `app/v6/shared/round_gate`（⛔ 在本文件复述判据）：\n  · `latest_complete_round`：最近一个**完整轮**（模板阶段全跑完 ∧ 证据等级非空 ∧ 有清单）；\n  · `latest_round_seq`：该商品**最近一轮**的序号（不论是否完整）；\n  · `latest_round_running`：最近一轮是否「在跑」＝`status` ∈ `pending/running/waiting/completed`，\n    即**非终态**（终态＝`converged/failed/cancelled`）。\n用途：前端分清「第一轮还在跑」与「有完整轮但新一轮在跑」——⛔ 按时间/ID 猜。",
        "operationId": "get_products",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Owned Asins",
        "tags": [
          "v6"
        ]
      }
    },
    "/api/v6/asin/{asin}/matrix": {
      "get": {
        "description": "`get_matrix`：A/B 两组摘要＋每条 `claim_atom_id`＋计数＋`evidence_refs[]`（带 source 分级）。",
        "operationId": "get_matrix",
        "parameters": [
          {
            "in": "path",
            "name": "asin",
            "required": true,
            "schema": {
              "title": "Asin",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "account_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Account Id"
            }
          },
          {
            "in": "query",
            "name": "marketplace",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Marketplace"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Matrix",
        "tags": [
          "v6-read-tools"
        ]
      }
    },
    "/api/v6/asin/{asin}/claim-check": {
      "post": {
        "description": "`check_claim`：一条主张是否被支撑。verdict ∈ supported/unsupported/differing/no_evidence。",
        "operationId": "check_claim",
        "parameters": [
          {
            "in": "path",
            "name": "asin",
            "required": true,
            "schema": {
              "title": "Asin",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "account_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Account Id"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClaimCheckBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Check Claim",
        "tags": [
          "v6-read-tools"
        ]
      }
    },
    "/api/v6/asin/{asin}/objections": {
      "get": {
        "description": "`get_objections`：反对原话清单（照录＋位置），分页并明示未取全。",
        "operationId": "get_objections",
        "parameters": [
          {
            "in": "path",
            "name": "asin",
            "required": true,
            "schema": {
              "title": "Asin",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "account_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Account Id"
            }
          },
          {
            "in": "query",
            "name": "marketplace",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Marketplace"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Objections",
        "tags": [
          "v6-read-tools"
        ]
      }
    },
    "/api/v6/asin/{asin}/scenes": {
      "get": {
        "operationId": "get_scenes",
        "parameters": [
          {
            "in": "path",
            "name": "asin",
            "required": true,
            "schema": {
              "title": "Asin",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "account_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Account Id"
            }
          },
          {
            "in": "query",
            "name": "marketplace",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Marketplace"
            }
          },
          {
            "in": "query",
            "name": "group",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Group"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "List Scenes",
        "tags": [
          "v6-scenes"
        ]
      }
    },
    "/api/v6/reports/{report_id}": {
      "get": {
        "description": "报告详情（越权／不存在 ⇒ 404）＋ **参照已删除的读时标注**（RQ-90 条件②）。",
        "operationId": "get_report",
        "parameters": [
          {
            "in": "path",
            "name": "report_id",
            "required": true,
            "schema": {
              "title": "Report Id",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "title": "Response Get Report Api V6 Reports  Report Id  Get",
                  "type": "object"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          }
        ],
        "summary": "Get Report",
        "tags": [
          "v6-reports"
        ]
      }
    }
  }
}
