{"openapi":"3.1.0","info":{"title":"FormatForge API","version":"1.0.0","description":"Convert structured data between JSON, CSV, TSV, YAML, and XML. Free during beta; a per-call (x402) endpoint handles bulk/large payloads."},"servers":[{"url":"https://data.wrapper-agency.com"}],"paths":{"/api/v1/convert":{"post":{"summary":"Convert structured data between formats","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["from","to","data"],"properties":{"from":{"type":"string","enum":["json","csv","tsv","yaml","xml"],"example":"json"},"to":{"type":"string","enum":["json","csv","tsv","yaml","xml"],"example":"csv"},"data":{"type":"string","description":"Source document as a string.","example":"[{\"id\":1,\"name\":\"Ada\"}]"}}}}}},"responses":{"200":{"description":"Converted output","content":{"application/json":{"example":{"from":"json","to":"csv","output":"id,name\n1,Ada"}}}}}},"get":{"summary":"Convert small payloads via query string","parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"string","enum":["json","csv","tsv","yaml","xml"]}},{"name":"to","in":"query","required":true,"schema":{"type":"string","enum":["json","csv","tsv","yaml","xml"]}},{"name":"data","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Converted output","content":{"application/json":{"example":{"from":"json","to":"csv","output":"id,name\n1,Ada"}}}}}}},"/api/v1/pro/convert":{"post":{"summary":"Paid (x402) bulk/large conversion","description":"Same body as /api/v1/convert. Requires an x402 payment (USDC on Base); responds 402 with payment requirements when unpaid.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["from","to","data"],"properties":{"from":{"type":"string","enum":["json","csv","tsv","yaml","xml"],"example":"json"},"to":{"type":"string","enum":["json","csv","tsv","yaml","xml"],"example":"csv"},"data":{"type":"string","description":"Source document as a string.","example":"[{\"id\":1,\"name\":\"Ada\"}]"}}}}}},"responses":{"200":{"description":"Converted output","content":{"application/json":{"example":{"from":"json","to":"csv","output":"id,name\n1,Ada"}}}},"402":{"description":"Payment required (x402)"}}}}}}