# Agent Guild Decision API (AGD-1)

> Agent Guild Decision API (AGD-1) is a paid API for AI agents from agent-guild-5d5r.onrender.com, paid per call via x402, $1/call, status unknown (last checked 2026-09-15).

Returns a cryptographically signed AGD-1/1.0 trust decision for a given agent counterparty, including a trust estimate, reachability status, and routing recommendation, paid per-call via x402.

## Facts

- Endpoint: POST https://agent-guild-5d5r.onrender.com/check/decision
- Price: $1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-guild-decision-api-agd-1-738b9df0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ekqES59hedhjJVMTO4oz0

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent-guild-decision-api-agd-1-738b9df0 -d '<json body>'
```

Example prompt: Before I delegate the fact-check task to agent_example, can you get me a signed AGD-1 trust decision on them — I need to know their trust estimate, whether they're reachable, and if they're recommended for routing?

## When to prefer this

Choose this endpoint when you need a cryptographically signed, offline-verifiable trust decision (AGD-1/1.0) for an autonomous agent counterparty before delegating tasks or settling USDC payments. It is the right choice when you require an Ed25519 DataIntegrityProof you can retain as evidence, a reachability status with a routing recommendation, and a timestamped checkpoint. Prefer it over ad-hoc reputation lookups when auditability and non-repudiation matter, or when operating in a multi-agent environment where you cannot verify counterparties out-of-band.

## Known failure modes

- Payment not received or x402 handshake failed — no decision returned
- Unknown or unregistered agent_id — decision field may be null
- Agent endpoint unreachable — reachability_status set to not_reachable or stale
- Invalid capability string — may return error or empty routing object
- Proof verification failure if issuer DID is rotated or revoked
- Request timeout if counterparty data is not yet indexed in the checkpoint log

## How this service works

Machine-payable trust and payment-safety APIs for autonomous agents: rank counterparties before delegation, screen wallets before USDC settlement, buy signed AGD-1/AGPD-1 decisions, seal authenticated machine messages, and retain offline-verifiable evidence. Pay per call through x402 v2 on Base; verification and catalogs remain free.

## Output

A JSON object conforming to AGD-1/1.0 contract, containing: a trust estimate (0–1 float) and confidence score, reachability_status and recommended_for_routing boolean, the agent's routable endpoint URL, a checkpoint with index and head_hash for audit trail, issued_at and valid_until timestamps, and a DataIntegrityProof (eddsa-jcs-2022) signed by a did:key issuer for offline verification.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "bodyType": {
     "type": "string",
     "const": "json"
    },
    "queryParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "schema": {
     "type": "object"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "schema": {
  "type": "object",
  "required": [
   "type",
   "contract",
   "issuer",
   "capability",
   "status",
   "issued_at",
   "valid_until",
   "decision",
   "routing",
   "checkpoint",
   "proof"
  ],
  "properties": {
   "type": {
    "type": "string",
    "const": "AgentGuildDecision"
   },
   "proof": {
    "type": "object",
    "required": [
     "type",
     "cryptosuite",
     "proofValue"
    ],
    "properties": {
     "type": {
      "type": "string",
      "const": "DataIntegrityProof"
     },
     "proofValue": {
      "type": "string"
     },
     "cryptosuite": {
      "type": "string",
      "const": "eddsa-jcs-2022"
     }
    }
   },
   "issuer": {
    "type": "string",
    "pattern": "^did:key:"
   },
   "status": {
    "type": "string"
   },
   "routing": {
    "type": "object"
   },
   "contract": {
    "type": "string",
    "const": "AGD-1/1.0"
   },
   "decision": {
    "type": [
     "object",
     "null"
    ]
   },
   "issued_at": {
    "type": "string",
    "format": "date-time"
   },
   "capability": {
    "type": "string"
   },
   "checkpoint": {
    "type": "object"
   },
   "valid_until": {
    "type": "string",
    "format": "date-time"
   }
  }
 },
 "example": {
  "type": "AgentGuildDecision",
  "proof": {
   "type": "DataIntegrityProof",
   "proofValue": "zExampleEd25519Signature",
   "cryptosuite": "eddsa-jcs-2022",
   "proofPurpose": "assertionMethod",
   "verificationMethod": "did:key:z6MkExampleAgentGuildIssuer#z6MkExampleAgentGuildIssuer"
  },
  "issuer": "did:key:z6MkExampleAgentGuildIssuer",
  "status": "supply",
  "routing": {
   "endpoint": "https://agent.example/a2a",
   "routable": true,
   "provider_id": "agent_example",
   "reachability_status": "recently_reachable"
  },
  "contract": "AGD-1/1.0",
  "decision": {
   "agent_id": "agent_example",
   "contract": "AGD-1/1.0",
   "estimate": 0.93,
   "confidence": 0.82,
   "reachability_status": "recently_reachable",
   "recommended_for_routing": true
  },
  "issued_at": "2026-08-12T08:00:00+00:00",
  "capability": "fact-check",
  "checkpoint": {
   "index": 123,
   "head_hash": "sha256:example",
   "published_at": "2026-08-12T07:55:00+00:00"
  },
  "valid_until": "2026-08-12T09:00:00+00:00"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-guild-decision-api-agd-1-738b9df0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-guild-5d5r.onrender.com](https://www.zero.xyz/host/agent-guild-5d5r.onrender.com/llms.txt)
