# DeFi Shield API Endpoint Trust Auditor

> DeFi Shield API Endpoint Trust Auditor is a paid API for AI agents from defi-shield-hazel.vercel.app, paid per call via x402, $0.5/call, status unknown (last checked 2026-09-14).

Audits an API endpoint URL for availability, latency, response validity, schema consistency, and produces a trust score with a list of detected issues

## Facts

- Endpoint: POST https://defi-shield-hazel.vercel.app/api/trust/endpoint-audit
- Price: $0.5/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-shield-hazel-vercel-app-149b2c39
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vZ7DIO7NqXkXe5ERIF_z-

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 defi-shield-hazel-vercel-app-149b2c39 -d '<json body>'
```

Example prompt: Can you run a full trust audit on https://api.example.com/v1/data and tell me whether it's reachable, how fast it responds, and what its trust score and any issues are?

## When to prefer this

Use this endpoint when an AI agent needs to programmatically verify whether a third-party or unknown API URL is trustworthy, live, and returning consistent responses before relying on it — especially useful in agentic workflows where a downstream API must be vetted before use, or when building trust registries for API integrations.

## Known failure modes

- Target endpoint is unreachable — audit returns available:false, trustScore near 0, and issue list noting unreachability
- Target endpoint returns unexpected schema — schemaConsistent:false flagged in response
- Network timeout on probe — high latencyMs, responseValid:false
- Malformed or invalid URL provided in request body — likely 400 or validation error response
- Target endpoint is slow but technically alive — low trust score with latency-related issues listed

## Output

Returns a JSON object with the audited URL, a trust score (0-100), availability boolean, latency in milliseconds, response validity flag, schema consistency flag, a list of detected issues, a timestamp, and any historical comparison data.

## Example request

```json
{
 "input": {
  "body": {
   "url": "https://api.example.com/v1/health"
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body",
    "method"
   ],
   "properties": {
    "body": {
     "properties": {
      "url": {
       "type": "string",
       "description": "API endpoint URL to audit for reliability"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-shield-hazel-vercel-app-149b2c39/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defi-shield-hazel.vercel.app](https://www.zero.xyz/host/defi-shield-hazel.vercel.app/llms.txt)
