# Synthex Forge Code Review Brief

> Synthex Forge Code Review Brief is a paid API for AI agents from x402.synthexforge.com, paid per call via x402, $0.15/call, status unknown (last checked 2026-10-23).

Generates a concise code review brief for submitted code, returning a signed attestation artifact for the given language and snippet.

## Facts

- Endpoint: POST https://x402.synthexforge.com/v1/utils/code-review-brief?utm_source=zero.xyz
- Price: $0.15/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/synthex-forge-code-review-brief-b6a329be
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_C-bMNy8egLEOBWFHvVr0x

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 synthex-forge-code-review-brief-b6a329be -d '<json body>'
```

Example prompt: Can you give me a code review brief for this Python snippet: `def add(a, b): return a + b` — I need a concise summary of any issues or improvements?

## When to prefer this

Choose this endpoint when you need a fast, cryptographically signed code review brief — especially for compliance, audit, or governance workflows where an Ed25519-attested artifact is required. Prefer this over generic LLM code review when you need a verifiable, on-chain-payable attestation on Base mainnet rather than an informal suggestion.

## Known failure modes

- Missing or empty 'code' field returns an error response
- Unsupported or unrecognized 'language' value may degrade review quality
- Payment not provided or insufficient USDC results in HTTP 402 payment-required response
- Malformed JSON body returns a 400 bad request
- Extremely large code snippets may be rejected or truncated
- Network timeout if the signing/attestation backend is slow

## How this service works

Synthex Forge x402 Receive: 41 paid verification, attestation and governance endpoints (Ed25519 + SHA-256 signed artifacts) plus free verify/public-key/standard sibling routes. Paid routes answer HTTP 402 with an x402 v2 `payment-required` envelope (atomic USDC on Base mainnet, chain ID 8453). Free routes are declared with `security: []` per the x402scan discovery spec.

## Output

Returns a JSON object with ok: true and a concise code review brief containing analysis, findings, and suggestions for the submitted code snippet, signed with Ed25519 and SHA-256 per the Synthex Forge attestation standard.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "code": {
   "type": "string"
  },
  "language": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/synthex-forge-code-review-brief-b6a329be/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.synthexforge.com](https://www.zero.xyz/host/x402.synthexforge.com/llms.txt)
