# XH Agents Agentic Weighbridge — x402 Endpoint Auditor

> XH Agents Agentic Weighbridge — x402 Endpoint Auditor is a paid API for AI agents from xhagents.xyz, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-21).

Runs a full x402 protocol compliance audit on a given endpoint, returning PASS/FAIL/ERROR verdicts for each check, raw HTTP captures, a 0-100 trust score, and an ed25519-signed attestation document.

## Facts

- Endpoint: GET https://xhagents.xyz/api/weighbridge?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/xh-agents-agentic-weighbridge-x402-endpoint-auditor-a8d64daa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_p3pah1CAOFauFbMJSjISS

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 xh-agents-agentic-weighbridge-x402-endpoint-auditor-a8d64daa
```

Example prompt: Can you run a full x402 compliance audit on https://xhagents.xyz/api/x402-trust using POST as the paying verb, and give me the PASS/FAIL verdicts, trust score, and signed attestation document?

## When to prefer this

Use this endpoint when you need a comprehensive, cryptographically-attested x402 protocol compliance report — not just a liveness ping. It is the right choice when you need signed evidence of compliance (e.g. for listing an endpoint on a marketplace, debugging an integration, or performing due diligence on a third-party paid API). Prefer this over manual HTTP inspection when you need structured verdicts, trust scoring, and reproducible raw captures in one call.

## Known failure modes

- Target endpoint unreachable — ERROR status returned with network error details
- Target URL not provided — 400 bad request
- Target endpoint returns no 402 at all — all payment checks FAIL
- x402 shape malformed — specific checks FAIL with detail explaining the deviation
- Discovery manifest missing — discovery check FAIL
- Trust score unavailable — omitted or zeroed if include_trust is false or data insufficient

## How this service works

agentic-weighbridge — the arena door. Bring one x402 endpoint and leave with a recorded measurement: PASS/FAIL/ERROR per check (402 on the paid verb, x402Version==2 shape, resource url match, accepts[] network/asset/amount, EIP-712 extra, discovery manifest listing the route, openapi presence), the raw captures behind every verdict, plus the 0-100 trust score folded in — all inside one document ...

## Output

A signed JSON document containing: overall payable/fail verdict, per-check PASS/FAIL/ERROR results (covering 402 response on paid verb, x402Version==2 shape, resource URL match, accepts[] network/asset/amount, EIP-712 extras, discovery manifest, OpenAPI presence), a 0-100 trust score broken down by category, raw HTTP captures with timing and headers for every probe, an sha256 document hash, and an ed25519 attestation signature — all in one response.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "The x402 endpoint to weigh"
      },
      "method": {
       "type": "string",
       "description": "Verb the paying agent will use; auto probes GET then POST"
      },
      "include_trust": {
       "type": "boolean",
       "description": "Also fold in the 0-100 trust score (default true)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "trust": {
   "score": 93,
   "points": {
    "gate": 25,
    "challenge": 20,
    "discovery": 15
   },
   "verdict": "pay"
  },
  "checks": [
   {
    "id": "challenge_on_the_paid_verb",
    "detail": "402 with PAYMENT-REQUIRED on POST",
    "status": "PASS"
   }
  ],
  "sha256": "9f2b…",
  "status": "payable",
  "target": "https://xhagents.xyz/api/x402-trust",
  "product": "agentic-weighbridge",
  "verdict": "payable",
  "price_usdc": 0.05,
  "sha_checks": {
   "FAIL": 0,
   "PASS": 8,
   "ERROR": 0
  },
  "attestation": {
   "alg": "ed25519",
   "key_id": "02509586739ef463",
   "signature_b64": "…"
  },
  "not_checked": [
   "does the seller deliver after payment",
   "uptime over time",
   "operator identity"
  ],
  "raw_captures": [
   {
    "ms": 118.4,
    "error": null,
    "request": {
     "url": "https://xhagents.xyz/api/x402-trust",
     "verb": "POST"
    },
    "response": {
     "status": 402,
     "headers": {
      "content-type": "application/json"
     }
    }
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/xh-agents-agentic-weighbridge-x402-endpoint-auditor-a8d64daa/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from xhagents.xyz](https://www.zero.xyz/host/xhagents.xyz/llms.txt)
