{"openapi":"3.1.0","info":{"title":"Saddle Stitch Page Map","version":"1.0.0","description":"Impose a booklet into front and back page pairs, inserting blanks when the page count is not a multiple of four.","contact":{"email":"jeremy@jeremycarter.ca"}},"servers":[{"url":"https://gptenv-x402-catalog.defcronyke.workers.dev"}],"paths":{"/saddle-stitch-page-map/v1/check":{"post":{"operationId":"saddle_stitch_page_map","summary":"Impose a booklet into front and back page pairs, inserting blanks when the page count is not a multiple of four.","x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.04"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pages":{"type":"integer","exclusiveMinimum":0,"maximum":400},"binding":{"type":"string","enum":["left","right"]}},"required":["pages","binding"],"additionalProperties":false},"example":{"pages":6,"binding":"left"}}}},"responses":{"200":{"description":"Service result","content":{"application/json":{"schema":{"type":"object"},"example":{"blank_pages":2,"sheets":[{"front":[null,1],"back":[2,null]},{"front":[6,3],"back":[4,5]}]}}}},"400":{"description":"Invalid request"},"402":{"description":"x402 exact payment required on Base"},"503":{"description":"Payment unavailable"}}}}}}