API changelog
Human record of the versioned public HTTP inspect contract (ADR 0014). Separate from the Detector changelog. Breaking changes require a version bump (new URL major + OpenAPI major + an entry here). Wire shape: openapi/openapi.json.
Repo source: docs/api-changelog.md.
0.6.0 — 2026-11-27
Section titled “0.6.0 — 2026-11-27”Additive under URL major v1 (ADR 0014 decision 3; ADR 0048 / #204).
- Optional request field
preset:chatbot,ragoragent(nullor omitted = default table). It selects which source rules produceenforcementand does nothing unlessenforceistrue. Findings,decision, usage and errors are identical for every preset. An unknown value is 400invalid_request. - With a finding:
chatbotblocksuser_promptonly;ragblocksretrieved_documentonly;agentblocksretrieved_document,tool_outputandtool_description. Everything else, and every request without findings, isallow. It is a recommendation: you apply it. - A deployment older than
0.6.0rejectspresetwith 400invalid_request(unknown field). OpenAPI document revision0.6.0.
0.5.0 — 2026-11-26
Section titled “0.5.0 — 2026-11-26”Additive under URL major v1 (ADR 0014 decision 3; ADR 0047 / #205, #203).
- Optional request field
enforce(boolean, defaultfalse). Whentrue, the success body includesenforcement:alloworblock.decision(no_findings|review) is unchanged. - Optional success field
enforcement, present only whenenforceistrue. A finding inretrieved_document,tool_outputortool_descriptiongivesblock;user_promptand no findings giveallow. It is a recommendation: you apply it. A failed detector is still an error, neverallow. - A deployment older than
0.5.0rejectsenforcewith 400invalid_request(unknown field). OpenAPI document revision0.5.0.
0.4.0 — 2026-11-25
Section titled “0.4.0 — 2026-11-25”- Successful
prompt_injectioninspections include the optional booleanprompt_injection_truncated.truemeans the model inspected a prefix, even ifdecisionisno_findings.falsemeans the entire submitted text fit in the model context. Other checks can complete over the full text, and secrets-only responses omit the field. Treat an absent field as unknown when talking to older deployments. - The
/v1route and error responses use the existing contract. The OpenAPI document revision is0.4.0.
0.3.0 — 2026-11-23
Section titled “0.3.0 — 2026-11-23”Additive under URL major v1.
- Optional request field
secrets_mode:report(default when omitted) orredact(#206 / ADR 0017). - Optional success field
redacted_contentwhensecrets_modeisredact(MVP tokens →[REDACTED]). Omitted in report mode. - OpenAPI document revision
0.3.0.
0.2.0 — 2026-11-23
Section titled “0.2.0 — 2026-11-23”Additive under URL major v1.
- New
ErrorCode:detector_failedwhen a registered detector fails to complete (#132 / ADR 0005). - Documented error statuses: 400, 401, 409, 413, 422, 429, 500, 503 (
detector_failedwithErrorBodyon inspect). Not Polar webhook empty-body 503. - OpenAPI document revision
0.2.0.
0.1.0 — 2026-11-23
Section titled “0.1.0 — 2026-11-23”Frozen baseline for URL major v1.
- Public route: Bearer-authenticated
POST /v1/inspect.POST /v1/classifyis not mounted. - OpenAPI document revision
0.1.0matches the running route and error schema. - Required header:
Idempotency-Key. - Request body:
content,source,checks. - Success body:
request_id,decision,findings,usage. - Documented error statuses: 400, 401, 409, 413, 422, 429, 500.
- Not in this freeze: accounts/keys/health/billing routes; published numeric limits; SDK registry publish; detector version semantics.