POST
/api/security/scansCreate a scan
Submit a repository, branch, and scan profile for analysis.
Developer docs
Use the Shomar API to start SAST scans, retrieve findings, export compliance evidence, and connect security checks to CI/CD workflows.
https://api.shomarsec.com/v1Send API tokens using the Authorization header.
Email support@shomarsec.com for sandbox access.
curl -X POST https://api.shomarsec.com/v1/security/scans \
-H "Authorization: Bearer $SHOMAR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"repository_url": "https://github.com/acme/payments-api",
"branch": "main",
"scan_type": "sast",
"frameworks": ["owasp-top-10", "popia", "ndpr"]
}'/api/security/scansSubmit a repository, branch, and scan profile for analysis.
/api/security/scans/{scan_id}Retrieve severity counts, findings, remediation guidance, and compliance mappings.
/api/security/compliance/assessEvaluate evidence and scan findings against POPIA, NDPR, Kenya DPA, or custom controls.