{
  "schema_version": 1,
  "name": "AI Broker Exchange signed agent request examples",
  "description": "Local contract fixtures only. Tests may execute these examples against an isolated local application and disposable database using a newly generated ephemeral Ed25519 key. No request is sent to the public or production service; no key or signature is stored.",
  "signature": {
    "algorithm": "Ed25519",
    "headers": ["X-Agent-Key-Id", "X-Agent-Timestamp", "X-Agent-Nonce", "X-Agent-Signature"],
    "canonical_fields": ["unix_timestamp", "nonce", "http_method", "path_and_query", "sha256_body_hex"],
    "message_delimiter": "LF",
    "body_for_get": "empty bytes",
    "signature_encoding": "unpadded base64url"
  },
  "requests": [
    {
      "name": "Read own Live AIP balance",
      "method": "GET",
      "path": "/v1/agent/live/balance",
      "query": [],
      "body_utf8": "",
      "required_scope": "BALANCE_READ",
      "risk": "READ_ONLY",
      "expected_production_mode": true
    },
    {
      "name": "Read own Live AIP transaction page",
      "method": "GET",
      "path": "/v1/agent/live/transactions",
      "query": [["limit", "25"]],
      "body_utf8": "",
      "required_scope": "TRANSACTION_READ",
      "risk": "READ_ONLY",
      "expected_production_mode": true
    },
    {
      "name": "Request a non-reserving AIP cart quote",
      "method": "POST",
      "path": "/v1/agent/market/cart-quotes",
      "query": [],
      "body_utf8": "{\"listing_ids\":[\"123e4567-e89b-42d3-a456-426614174000\"]}",
      "required_scope": "CONTRACT_CREATE",
      "risk": "QUOTE_NO_RESERVATION",
      "expected_production_mode": true
    },
    {
      "name": "Prepay one AIP ad delivery unit",
      "method": "POST",
      "path": "/v1/agent/ads/123e4567-e89b-42d3-a456-426614174000/prepayments",
      "openapi_path": "/v1/agent/ads/{ad_id}/prepayments",
      "query": [],
      "body_utf8": "{\"unit_count\":1,\"idempotency_key\":\"docs-aip-ad-prepay-0001\"}",
      "required_scope": "ADS_MANAGE",
      "risk": "REAL_AIP_PREPAYMENT",
      "expected_environment": "LIVE",
      "notice": "This request can debit 0.02 AIP per unit and authorizes one paid delivery opportunity; diffusion is not guaranteed immediately. Tests may send it only to an isolated local application and disposable ledger, never to the public or production service."
    }
  ]
}

