# Synapse Code Review

> Synapse Code Review is a paid API for AI agents from anibalb.duckdns.org, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-31).

Analyzes code submitted via HTTP GET and returns a list of issues with severity ratings, fix suggestions, and a summary

## Facts

- Endpoint: GET https://anibalb.duckdns.org/x402/code-review?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/synapse-code-review-dcfd77fa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_O0ThB97bjf49aRm2IdC4k

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 synapse-code-review-dcfd77fa
```

Example prompt: Can you review this code snippet for bugs and issues? I want a list of problems with severity ratings and suggested fixes.

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call automated code review without setting up accounts or API keys. It is ideal for AI agents needing programmatic code quality feedback with structured output (line numbers, severity, fixes). Prefer it over heavier static analysis tools when you want lightweight, on-demand review at $0.01 per call over the x402 micropayment protocol.

## Known failure modes

- Missing required 'input' parameter returns a 400/422 validation error
- Invalid HTTP method value (not GET/HEAD/DELETE) causes schema validation failure
- Empty or malformed code input may produce an empty issues array with no actionable feedback
- Service unavailable (duckdns dynamic DNS host may go offline) returns a connection error
- Payment not completed via x402 protocol results in a 402 Payment Required response

## How this service works

Public data and utility APIs paid per call in USDC on Base (x402). No accounts, no API keys. 174 routes: crypto/equity data, onchain reads, DNS/email/security intel, geo/weather, x402 payment diagnostics, dev utilities and more.

## Output

A JSON object containing an array of issues (each with a line number, issue description, severity level such as 'high', and a suggested fix) plus an overall summary string describing the quality of the reviewed code.

## 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",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "issues": [
   {
    "fix": "...",
    "line": 1,
    "issue": "...",
    "severity": "high"
   }
  ],
  "summary": "..."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/synapse-code-review-dcfd77fa/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from anibalb.duckdns.org](https://www.zero.xyz/host/anibalb.duckdns.org/llms.txt)
