{"openapi":"3.1.0","info":{"title":"Recall Monitor API","version":"1.0.0","description":"Official product recalls from the US (CPSC), EU (Safety Gate), UK (OPSS), Canada (Health Canada) and France (RappelConso), matched against your product catalog.\n\n**Match levels.** `confirmed` = a barcode/marketplace id, or brand + a specific model, is listed in the recall. `probable` = strong text evidence. `possible` = weaker evidence for review. Every match carries plain-language `reasons`.\n\n**No match does not mean safe.** Every lookup returns a `coverage` block listing which sources were checked and how fresh they are.\n\n**Auth.** `Authorization: Bearer rk_live_…` (or `X-API-Key`). Get a free key with `POST /v1/signup`. Each response carries `RateLimit-Limit`, `RateLimit-Remaining` and `RateLimit-Reset` (seconds to the monthly reset).\n\n**Webhooks** use the [Standard Webhooks](https://www.standardwebhooks.com) format: verify `webhook-signature` with your `whsec_` secret.\n\nData is from official publications; see each record's `url` and the attribution in `coverage`. Matches are automated and may be incomplete or wrong. Not legal advice."},"servers":[{"url":"/"}],"security":[{"bearer":[]}],"tags":[{"name":"Recalls"},{"name":"Catalog"},{"name":"Matches"},{"name":"Cases","description":"What you decided and did about a match, in a tamper-evident log."},{"name":"Webhooks"},{"name":"Account"}],"paths":{"/v1/health":{"get":{"tags":["Account"],"summary":"Health check","security":[],"responses":{"200":{"description":"OK"}}}},"/v1/signup":{"post":{"tags":["Account"],"summary":"Create a free account and API key (shown once)","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email"],"properties":{"email":{"type":"string","format":"email"}}}}}},"responses":{"201":{"description":"Account and key","content":{"application/json":{"schema":{"type":"object","properties":{"account":{"type":"string"},"api_key":{"type":"string"},"plan":{"type":"string"}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Email already registered"},"429":{"description":"Monthly request quota used up (see RateLimit-* headers)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/billing/checkout":{"post":{"tags":["Account"],"summary":"Get a Paddle checkout link to upgrade (plan changes apply when Paddle confirms payment)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["plan"],"properties":{"plan":{"enum":["starter","growth","business"]}}}}}},"responses":{"200":{"description":"checkout_url","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Monthly request quota used up (see RateLimit-* headers)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Billing not configured"}}}},"/billing/paddle":{"post":{"tags":["Account"],"summary":"Paddle webhook receiver (Paddle only; HMAC-signed)","security":[],"responses":{"200":{"description":"Processed"},"401":{"description":"Bad signature"}}}},"/v1/account":{"get":{"tags":["Account"],"summary":"Plan, limits and this month's usage","responses":{"200":{"description":"Account","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Monthly request quota used up (see RateLimit-* headers)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/keys":{"get":{"tags":["Account"],"summary":"List keys (prefixes only)","responses":{"200":{"description":"Keys","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Monthly request quota used up (see RateLimit-* headers)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["Account"],"summary":"Create another key (shown once; max 5 active)","responses":{"201":{"description":"New key","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Monthly request quota used up (see RateLimit-* headers)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/keys/{prefix}":{"delete":{"tags":["Account"],"summary":"Revoke a key","parameters":[{"name":"prefix","in":"path","required":true,"schema":{"type":"string","example":"rk_live_AbCd"}}],"responses":{"204":{"description":"Revoked"},"404":{"description":"Not found"}}}},"/v1/recalls":{"get":{"tags":["Recalls"],"summary":"Search recalls, or check one product","description":"With `barcode`, `asin`, `brand` or `model`: checks that product and returns matching recalls with a `match` (level + reasons), strongest first. With only `q`: full-text search. With nothing: newest recalls.","parameters":[{"name":"barcode","in":"query","description":"EAN/UPC/GTIN-8/12/13/14 (check digit validated)","schema":{"type":"string"}},{"name":"asin","in":"query","description":"Amazon ASIN or FNSKU","schema":{"type":"string"}},{"name":"brand","in":"query","description":"Brand name","schema":{"type":"string"}},{"name":"model","in":"query","description":"Model / part number","schema":{"type":"string"}},{"name":"q","in":"query","description":"Free text (with product fields: used as the product name)","schema":{"type":"string"}},{"name":"country","in":"query","description":"US, EU, UK, CA or FR","schema":{"type":"string"}},{"name":"source","in":"query","description":"cpsc, eu, uk, hc or fr","schema":{"type":"string"}},{"name":"since","in":"query","description":"Published on/after YYYY-MM-DD","schema":{"type":"string"}},{"name":"limit","in":"query","description":"Page size","schema":{"type":"integer","default":50}},{"name":"offset","in":"query","description":"Rows to skip","schema":{"type":"integer","default":0}}],"responses":{"200":{"description":"Recalls","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer"},"results":{"type":"array","items":{"$ref":"#/components/schemas/Recall"}},"insufficient_information":{"type":["object","null"],"description":"Fields to add for a reliable check"},"coverage":{"$ref":"#/components/schemas/Coverage"},"disclaimer":{"type":"string"}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Monthly request quota used up (see RateLimit-* headers)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/recalls/{id}":{"get":{"tags":["Recalls"],"summary":"One recall","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","example":"eu:SR/03338/26"}}],"responses":{"200":{"description":"Recall","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Recall"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found"},"429":{"description":"Monthly request quota used up (see RateLimit-* headers)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/products":{"get":{"tags":["Catalog"],"summary":"List monitored products","parameters":[{"name":"limit","in":"query","description":"Page size","schema":{"type":"integer","default":50}},{"name":"offset","in":"query","description":"Rows to skip","schema":{"type":"integer","default":0}}],"responses":{"200":{"description":"Products","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Monthly request quota used up (see RateLimit-* headers)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["Catalog"],"summary":"Add or update products (JSON or CSV) and match them now","description":"Upserts by `id`; safe to retry. Up to 5,000 per request. CSV headers understood include Shopify (`Variant SKU`, `Variant Barcode`, `Vendor`, `Title`) and Amazon (`seller-sku`, `asin1`, `item-name`) exports. New products are re-matched automatically whenever a new recall is published.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["products"],"properties":{"products":{"type":"array","maxItems":5000,"items":{"$ref":"#/components/schemas/Product"}}}}},"text/csv":{"schema":{"type":"string"},"example":"sku,ean,brand,model,title\nA1,3355991220164,Acme,XJ-100,Kettle"}}},"responses":{"200":{"description":"Saved and matched","content":{"application/json":{"schema":{"type":"object","properties":{"saved":{"type":"integer"},"errors":{"type":"array"},"matches":{"type":"array"},"insufficient_information":{"type":"array"},"coverage":{"$ref":"#/components/schemas/Coverage"}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Would exceed the plan's product limit"},"429":{"description":"Monthly request quota used up (see RateLimit-* headers)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/products/{id}":{"delete":{"tags":["Catalog"],"summary":"Stop monitoring a product (also removes its matches)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Deleted"},"404":{"description":"Not found"}}}},"/v1/matches":{"get":{"tags":["Matches"],"summary":"Your products matched to recalls","parameters":[{"name":"status","in":"query","description":"open, resolved or dismissed","schema":{"enum":["open","resolved","dismissed"],"default":"open"}},{"name":"min_level","in":"query","description":"Weakest level to include","schema":{"enum":["confirmed","probable","possible"],"default":"possible"}},{"name":"limit","in":"query","description":"Page size","schema":{"type":"integer","default":50}},{"name":"offset","in":"query","description":"Rows to skip","schema":{"type":"integer","default":0}}],"responses":{"200":{"description":"Matches","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/Match"}},"coverage":{"$ref":"#/components/schemas/Coverage"}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Monthly request quota used up (see RateLimit-* headers)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/matches/{id}":{"patch":{"tags":["Matches"],"summary":"Set a match's status","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"enum":["open","resolved","dismissed"]}}}}}},"responses":{"200":{"description":"Updated","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Monthly request quota used up (see RateLimit-* headers)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/cases":{"get":{"tags":["Cases"],"summary":"List cases","parameters":[{"name":"status","in":"query","description":"Filter","schema":{"enum":["open","investigating","affected","not_affected","closed"]}},{"name":"limit","in":"query","description":"Page size","schema":{"type":"integer","default":50}},{"name":"offset","in":"query","description":"Rows to skip","schema":{"type":"integer","default":0}}],"responses":{"200":{"description":"Cases","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Monthly request quota used up (see RateLimit-* headers)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["Cases"],"summary":"Open a case for a match","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["match_id"],"properties":{"match_id":{"type":"integer"},"owner":{"type":"string"}}}}}},"responses":{"201":{"description":"Case","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Case already exists for this match"},"429":{"description":"Monthly request quota used up (see RateLimit-* headers)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/cases/{id}":{"get":{"tags":["Cases"],"summary":"Case with its full event history","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Case","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Monthly request quota used up (see RateLimit-* headers)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"tags":["Cases"],"summary":"Change status or owner","description":"`affected` / `not_affected` need a `reason` (your due-diligence record). `closed` needs a decision first. Every change is appended to the audit log.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"enum":["open","investigating","affected","not_affected","closed"]},"reason":{"type":"string"},"owner":{"type":"string"}}}}}},"responses":{"200":{"description":"Updated case","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Case is closed"},"429":{"description":"Monthly request quota used up (see RateLimit-* headers)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/cases/{id}/events":{"post":{"tags":["Cases"],"summary":"Add a note, action, supplier message, evidence link or customer-notice record (append-only)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["type","text"],"properties":{"type":{"enum":["note","action","supplier_message","evidence","customer_notice"]},"text":{"type":"string","maxLength":5000},"links":{"type":"array","maxItems":10,"items":{"type":"string","format":"uri"}}}}}}},"responses":{"201":{"description":"Event with its chain hash","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Monthly request quota used up (see RateLimit-* headers)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/cases/{id}/report":{"get":{"tags":["Cases"],"summary":"Signed case report (Ed25519; verify with /.well-known/recall-report-key)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Report + signature","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Monthly request quota used up (see RateLimit-* headers)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/audit/verify":{"get":{"tags":["Cases"],"summary":"Recompute your audit chain; reports the first tampered event, if any","responses":{"200":{"description":"Verification","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Monthly request quota used up (see RateLimit-* headers)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/webhooks":{"get":{"tags":["Webhooks"],"summary":"List endpoints with pending/failed delivery counts","responses":{"200":{"description":"Endpoints","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Monthly request quota used up (see RateLimit-* headers)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["Webhooks"],"summary":"Register an https endpoint (secret shown once)","description":"Sends `recall.match` events for new confirmed/probable matches. Retries with backoff for ~3 days; answering 410 disables the endpoint.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri"}}}}}},"responses":{"201":{"description":"Endpoint with whsec_ secret","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Plan's endpoint limit reached"},"429":{"description":"Monthly request quota used up (see RateLimit-* headers)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/webhooks/{id}":{"delete":{"tags":["Webhooks"],"summary":"Remove an endpoint","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"204":{"description":"Deleted"},"404":{"description":"Not found"}}}},"/public/check":{"get":{"tags":["Recalls"],"summary":"Keyless product check (powers the free checker page; 20 per IP per day, top 10 results)","security":[],"parameters":[{"name":"barcode","in":"query","description":"EAN/UPC","schema":{"type":"string"}},{"name":"brand","in":"query","description":"Brand","schema":{"type":"string"}},{"name":"model","in":"query","description":"Model","schema":{"type":"string"}},{"name":"name","in":"query","description":"Product name","schema":{"type":"string"}}],"responses":{"200":{"description":"Matches for one product","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Monthly request quota used up (see RateLimit-* headers)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/.well-known/recall-report-key":{"get":{"tags":["Cases"],"summary":"Public key for verifying case reports","security":[],"responses":{"200":{"description":"Ed25519 public key"}}}}},"webhooks":{"recall.match":{"post":{"summary":"A product of yours matched a recall (confirmed or probable)","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"const":"recall.match"},"timestamp":{"type":"string"},"data":{"$ref":"#/components/schemas/Match"}}}}}},"responses":{"200":{"description":"Any 2xx acknowledges"}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"rk_live_… key"}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"string"}}},"Product":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"Your SKU or id"},"gtin":{"type":"string","description":"EAN/UPC/GTIN"},"asin":{"type":"string"},"brand":{"type":"string"},"model":{"type":"string"},"name":{"type":"string"}}},"Recall":{"type":"object","properties":{"id":{"type":"string"},"source":{"enum":["cpsc","eu","uk","hc","fr"]},"country":{"enum":["US","EU","UK","CA","FR"]},"published":{"type":"string","format":"date"},"title":{"type":"string"},"brand":{"type":"string"},"model":{"type":"string"},"category":{"type":"string"},"hazard":{"type":"string"},"remedy":{"type":"string"},"url":{"type":"string","description":"Official notice (attribution)"},"images":{"type":"array","items":{"type":"string"}},"codes":{"type":"array","items":{"type":"string"},"description":"GTIN-14 barcodes and marketplace ids"},"match":{"type":"object","properties":{"level":{"enum":["confirmed","probable","possible"]},"reasons":{"type":"array","items":{"type":"string"}}}}}},"Match":{"type":"object","properties":{"id":{"type":"integer"},"product_id":{"type":"string"},"recall_id":{"type":"string"},"level":{"enum":["confirmed","probable","possible"]},"reasons":{"type":"array","items":{"type":"string"}},"status":{"type":"string"}}},"Coverage":{"type":"object","description":"Which sources were checked and how fresh they are","properties":{"complete":{"type":"boolean"},"note":{"type":"string"},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"last_success":{"type":["string","null"]},"stale":{"type":"boolean"},"licence":{"type":"string"},"attribution":{"type":"string"}}}}}}}}}