ScoreSec

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.

bash
curl -H "X-API-Key: bs_live_abc123..." \
     https://scoresec.tools/api/v1/scan/YOUR_SCAN_ID

Rate Limiting

Requests are rate-limited per API key. The current limits are returned in response headers:

TierScans / HourAPI Reads / Min
Free360
Pro50600

Response headers: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset (Unix timestamp). Exceeding the limit returns 429 Too Many Requests.

Endpoints

POST/api/v1/scan

Submit a new scan for the given URL. Returns a scan ID for polling.

Request Body

json
{
  "url": "https://example.com",
  "locale": "en"           // optional: "en" | "pt" | "es"
}

Response

json
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "status": "queued",
  "target_url": "https://example.com",
  "target_domain": "example.com",
  "created_at": "2026-11-25T10:30:00Z"
}
GET/api/v1/scan/{id}

Retrieve the current status and results of a scan by its ID.

Response

json
{
  "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"
}
GET/api/v1/report/{id}

Retrieve the full JSON report for a completed scan, including all findings, category scores, and framework coverage.

Response

json
{
  "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"
}
GET/api/v1/report/{id}/pdf

Generate and download a full PDF report for a completed scan.

Response

json
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:

json
{
  "error": {
    "code": "RATE_LIMITED",
    "message": "Rate limit exceeded. Free tier allows 3 scans per hour.",
    "status": 429
  }
}
StatusCodeDescription
400INVALID_URLThe URL is malformed or not an HTTPS address
401UNAUTHORIZEDMissing or invalid API key
404NOT_FOUNDScan or report not found
429RATE_LIMITEDRate limit exceeded
500INTERNAL_ERRORUnexpected server error
API Documentation | ScoreSec by TR Group