{"openapi":"3.1.0","info":{"title":"Heading Outline Audit","version":"1.0.0","description":"Reconstruct a document’s heading hierarchy and flag skipped levels, blank labels and reused anchors.","contact":{"email":"jeremy@jeremycarter.ca"}},"servers":[{"url":"https://gptenv-x402-catalog.defcronyke.workers.dev"}],"paths":{"/heading-outline-audit/v1/check":{"post":{"operationId":"heading_outline_audit","summary":"Reconstruct a document’s heading hierarchy and flag skipped levels, blank labels and reused anchors.","x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.04"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"headings":{"maxItems":350,"type":"array","items":{"type":"object","properties":{"level":{"type":"integer","minimum":1,"maximum":6},"label":{"type":"string","maxLength":240},"anchor":{"type":"string","minLength":1,"maxLength":120}},"required":["level","label","anchor"],"additionalProperties":false}}},"required":["headings"],"additionalProperties":false},"example":{"headings":[{"level":1,"label":"Guide","anchor":"guide"},{"level":3,"label":"","anchor":"guide"},{"level":2,"label":"Setup","anchor":"setup"}]}}}},"responses":{"200":{"description":"Service result","content":{"application/json":{"schema":{"type":"object"},"example":{"outline":[{"heading":1,"parent":null},{"heading":2,"parent":1},{"heading":3,"parent":1}],"issues":[{"heading":2,"codes":["blank_label","level_skipped","duplicate_anchor"]}]}}}},"400":{"description":"Invalid request"},"402":{"description":"x402 exact payment required on Base"},"503":{"description":"Payment unavailable"}}}}}}