{
  "name": "ch92_recall_check",
  "title": "ch 92 · recall check",
  "description": "Checks products, food, medical devices and vehicles against official US recall records. Inputs: A product name, brand and model, UPC, or a vehicle (year, make, model, or VIN). One item or up to 25.. Outputs: Per item: recalled / no recall found / possible match, with recall number, date, hazard, remedy and official link..",
  "transport": {
    "kind": "http",
    "method": "POST",
    "url": "https://ch21.ai/api/public/channel/recall-check/take",
    "headers": {
      "authorization": "Bearer <ch21 feed key>",
      "content-type": "application/json"
    }
  },
  "inputSchema": {
    "type": "object",
    "required": [
      "notes"
    ],
    "properties": {
      "notes": {
        "type": "string",
        "description": "what you want this channel to do, in plain english"
      },
      "prior": {
        "type": "object",
        "properties": {
          "brief": {
            "type": "string"
          },
          "output": {
            "type": "string"
          },
          "links": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "input": {
        "type": "object",
        "required": [
          "items"
        ],
        "properties": {
          "items": {
            "type": "array",
            "minItems": 1,
            "maxItems": 25,
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "brand": {
                  "type": "string"
                },
                "model": {
                  "type": "string"
                },
                "upc": {
                  "type": "string"
                },
                "vehicle": {
                  "type": "object",
                  "properties": {
                    "year": {
                      "type": "integer"
                    },
                    "make": {
                      "type": "string"
                    },
                    "model": {
                      "type": "string"
                    },
                    "vin": {
                      "type": "string"
                    }
                  }
                },
                "category_hint": {
                  "enum": [
                    "consumer",
                    "vehicle",
                    "food",
                    "device"
                  ]
                }
              }
            }
          },
          "since": {
            "type": "string",
            "description": "optional ISO date: only recalls on/after this date"
          }
        }
      }
    }
  }
}