---
title: "Code Review (x402)"
method: POST
path: "/x402/v2/code-review"
tags: ["x402"]
---

# Code Review (x402)

`POST /x402/v2/code-review`

## Request

- Base URL: `https://api.strale.io`
- URL: `https://api.strale.io/x402/v2/code-review`
- Auth: none required

AI code review. Returns issues with severity, line numbers, fix suggestions. Focus on security, performance, readability, or bugs.

## Request body

- object
  - `code` string, required
  - `focus` string: security/performance/readability/bugs/all
  - `language` string

## Response `200`

Success

- object
  - `issues` unknown[]
    - unknown
  - `quick_wins` unknown[]
    - unknown
  - `overall_score` integer
  - `security_flags` unknown[]
    - unknown

## Other responses

- `402`: Payment required (x402 — pay with USDC on Base)

---

[API](https://skmtc.dev/strale/apis/strale-api-2.md) · [All operations](https://skmtc.dev/strale/apis/strale-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/strale/apis/strale-api-2/revisions/a5293878cfc6?raw)
