REST API

API Documentation

The WebSentry API lets you scan URLs, retrieve results, manage API keys, and configure monitoring — all programmatically.

Base URL

https://websentry.dev

Authentication

All API requests require an X-API-Key header. Get your key from your dashboard after signing up.

The Free plan lets you run 5 scans/day without a key (rate-limited by IP). A key unlocks higher limits and result history.

http
POST /api/scan HTTP/1.1
Host: websentry.dev
Content-Type: application/json
X-API-Key: wsk_your_api_key_here

{ "url": "https://example.com" }
PlanScans / dayConcurrentHistory
No key (IP)51None
Free2027 days
Pro200590 days
Agency Starter1,000101 year
Agency Growth5,000251 year
Agency ProUnlimited501 year

Scanning

API Keys

Monitors

Monitors re-scan a URL on a schedule (daily by default) and send email alerts when your security grade drops. Available on Pro and Agency plans.

Reference

Grading scale

GradeScore range
A+90 – 100
A80 – 89
B70 – 79
C60 – 69
D50 – 59
F0 – 49

Check statuses

StatusMeaning
passCheck passed, full points awarded
warnPartial pass or advisory issue
failCheck failed, no points
infoInformational — no score impact

Common error codes

CodeMeaning
400Invalid or missing URL
401Missing or invalid API key
429Rate limit exceeded
422URL unreachable or blocked
500Internal scan error

Ready to integrate?

Get your API key from the dashboard — free plan included.