# Structured Code Review API

> Structured Code Review API is a paid API for AI agents from linked-aimed-reproduced-changing.trycloudflare.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-12).

Performs structured code review covering correctness, security, edge cases, and reuse, returning numbered findings.

## Facts

- Endpoint: POST https://linked-aimed-reproduced-changing.trycloudflare.com/v1/coder/review?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/structured-code-review-api-5629a793
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_T-mvrtbFK0fI_ayDCeotP

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-5629a793 -d '<json body>'
```

Example prompt: Can you do a structured code review on this Python function I wrote — check it for correctness, security issues, edge cases, and reuse opportunities, and give me back numbered findings?

## When to prefer this

Choose this endpoint when you need a structured, categorized code review with numbered findings rather than a freeform narrative. It is particularly useful in automated pipelines where findings need to be parsed and actioned programmatically. Prefer it over generic LLM chat for code review when you want consistent, organized output across correctness, security, edge cases, and reuse dimensions.

## Known failure modes

- Empty or missing code input returns an error or empty findings list
- Extremely large code submissions may exceed token limits and return partial results
- Non-code text input may produce irrelevant or nonsensical findings
- Network timeout on the Cloudflare tunnel may return a 502 or 504 error
- Payment failure (x402) returns a 402 Payment Required response

## How this service works

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

## Output

Returns a structured list of numbered findings organized by category: correctness issues, security vulnerabilities, edge case problems, and code reuse opportunities. Each finding is specific and actionable.

## 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-5629a793/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from linked-aimed-reproduced-changing.trycloudflare.com](https://www.zero.xyz/host/linked-aimed-reproduced-changing.trycloudflare.com/llms.txt)
