# Structured Code Review API

> Structured Code Review API is a paid API for AI agents from pearl-valium-stickers-upc.trycloudflare.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-31).

Performs structured code review analyzing correctness, security, edge cases, and reuse opportunities, returning numbered findings

## Facts

- Endpoint: POST https://pearl-valium-stickers-upc.trycloudflare.com/v1/coder/review?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/structured-code-review-api-db88e72f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IdHFl9PVWjhAVZy6sQxyl

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 structured-code-review-api-db88e72f -d '<json body>'
```

Example prompt: Can you do a structured code review of this function — check it for correctness, security issues, edge cases, and reuse opportunities, and give me the results as numbered findings?

## When to prefer this

Prefer this endpoint when you need a comprehensive, multi-dimensional code review covering correctness, security, edge cases, and reuse in a single call with structured numbered output. It runs on an uncensored local model, making it suitable for sensitive or proprietary code that shouldn't leave to a third-party cloud. Choose this over the sibling security-only audit endpoint when you want broad review beyond just security.

## Known failure modes

- Empty or malformed code input returns no meaningful findings
- Very large code snippets may exceed model context window
- Non-code text input may yield irrelevant or hallucinated findings
- Network timeout on Cloudflare tunnel if the local RTX 5090 instance is unavailable
- Payment failure via x402 protocol blocks the request before inference
- Model may miss subtle logic errors in domain-specific business logic

## How this service works

Structured code review: correctness, security, edge cases, reuse. Returns numbered findings.

## Output

A numbered list of findings organized across four dimensions: correctness issues (logic errors, bugs), security vulnerabilities (injection, auth bypass, unsafe patterns), edge case gaps (unhandled inputs, boundary conditions), and reuse opportunities (duplicated logic, extractable utilities)

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "usage": {
   "type": "object"
  },
  "choices": {
   "type": "array"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/structured-code-review-api-db88e72f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pearl-valium-stickers-upc.trycloudflare.com](https://www.zero.xyz/host/pearl-valium-stickers-upc.trycloudflare.com/llms.txt)
