{"openapi":"3.0.3","info":{"title":"Code Agent x402","version":"1.2.0","description":"AI developer tools paid in USDC on Base via HTTP 402 / x402","x-guidance":"Discover current pilot services here, send the documented JSON body, and let an x402 v2 client handle the 402 challenge. audit-diff is AI-assisted and not a formal security audit.","contact":{"email":"ops@mamenesia.com","url":"https://code.mamenesia.com"}},"servers":[{"url":"https://code.mamenesia.com"}],"x-discovery":{"network":"base","chainId":8453,"asset":"USDC","payTo":"0xc7e77CF4Bd5F7f1307d5846b1dbFcf0812FC0A46","wellKnown":"https://code.mamenesia.com/.well-known/x402"},"paths":{"/health":{"get":{"summary":"Health","security":[],"responses":{"200":{"description":"ok"}}}},"/ping":{"get":{"summary":"Free ping","security":[],"responses":{"200":{"description":"ok"}}}},"/api":{"get":{"summary":"Service catalog","security":[],"responses":{"200":{"description":"catalog"}}}},"/service/audit-diff":{"post":{"summary":"Review a code diff for bugs","description":"Paste a unified diff and the language. Returns a focused review: bugs, regressions, edge cases, and suggestions. Price: $0.25 USDC on Base. Without payment returns 402.","operationId":"audit-diff","x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.25"},"network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xc7e77CF4Bd5F7f1307d5846b1dbFcf0812FC0A46"},"parameters":[{"name":"PAYMENT-SIGNATURE","in":"header","required":false,"schema":{"type":"string"},"description":"Base64-encoded x402 v2 payment payload matching the advertised requirements"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["diff"],"properties":{"diff":{"type":"string","description":"Unified diff to review"},"language":{"type":"string","description":"Programming language hint","example":"javascript"}}}}}},"responses":{"200":{"description":"Paid result","content":{"application/json":{"schema":{"type":"object","properties":{"service":{"type":"string"},"paid":{"type":"string"},"result":{"type":"object","additionalProperties":true},"ok":{"type":"boolean"},"message":{"type":"string"}}}}}},"402":{"description":"Payment required (x402)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"x402Version":{"type":"integer"},"accepts":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}}}}}},"/service/tip-jar":{"post":{"summary":"Tip the operator ($0.01)","description":"Make a $0.01 USDC tip through the x402 v2 flow. Returns a thank-you receipt. Lowest-friction first payment to verify x402 flow. Price: $0.01 USDC on Base. Without payment returns 402.","operationId":"tip-jar","x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.01"},"network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xc7e77CF4Bd5F7f1307d5846b1dbFcf0812FC0A46"},"parameters":[{"name":"PAYMENT-SIGNATURE","in":"header","required":false,"schema":{"type":"string"},"description":"Base64-encoded x402 v2 payment payload matching the advertised requirements"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"note":{"type":"string","description":"Optional tip note","example":"thanks"}},"additionalProperties":true}}}},"responses":{"200":{"description":"Paid result","content":{"application/json":{"schema":{"type":"object","properties":{"service":{"type":"string"},"paid":{"type":"string"},"result":{"type":"object","additionalProperties":true},"ok":{"type":"boolean"},"message":{"type":"string"}}}}}},"402":{"description":"Payment required (x402)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"x402Version":{"type":"integer"},"accepts":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}}}}}}}}