Skip to main content

Endpoint

POST /v1/fix
Returns a streaming text/plain response containing an AI-generated fix.

Request

Same body structure as /v1/explain:
{
  "finding": { ... },
  "api_key": "sk-ant-optional-override"
}
See POST /v1/explain for the full FindingSchema.

Response

Streaming text/plain — a structured fix suggestion including code diffs, migration steps, and context.

Examples

import httpx

with httpx.stream(
    "POST",
    "https://api.zenveil.dev/v1/fix",
    headers={"X-API-Key": "zvk_live_your_key"},
    json={"finding": finding},
) as response:
    for chunk in response.iter_text():
        print(chunk, end="", flush=True)