API Reference
H2 Security API documentation.
Authentication
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://api.h2security.io/v1/scan
Endpoints
POST /v1/scan
Initiate a security scan.
{
"repository": "https://github.com/user/repo",
"branch": "main",
"scan_types": ["secrets", "dependencies", "sast"]
}
GET /v1/scan/:id
Get scan results.
GET /v1/findings
List all findings.
Rate Limits
| Tier | Requests/hour |
|---|---|
| Free | 10 |
| Pro | 1000 |
| Enterprise | Unlimited |