API Documentation
Integrate ScoreSec scans into your CI/CD pipeline or security tooling.
Authentication
All API requests require an API key passed in the X-API-Key header. Free tier keys are issued automatically on first scan. Contact us for higher rate limits.
curl -H "X-API-Key: bs_live_abc123..." \
https://scoresec.tools/api/v1/scan/YOUR_SCAN_IDRate Limiting
Requests are rate-limited per API key. The current limits are returned in response headers:
| Tier | Scans / Hour | API Reads / Min |
|---|---|---|
| Free | 3 | 60 |
| Pro | 50 | 600 |
Response headers: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset (Unix timestamp). Exceeding the limit returns 429 Too Many Requests.
Endpoints
/api/v1/scanSubmit a new scan for the given URL. Returns a scan ID for polling.
Request Body
{
"url": "https://example.com",
"locale": "en" // optional: "en" | "pt" | "es"
}Response
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"status": "queued",
"target_url": "https://example.com",
"target_domain": "example.com",
"created_at": "2026-11-25T10:30:00Z"
}/api/v1/scan/{id}Retrieve the current status and results of a scan by its ID.
Response
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"status": "done",
"target_url": "https://example.com",
"target_domain": "example.com",
"grade": "B",
"score": 78,
"findings_count": 12,
"started_at": "2026-11-25T10:30:01Z",
"completed_at": "2026-11-25T10:30:18Z",
"created_at": "2026-11-25T10:30:00Z"
}/api/v1/report/{id}Retrieve the full JSON report for a completed scan, including all findings, category scores, and framework coverage.
Response
{
"id": "report-uuid",
"scan": { ... },
"grade": {
"grade": "B",
"score": 78,
"label": "Good"
},
"category_scores": [
{ "category": "ssl", "score": 90, "findings_count": 2 },
{ "category": "headers", "score": 65, "findings_count": 4 }
],
"findings": [ ... ],
"framework_coverage": [
{
"standard": "OWASP Top 10",
"total_controls": 10,
"affected_controls": 3,
"controls": [
{ "id": "A02:2021", "name": "Cryptographic Failures", "severity": "high" }
]
}
],
"generated_at": "2026-11-25T10:31:00Z"
}/api/v1/report/{id}/pdfGenerate and download a full PDF report for a completed scan.
Response
HTTP/1.1 200 OK
Content-Type: application/pdf
Content-Disposition: attachment; filename="blind-security-example.com-2026-11-25.pdf"
(binary PDF data)Error Responses
All errors follow a consistent JSON format:
{
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded. Free tier allows 3 scans per hour.",
"status": 429
}
}| Status | Code | Description |
|---|---|---|
| 400 | INVALID_URL | The URL is malformed or not an HTTPS address |
| 401 | UNAUTHORIZED | Missing or invalid API key |
| 404 | NOT_FOUND | Scan or report not found |
| 429 | RATE_LIMITED | Rate limit exceeded |
| 500 | INTERNAL_ERROR | Unexpected server error |