# Yuki Opportunity Intel – API Reliability Check

> Yuki Opportunity Intel – API Reliability Check is a paid API for AI agents from yuki-opportunity-intel.happy-porter.workers.dev, paid per call via x402, $0.1/call, status unknown (last checked 2026-10-21).

Probes a target HTTP endpoint for reachability, correct status, expected response content, and x402/OpenAPI discoverability, returning a pass/caution/fail verdict with findings and suggested follow-up checks.

## Facts

- Endpoint: POST https://yuki-opportunity-intel.happy-porter.workers.dev/v1/api-reliability?utm_source=zero.xyz
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/yuki-opportunity-intel-api-reliability-check-d45a8b4b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1fB_l8y4kMZXn9UPrHSlM

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 yuki-opportunity-intel-api-reliability-check-d45a8b4b -d '<json body>'
```

Example prompt: Can you probe https://payments.example.com/charge with a GET request, expect a 200 status, and check whether it has a valid OpenAPI spec — I want a pass/caution/fail verdict before I wire it into my workflow.

## When to prefer this

Use this endpoint when you need a structured, agent-readable verdict on whether a specific HTTP API is reachable, returns the right status and content, and is discoverable via OpenAPI or x402 — especially before wiring an unknown or paid API into an agentic workflow. Prefer it over raw HTTP fetches when you want parsed findings, latency data, and OpenAPI discovery in a single call.

## Known failure modes

- Target URL unreachable or DNS failure — verdict 'fail' with network error finding
- Unexpected HTTP status code — verdict 'caution' or 'fail' with status mismatch finding
- Expected text not found in response body — verdict 'caution' with text-match finding
- OpenAPI spec missing or invalid JSON — discovery.valid_json false, caution finding
- Input missing required 'url' query param — 400 validation error
- Target URL returns a redirect loop — fail verdict with redirect finding

## How this service works

Decision APIs for agents: paid-work START/WAIT/REJECT triage and x402/API discoverability checks.

## Output

A JSON object with a top-level verdict ('pass', 'caution', or 'fail'), a list of findings (issues discovered), detailed response metadata (status code, latency in ms, headers, body sample, content-type, final URL after redirects), a discovery object showing whether an OpenAPI spec was found and how many paths it documents, the timestamp of the check, and a next_checks array of recommended follow-up actions.

## 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": [
      "POST"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "format": "uri"
      },
      "method": {
       "enum": [
        "GET",
        "HEAD",
        "POST"
       ],
       "type": "string",
       "default": "GET"
      },
      "request_body": {
       "type": "object"
      },
      "check_openapi": {
       "type": "boolean",
       "default": true
      },
      "expected_text": {
       "type": "string",
       "maxLength": 200
      },
      "expected_status": {
       "type": "integer",
       "default": 200,
       "maximum": 599,
       "minimum": 100
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "verdict",
      "checked_at",
      "request",
      "response",
      "discovery",
      "findings",
      "next_checks"
     ],
     "properties": {
      "request": {
       "type": "object"
      },
      "verdict": {
       "enum": [
        "pass",
        "caution",
        "fail"
       ],
       "type": "string"
      },
      "findings": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "response": {
       "type": "object"
      },
      "discovery": {
       "type": "object"
      },
      "checked_at": {
       "type": "string"
      },
      "next_checks": {
       "type": "array",
       "items": {
        "type": "string"
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "request": {
   "url": "https://yuki-opportunity-intel.happy-porter.workers.dev/health",
   "method": "GET",
   "expected_status": 200
  },
  "verdict": "pass",
  "findings": [],
  "response": {
   "ok": true,
   "status": 200,
   "headers": {
    "content-type": "application/json"
   },
   "final_url": "https://yuki-opportunity-intel.happy-porter.workers.dev/health",
   "latency_ms": 120,
   "body_sample": "{\"ok\":true}",
   "expected_text_match": null
  },
  "discovery": {
   "url": "https://yuki-opportunity-intel.happy-porter.workers.dev/openapi.json",
   "status": 200,
   "checked": true,
   "valid_json": true,
   "documented_paths": 5,
   "target_path_documented": true
  },
  "checked_at": "2026-07-17T00:00:00Z",
  "next_checks": [
   "Preserve this request as a regression probe and monitor latency/status over time."
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/yuki-opportunity-intel-api-reliability-check-d45a8b4b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from yuki-opportunity-intel.happy-porter.workers.dev](https://www.zero.xyz/host/yuki-opportunity-intel.happy-porter.workers.dev/llms.txt)
