{"endpoint":"/api/demo/agent-to-agent","method":"POST","description":"Agent-to-Agent mutual verification demo. A pre-registered demo agent verifies your agent's identity on-chain, performs a sameHuman check, and signs its response so you can verify it came from a real agent. This is the primary demo endpoint for testing your integration.","authentication":{"required":true,"protocol":"Self Agent ID signed headers","requiredHeaders":{"x-self-agent-signature":"HMAC signature of the request","x-self-agent-timestamp":"ISO 8601 timestamp of the request"},"optionalHeaders":{"x-self-agent-keytype":"Key type: 'ed25519' or omit for ECDSA","x-self-agent-key":"Agent public key (required for Ed25519)"},"howToSign":"Use agent.fetch() from @selfxyz/agent-sdk, or manually sign with agent.signRequest() and attach headers."},"bodySchema":{"?network":"Query param: 'celo-sepolia' (default) or 'celo-mainnet'"},"exampleBody":{"test":"agent-to-agent-demo"},"notes":["This is the recommended first test for any new agent integration.","The response includes signed headers from the demo agent, demonstrating mutual authentication.","The sameHuman field tells you if your agent and the demo agent share the same human backer.","Requires DEMO_AGENT_PRIVATE_KEY_SEPOLIA or DEMO_AGENT_PRIVATE_KEY_MAINNET on the server."],"sdkExample":"const res = await agent.fetch(\"https://app.ai.self.xyz/api/demo/agent-to-agent?network=celo-sepolia\", { method: \"POST\", headers: { \"Content-Type\": \"application/json\" }, body: JSON.stringify({}) });"}