{"name":"cos-transform","version":"1.0.0","description":"Paid AI agent API. Unpaid production requests return HTTP 402. Set DEV_BYPASS=true for local test, or send X-Payment-Token / Authorization: Bearer matching PAYMENT_TOKEN.","payment":{"production":"HTTP 402 JSON with payment_required, price_usdc, pay_to, instructions","interim":"X-Payment-Token or Authorization: Bearer <PAYMENT_TOKEN>","x402":"Documented path for Base USDC; verify stubbed until facilitator/on-chain check lands","network":"base","asset":"USDC","price_usdc":"0.01","pay_to":"0xA0F658582BBA42a5d8b0fdac2A28e2706AAf9D1b","dev_bypass":"DEV_BYPASS=true skips payment gate"},"endpoints":[{"method":"GET","path":"/","auth":false,"summary":"Landing page"},{"method":"GET","path":"/health","auth":false,"summary":"Health check"},{"method":"GET","path":"/docs","auth":false,"summary":"This document"},{"method":"POST","path":"/v1/json-to-csv","auth":true,"summary":"Convert JSON array/object to CSV","body":"JSON array of objects, single object, or { data: [...] }","query":{"download":"1 to attach Content-Disposition"},"response":"text/csv"},{"method":"POST","path":"/v1/rewrite","auth":true,"summary":"Rewrite short text (rule-based; optional LLM hook)","body":{"text":"string (required, max 10000)","style":"clean | formal | casual | concise","useLlm":"boolean — uses stub until OPENAI_API_KEY wired"}}],"examples":{"health":"curl -s http://localhost:8787/health","json_to_csv":"curl -s -X POST http://localhost:8787/v1/json-to-csv -H \"Content-Type: application/json\" -d '[{\"name\":\"Ada\",\"role\":\"eng\"}]'","rewrite":"curl -s -X POST http://localhost:8787/v1/rewrite -H \"Content-Type: application/json\" -d '{\"text\":\"hello   world!!\",\"style\":\"clean\"}'","with_token":"curl -s -X POST http://localhost:8787/v1/json-to-csv -H \"Content-Type: application/json\" -H \"X-Payment-Token: $PAYMENT_TOKEN\" -d '[{\"a\":1}]'"}}