API Reference
Integrate Kensai's security scanning into your workflow with our REST API.
Authentication
Include your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEYEndpoints
POST
/v1/scanStart a new security scan
curl -X POST https://api.kensai.app/v1/scan \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"target": "https://example.com", "type": "full"}'GET
/v1/cves/searchSearch the CVE database (300K+ entries)
curl "https://api.kensai.app/v1/cves/search?q=nginx&severity=high" \ -H "Authorization: Bearer YOUR_API_KEY"
POST
/v1/deps/analyzeAnalyze dependencies for vulnerabilities
curl -X POST https://api.kensai.app/v1/deps/analyze \ -H "Authorization: Bearer YOUR_API_KEY" \ -F "lockfile=@package-lock.json"
POST
/v1/sbom/generateGenerate SBOM (CycloneDX or SPDX format)
curl -X POST "https://api.kensai.app/v1/sbom/generate?format=cyclonedx" \ -H "Authorization: Bearer YOUR_API_KEY" \ -F "lockfile=@package-lock.json"