Static secret scan of a unified git-diff, scoring ONLY added lines
payai.agentstools.dev/secret/diff
Static secret scan of a unified git-diff, scoring ONLY added lines. The low-false-positive pre-commit mode: a secret already present in unchanged or removed code is ignored, only newly introduced credentials are flagged. Returns a verdict (pass, caution, block) with per-finding rule, provider, severity, file and line. Secret indicators, not a guarantee.
POST
https://payai.agentstools.dev/secret/diffUptime100% of 2 checks in 30 days
30 days agoToday
Call it from an agent
curl -i -X POST -H 'content-type: application/json' "https://payai.agentstools.dev/secret/diff" \
-d '{"diff":"--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n DEBUG = True\n+TOKEN = '\''ghp_012345678901234567890123456789abcdef'\''\n"}'
# 402 Payment Required comes back with the price and where to pay.
# Any x402 client pays and retries.Example input
{
"diff": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n DEBUG = True\n+TOKEN = 'ghp_012345678901234567890123456789abcdef'\n"
}