{
 "aiax_version": "0.1",
 "section_id": "agentgate",
 "purpose": "AgentGate: Checks whether an AI agent is registered in the Concordium Agent Registry (CIS-8004), Active, and Verified by Concordium (Agent Card hash matches on-chain). Suited to agent marketplaces and payment flows that need to confirm a counterparty agent identity before trusting or paying it. Input: badge (CIS-2 token address) or Concordium account.",
 "inputs": {
  "type": "object",
  "properties": {
   "id": {
    "type": "string",
    "description": "Badge (CIS-2 token address, short or CAIP-19 form) or Concordium account address"
   },
   "network": {
    "type": "string",
    "enum": [
     "mainnet",
     "testnet",
     "devnet"
    ],
    "description": "Concordium network, default mainnet"
   }
  },
  "required": [
   "id"
  ]
 },
 "outputs": {
  "type": "object",
  "properties": {
   "id": {
    "type": "string"
   },
   "kind": {
    "type": "string"
   },
   "network": {
    "type": "string"
   },
   "found": {
    "type": "boolean"
   },
   "active": {
    "type": "boolean"
   },
   "cardHashMatches": {
    "type": "boolean"
   },
   "verified": {
    "type": "boolean"
   },
   "tokenAddress": {
    "type": "string"
   },
   "tokenId": {
    "type": "integer"
   },
   "owner": {
    "type": "string"
   },
   "agentWallet": {},
   "agentUri": {
    "type": "string"
   },
   "source": {
    "type": "string"
   },
   "mock": {
    "type": "boolean"
   },
   "issues": {
    "type": "array",
    "items": {}
   }
  }
 },
 "pricing": {
  "model": "per_call",
  "amount": "0.005",
  "currency": "USDC",
  "rail": "x402"
 },
 "examples": [
  {
   "description": "GET /agentgate/v1/check-agent, paid over x402 (USDC on Base); an unpaid call answers 402 with the terms.",
   "request": {
    "method": "GET",
    "url": "https://api.youraitools.co/agentgate/v1/check-agent",
    "query": {
     "id": "Mf22soLh1NuZYFgBK8iSs",
     "network": "mainnet"
    }
   },
   "response": {
    "id": "Mf22soLh1NuZYFgBK8iSs",
    "kind": "badge",
    "network": "mainnet",
    "found": true,
    "active": true,
    "cardHashMatches": true,
    "verified": true,
    "tokenAddress": "Mf22soLh1NuZYFgBK8iSs",
    "tokenId": 484,
    "owner": "4DDvjwdcLmTy1Ar9FCKKPMiABrS261TvyXJGr4n4ypuuogXeFF",
    "agentWallet": null,
    "agentUri": "https://tippingservice.co.uk/agents/vigilonmoltbook/.well-known/agent-card.json",
    "source": "concordium-badge-check",
    "mock": false,
    "issues": []
   }
  }
 ],
 "pact_mandate_template": null,
 "extensions": {
  "youraitools": {
   "endpoint": "https://api.youraitools.co/agentgate/v1/check-agent",
   "network": "eip155:8453",
   "x402_versions": [
    2,
    1
   ],
   "mcp": "https://api.youraitools.co/agentgate/mcp",
   "openapi": "https://api.youraitools.co/agentgate/openapi.json"
  }
 }
}
