{"openapi":"3.1.0","info":{"title":"TaskGate Deterministic x402 APIs","version":"1.1.0","description":"Machine-payable deterministic APIs for cross-border business dates and crypto task screening."},"servers":[{"url":"https://taskgate.13-204-198-31.sslip.io"}],"paths":{"/v1/cross-border-business-date":{"get":{"summary":"Compute a cross-border business date with query parameters","description":"Optional query parameters: startDate, signed businessDays, comma-separated calendars, and includeStart. With no parameters, returns the documented worked example after payment.","parameters":[{"name":"startDate","in":"query","schema":{"type":"string"}},{"name":"businessDays","in":"query","schema":{"type":"integer","minimum":-366,"maximum":366}},{"name":"calendars","in":"query","schema":{"type":"string"},"example":"US-NY,GB-ENG"},{"name":"includeStart","in":"query","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Paid date calculation","content":{"application/json":{"example":{"startDate":"2026-12-23","businessDays":3,"calendars":[{"country":"US","subdivision":"NY"},{"country":"GB","subdivision":"ENG"}],"resultDate":"2026-12-30","countedDates":["2026-12-24","2026-12-29","2026-12-30"],"skipped":[{"date":"2026-12-25","reasons":[{"calendar":"US-NY","kind":"holiday","name":"Christmas Day"},{"calendar":"GB-ENG","kind":"holiday","name":"Christmas Day"}]}],"rules":{"dayCountsWhen":"all_calendars_open","includeStart":false},"ruleset":"python-holidays@0.102","disclaimer":"Calendar computation only; not legal, banking, payroll, settlement, or delivery advice."}}}},"400":{"description":"Input rejected before payment"},"402":{"description":"x402 payment required"}}},"post":{"summary":"Compute a cross-border business date","description":"Adds signed business days from a date. A date counts only when every requested country/subdivision calendar is open.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["startDate","businessDays","calendars"],"properties":{"startDate":{"type":"string","format":"date"},"businessDays":{"type":"integer","minimum":-366,"maximum":366,"not":{"const":0}},"calendars":{"type":"array","minItems":1,"maxItems":5,"items":{"type":"object","required":["country"],"properties":{"country":{"type":"string","pattern":"^[A-Za-z]{2}$"},"subdivision":{"type":"string"}}}},"includeStart":{"type":"boolean","default":false}}},"example":{"startDate":"2026-12-23","businessDays":3,"calendars":[{"country":"US","subdivision":"NY"},{"country":"GB","subdivision":"ENG"}],"includeStart":false}}}},"responses":{"200":{"description":"Paid date calculation","content":{"application/json":{"example":{"startDate":"2026-12-23","businessDays":3,"calendars":[{"country":"US","subdivision":"NY"},{"country":"GB","subdivision":"ENG"}],"resultDate":"2026-12-30","countedDates":["2026-12-24","2026-12-29","2026-12-30"],"skipped":[{"date":"2026-12-25","reasons":[{"calendar":"US-NY","kind":"holiday","name":"Christmas Day"},{"calendar":"GB-ENG","kind":"holiday","name":"Christmas Day"}]}],"rules":{"dayCountsWhen":"all_calendars_open","includeStart":false},"ruleset":"python-holidays@0.102","disclaimer":"Calendar computation only; not legal, banking, payroll, settlement, or delivery advice."}}}},"400":{"description":"Input rejected before payment"},"402":{"description":"x402 payment required"}}}},"/v1/cross-border-business-date/example":{"get":{"summary":"Free worked example","security":[],"responses":{"200":{"description":"Example calculation"}}}},"/v1/crypto-task-gate":{"get":{"summary":"Get current crypto task viability snapshot","description":"Returns public-source task inventory statistics, conservative gate results, rejection reasons, and canonical source URLs.","responses":{"200":{"description":"Paid snapshot","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"x402 payment required"}}}},"/preview":{"get":{"summary":"Free source-health preview","security":[],"responses":{"200":{"description":"Current public-source counts and health"}}}},"/health":{"get":{"summary":"Service health","security":[],"responses":{"200":{"description":"Healthy"}}}}}}