Endpoint
text/plain response containing an AI-generated fix.
Request
Same body structure as/v1/explain:
FindingSchema.
Response
Streamingtext/plain — a structured fix suggestion including code diffs, migration steps, and context.
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Stream an AI-generated fix for a security finding.
POST /v1/fix
text/plain response containing an AI-generated fix.
/v1/explain:
{
"finding": { ... },
"api_key": "sk-ant-optional-override"
}
FindingSchema.
text/plain — a structured fix suggestion including code diffs, migration steps, and context.
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)
const response = await fetch('https://api.zenveil.dev/v1/fix', {
method: 'POST',
headers: {
'X-API-Key': 'zvk_live_your_key',
'Content-Type': 'application/json',
},
body: JSON.stringify({ finding }),
});
const reader = response.body.getReader();
const decoder = new TextDecoder();
while (true) {
const { done, value } = await reader.read();
if (done) break;
process.stdout.write(decoder.decode(value));
}