Back to docs

API Reference

POST /intercept/diff

POST/api/v1/intercept/diff

Scans a unified diff (git diff format) generated by an AI coding agent for hardcoded secrets and credentials in added lines before they are committed.

Request

{
  "diff": string   // Required. The full unified diff output (git diff format).
}

Only lines added in the diff (prefixed with +) are scanned. Removed lines and context lines are ignored.