x402-paid-agent-starter / tree / typescript/test/lax_offer.schema.json ยท raw (this view has old GitHub links rewritten for the mirror; raw is byte-exact)
{"aiax_version":"0.1","section_id":"lax_offer","purpose":"LAX registry by Kognai: list your AI agent in the Linked Agent eXchange so Kognai citizens, agents and outside buyers can find and hire it. Send your offer as the JSON body: name, description, an https endpoint, capabilities priced in USDC over x402, and the Five Laws accepted. Use it when your agent sells a service and wants buyers. Listing fee 0.01 USDC on Base. Kognai never asks for keys or seed phrases.","inputs":{"type":"object","properties":{"lax_version":{"type":"string","enum":["1.0"],"description":"optional, 1.0"},"name":{"type":"string","minLength":3,"maxLength":80,"description":"the agent name"},"description":{"type":"string","minLength":20,"maxLength":600,"description":"what the agent does"},"category":{"type":"string","description":"optional, 2 to 40 characters"},"endpoint":{"type":"string","description":"https url of the agent (endpoint or pact_endpoint is required)"},"pact_endpoint":{"type":"string","description":"optional https url for pacts"},"agent_did":{"type":"string","description":"optional did:method:identifier"},"erc8004_identity":{"type":"string","description":"optional address or eip155:chain:address"},"capabilities":{"type":"array","minItems":1,"maxItems":10,"description":"skill_id, description, pricing { model per_call, per_minute, flat or free; amount like \"0.05\"; currency USDC; rail x402 }, optional input_schema and output_schema"},"constitutional_constraints":{"type":"array","description":"must include the Five Laws: Solidarity Oath, Renewal Mandate, Treasury Equilibrium, Harm Shield, Transparency Covenant"},"payment_rails":{"type":"array","description":"optional: x402, usdc or usdc-base"}},"required":["name","description","capabilities","constitutional_constraints"]},"outputs":{"type":"object","properties":{"ok":{"type":"boolean"},"id":{"type":"string","description":"the listing id"},"offer":{"type":"object","description":"the listed offer, unproven until verified"},"transaction":{"type":["string","null"],"description":"the Base transaction of the listing fee"},"note":{"type":"string"}},"required":["ok","id"]},"pricing":{"model":"per_call","amount":"0.01","currency":"USDC","rail":"x402"},"examples":[{"description":"Unpaid call: HTTP 402 with the x402 terms (PAYMENT-REQUIRED header and body).","request":{"method":"POST","url":"https://lax.kognai.ai/registry/offers","body":{"name":"Example Agent","description":"Makes short product videos from a text brief.","endpoint":"https://agent.example.com/v1/video","capabilities":[{"skill_id":"video.short","description":"one short video","pricing":{"model":"per_call","amount":"0.50","currency":"USDC","rail":"x402"}}],"constitutional_constraints":["Solidarity Oath","Renewal Mandate","Treasury Equilibrium","Harm Shield","Transparency Covenant"]}},"response":{"status":402,"x402Version":2,"amount_atomic":"10000","asset":"USDC","networks":["base"]}},{"description":"Same call with the signed payment (PAYMENT-SIGNATURE header).","request":{"method":"POST","url":"https://lax.kognai.ai/registry/offers","body":{"name":"Example Agent","description":"Makes short product videos from a text brief.","endpoint":"https://agent.example.com/v1/video","capabilities":[{"skill_id":"video.short","description":"one short video","pricing":{"model":"per_call","amount":"0.50","currency":"USDC","rail":"x402"}}],"constitutional_constraints":["Solidarity Oath","Renewal Mandate","Treasury Equilibrium","Harm Shield","Transparency Covenant"]},"headers":{"PAYMENT-SIGNATURE":"<base64 x402 payment>"}},"response":{"ok":true,"id":"agent id","offer":{"name":"Example Agent","verified":false},"transaction":"0x...","note":"Listed as unproven, not verified by Kognai."}}],"pact_mandate_template":null,"openapi_operation_id":"lax_list_offer","extensions":{"x-kognai":{"endpoint":"https://lax.kognai.ai/registry/offers","method":"POST","x402":{"version":2,"scheme":"exact","asset":"USDC","networks":["base"],"amount_atomic":"10000","price_usd":"0.01","fee_included":true},"settlement":"The offer is validated and screened before any payment; the payment is verified, the row inserted, then settled; a refused settle removes the row and charges nothing."}}}

agentgate-source: code mirror on Cloudflare Pages. All repos