{"openapi":"3.1.0","info":{"title":"BatchSift","description":"Track x402 service prices and status, or find candidate Base USDC transfers for your invoices. Pay per batch with x402 or MPP.","version":"0.1.0","x-guidance":"Use marketWatch for x402 List slugs and invoiceMatch for Base USDC transfer candidates. Generate a fresh UUID v4 request_id per purchase and keep the body unchanged when paying or retrying. Use one payment protocol per purchase. For HTTP 202, retry with the original credential and do not pay again. Review invoice matches marked needs_review."},"externalDocs":{"description":"BatchSift agent guide","url":"https://batchsift.pages.dev/llms.txt"},"servers":[{"url":"https://batchsift.pages.dev"}],"paths":{"/health":{"get":{"summary":"Service liveness","security":[],"responses":{"200":{"description":"Alive"}}}},"/v1/market-watch":{"post":{"operationId":"marketWatch","summary":"x402 Service Watchlist","description":"Get observed prices, status, and changes for up to 20 x402 services by x402 List slug. Pass the previous as_of as since to see what changed since your last check.","tags":["x402","watchlist","service status","API pricing"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.02"},"protocols":[{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"}},{"mpp":{"method":"tempo","intent":"charge","currency":"0x20c000000000000000000000b9537d11c60e8b50"}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["request_id","services"],"properties":{"request_id":{"type":"string","format":"uuid","description":"Generate a fresh UUID v4 per purchase; reuse it and the identical body on retries."},"services":{"type":"array","minItems":1,"maxItems":20,"uniqueItems":true,"items":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]{0,99}$"}},"since":{"type":"string","format":"date-time","description":"Optional previous response as_of; checked against available history."}}},"example":{"request_id":"adb935e8-53a4-472b-aa9d-63ca239bbfc2","services":["stableenrich"]}}}},"responses":{"200":{"description":"Paid report.","content":{"application/json":{"schema":{"type":"object","required":["as_of","history_from","services","changes","provenance"],"properties":{"as_of":{"type":"string","format":"date-time","description":"UTC timestamp ending in Z."},"history_from":{"type":"string","format":"date-time","description":"UTC timestamp ending in Z."},"services":{"type":"array","items":{"type":"object","required":["slug","status"],"properties":{"slug":{"type":"string"},"status":{"type":"string"},"min_price_usd":{"type":["number","null"]},"last_checked_at":{"type":["string","null"]}}}},"changes":{"type":"array","items":{"type":"object","required":["slug","type","observed_at"]}},"provenance":{"type":"object"}}},"example":{"as_of":"2026-11-29T12:00:00Z","history_from":"2026-11-28T12:00:00Z","services":[{"slug":"stableenrich","status":"online","min_price_usd":0.01,"last_checked_at":"2026-11-29T11:56:00Z"}],"changes":[],"provenance":{"source":"https://x402-list.com","attribution":"Data: x402-list.com (CC BY 4.0)","license":"CC BY 4.0"}}}}},"202":{"description":"Purchase pending. Retry the identical request with the original credential."},"400":{"description":"Invalid request."},"402":{"description":"Payment Required"},"403":{"description":"Invalid payment credential."},"409":{"description":"The request ID or payment is already bound to a purchase."},"422":{"description":"The requested Base block range exceeds the lookup budget."},"503":{"description":"Data or payments temporarily unavailable."}}}},"/v1/invoice-match":{"post":{"operationId":"invoiceMatch","summary":"Base USDC Invoice Match","description":"Find candidate incoming USDC transfers for up to 25 invoices and one wallet on Base. Returns transaction hashes and flags ambiguous matches for review. No transaction hash required as input.","tags":["Base","USDC","invoice reconciliation","transaction evidence"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.05"},"protocols":[{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"}},{"mpp":{"method":"tempo","intent":"charge","currency":"0x20c000000000000000000000b9537d11c60e8b50"}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["request_id","wallet","from","to","invoices"],"properties":{"request_id":{"type":"string","format":"uuid","description":"Generate a fresh UUID v4 per purchase; reuse it and the identical body on retries."},"wallet":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"from":{"type":"string","format":"date-time","description":"UTC timestamp ending in Z."},"to":{"type":"string","format":"date-time","description":"Finalized range end. A batch may span at most 48,000 Base blocks."},"invoices":{"type":"array","minItems":1,"maxItems":25,"items":{"type":"object","additionalProperties":false,"required":["id","amount_usdc"],"properties":{"id":{"type":"string","maxLength":64},"amount_usdc":{"type":"string","pattern":"^(?:0|[1-9][0-9]{0,11})(?:\\.[0-9]{1,6})?$"},"sender":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}}}}}},"example":{"request_id":"adb935e8-53a4-472b-aa9d-63ca239bbfc2","wallet":"0x1111111111111111111111111111111111111111","from":"2026-11-29T00:00:00Z","to":"2026-11-29T00:15:00Z","invoices":[{"id":"INV-001","amount_usdc":"42.50"}]}}}},"responses":{"200":{"description":"Paid report.","content":{"application/json":{"schema":{"type":"object","required":["chain","wallet","from","to","coverage","invoices"],"properties":{"chain":{"const":"eip155:8453"},"wallet":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"from":{"type":"string","format":"date-time","description":"UTC timestamp ending in Z."},"to":{"type":"string","format":"date-time","description":"UTC timestamp ending in Z."},"coverage":{"const":"complete"},"invoices":{"type":"array","items":{"type":"object","required":["id","status","candidates"],"properties":{"id":{"type":"string"},"status":{"enum":["candidate","needs_review","no_transfer_found"]},"candidates":{"type":"array","items":{"type":"object"}}}}}}},"example":{"chain":"eip155:8453","asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","wallet":"0x1111111111111111111111111111111111111111","from":"2026-11-29T00:00:00Z","to":"2026-11-29T00:15:00Z","coverage":"complete","invoices":[{"id":"INV-001","status":"candidate","candidate_count":1,"candidates":[{"tx_hash":"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","log_index":"0","block_number":"12345678","from_address":"0x2222222222222222222222222222222222222222","amount_atomic":"42500000"}]}]}}}},"202":{"description":"Purchase pending. Retry the identical request with the original credential."},"400":{"description":"Invalid request."},"402":{"description":"Payment Required"},"403":{"description":"Invalid payment credential."},"409":{"description":"The request ID or payment is already bound to a purchase."},"422":{"description":"The requested Base block range exceeds the lookup budget."},"503":{"description":"Data or payments temporarily unavailable."}}}}}}