API Documentation

Integrate SecurityCheckers into your workflow with our REST API.

Authentication

All API requests require a Bearer token in the Authorization header.

Authorization: Bearer YOUR_JWT_TOKEN

Obtain a token by calling POST /api/auth/login with your credentials.

POST /api/auth/register

Create a new account

{ "email": "...", "password": "..." }
POST /api/auth/login

Sign in and get JWT token

{ "email": "...", "password": "..." }
GET /api/auth/me

Get current user info

POST /api/scans

Start a new scan

{ "url": "https://...", "scanType": "quick|standard|comprehensive" }
GET /api/scans

List all scans

GET /api/scans/:id

Get scan details and vulnerabilities

GET /api/scans/:id/status

Poll scan progress

GET /api/vulnerabilities/all

List all vulnerabilities

GET /api/reports

List reports

POST /api/reports/generate

Generate PDF report

{ "scanId": 1, "type": "executive|technical|compliance" }