v3 API
API Reference
Complete documentation for the VulnRadar REST API. Integrate automated vulnerability scanning into your applications, CI/CD pipelines, or custom security tools.
- Current API version
- v3
- Daily quota
- By plan
- Auth method
- Bearer
Overview
Every endpoint lives under https://vulnradar.dev/api/v3/. v3 is the only version this build ships: CONFIG_API_SUPPORTED_VERSIONS is ["v3"] and there is no /api/v1 or /api/v2 route tree to fall back to.
Authentication is either the session cookie the web app already holds, or a Bearer API key prefixed vr_live_ (CONFIG_API_KEY_PREFIX). Which one you use changes how quota is counted, so read Rate Limits before you wire this into CI.
Prefer a machine-readable spec? The OpenAPI 3.1 description of this API lives at /api/v3/openapi.json. Import it into Postman, Insomnia, or Bruno, or try calls right in the browser on the API playground.
Authentication
Getting a key
- Sign in to your VulnRadar account.
- Open Profile, then API Keys.
- Click Generate New Key.
- Copy the raw key now. It is shown once. The server keeps only an AES-256-GCM-encrypted copy and a SHA-256 fingerprint, so it cannot show it to you again.
Authorization: Bearer YOUR_API_KEY_HEREEndpoints
- Base URL
https://vulnradar.dev/api/v3- Documented endpoints
- 41
Try these calls in your browser
The API Playground loads this same spec and sends real requests: pick an endpoint, paste a key, and read the live response. Your key stays in the browser and is never stored.
| Method | Endpoint | Description |
|---|---|---|
| POST | /scan | Create a Scan |
| GET | /scan/status/{id} | Get Scan Job Status |
| DELETE | /scan/status/{id} | Cancel a Scan Job |
| POST | /scan/authenticated | Authenticated Scan |
| POST | /scan/bulk | Bulk Scan |
| POST | /scan/verify | AI-Verify a Scan's Findings |
| POST | /scan/verify-batch | AI-Verify a Findings Array |
| POST | /history/{id}/summary | Generate an AI Scan Summary |
| POST | /scan/crawl | Deep Crawl Scan |
| POST | /scan/crawl/discover | Discover URLs |
| POST | /scan/discover | Discover Subdomains |
| GET | /scan/discover/progress/{requestId} | Discovery Progress |
| GET | /history | List Scan History |
| GET | /history/{id} | Get Scan Details |
| DELETE | /history | Delete All Scan History |
| GET | /history/{id}/report?format={format} | Export a Scan Report |
| GET | /scan/reputation?host={host} | Host Reputation Lookup |
| DELETE | /history/{id} | Delete a Single Scan |
| PATCH | /history/{id} | Update a Scan's Notes, Visibility, or Teams |
| POST | /browser/sessions | Start a Browser Session |
| GET | /browser/sessions?id={id} | Read Browser Session |
| DELETE | /browser/sessions?id={id} | End Browser Session |
| GET | /api/version (not under /api/v3) | Version Check |
| GET | /finding-types | Finding Types |
| GET | /keys | List API Keys |
| POST | /keys | Create API Key |
| POST | /keys/{id}/rotate | Rotate API Key |
| POST | /keys/{id}/revoke | Revoke API Key |
| POST | /keys/{id}/reset-binding | Clear a Key's IP Binding |
| GET | /domains | List Domains |
| POST | /domains | Add a Domain |
| POST | /domains/{id}/verify | Verify a Domain Now |
| DELETE | /domains?id={id} | Remove a Domain |
| PATCH | /domains/{id} | Assign a Domain to a Team |
| GET | /webhooks | List Webhooks |
| POST | /webhooks | Create a Webhook |
| PATCH | /webhooks | Send a Test Payload |
| PATCH | /webhooks/{id} | Edit, Pause, or Reassign a Webhook |
| POST | /webhooks/{id}/rotate-secret | Rotate a Webhook's Signing Secret |
| GET | /webhooks/{id}/deliveries | Read a Webhook's Delivery Log |
| DELETE | /webhooks | Delete a Webhook |
/scanCreate a Scan
Start a vulnerability scan against a target. Pass a hostname or a full URL; we auto-prepend https:// if you omit the scheme. A curated port and service sweep is opt-in via portScan. The scan runs as a background job: this call returns immediately with a scan id, and you poll GET /scan/status/{scanId} for progress and the final result.
Request Body
{
"url": "example.com",
"portScan": true,
"captureScreenshot": false,
"isPublic": false,
"scanners": ["headers", "ssl", "dns"]
}Response 200 OK
{
"scanId": 12345,
"status": "running"
}Error Responses
/scan/status/{id}Get Scan Job Status
Poll a scan job started by POST /scan or POST /scan/crawl. Returns live progress while the job runs and the full result once it completes.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Scan id |
Response 200 OK
{
"status": "running",
"currentCategory": "headers",
"categoriesCompleted": 4,
"categoriesTotal": 12,
"elapsedMs": 1820
}Error Responses
/scan/status/{id}Cancel a Scan Job
Cancel a scan that is still pending or running. Has no effect on a scan that already finished.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Scan id |
Response 200 OK
{
"status": "failed",
"cancelled": true
}Error Responses
/scan/authenticatedAuthenticated Scan
Scan a single page after logging in first. Credentials are supplied in this one request and are never stored: they live only in memory for the duration of the call. Unlike POST /scan, this endpoint is synchronous (no polling) and scans exactly one page; it does not crawl.
Request Body
{
"url": "https://example.com/dashboard",
"scanners": ["headers", "cookies", "content"],
"isPublic": false,
"auth": {
"method": "form",
"loginUrl": "https://example.com/login",
"username": "[email protected]",
"password": "correct-horse-battery-staple"
}
}Response 200 OK
{
"scanHistoryId": 12345,
"url": "https://example.com/dashboard",
"scannedAt": "2026-08-05T15:30:00.000Z",
"duration": 2210,
"findings": [],
"summary": { "critical": 0, "high": 0, "medium": 1, "low": 0, "info": 0, "total": 1 },
"dangerScore": 5.4,
"engineConfidence": 91,
"responseHeaders": { "content-type": "text/html; charset=utf-8" },
"authReport": { "status": "authenticated", "method": "form" }
}Error Responses
/scan/bulkBulk Scan
Submit multiple URLs in one request, up to your plan's URLs-per-bulk-request limit (5/10/25/100 for free/core/pro/elite). Returns immediately with one queued scan id per accepted URL; poll /scan/status/{id} for each. Each URL counts as one dailyScans quota unit, consumed when its scan is queued, regardless of auth method.
Request Body
{
"urls": [
"https://example.com",
"https://example.org",
"https://example.net"
]
}Response 200 OK
{
"total": 3,
"queued": 2,
"failed": 1,
"skipped": 0,
"results": [
{ "url": "https://example.com/", "success": true, "scanId": 1001, "status": "queued" },
{ "url": "https://example.org/", "success": true, "scanId": 1002, "status": "queued" },
{ "url": "https://example.net/", "success": false, "error": "Could not reach https://example.net/." }
]
}Error Responses
/scan/verifyAI-Verify a Scan's Findings
Re-run every finding on a scan you own through AI verification and persist the result: each finding gets aiVerdict (confirmed, possible_fp, or uncertain), aiConfidence, and aiReason written back onto the scan, so a later GET /scan/status/{scanId} or GET /history/{id} shows them in place.
Request Body
{
"scanHistoryId": 12345
}Response 200 OK
{
"success": true,
"findings": [
{
"id": "hsts-missing",
"title": "HSTS Header Missing",
"aiVerdict": "confirmed",
"aiConfidence": 92,
"aiReason": "No Strict-Transport-Security header on any response checked."
}
]
}Error Responses
/scan/verify-batchAI-Verify a Findings Array
Run AI verification over a findings array you supply, without it having to belong to a stored scan. Same per-finding pipeline as POST /scan/verify; the difference is where the findings come from and that nothing is written back to a scan. Use this to verify results you already hold client-side, or findings from a scan you have exported.
Request Body
{
"url": "https://example.com",
"findings": [
{
"id": "hsts-missing",
"title": "HSTS Header Missing",
"severity": "medium",
"category": "headers",
"description": "HTTP Strict Transport Security header is not set."
}
]
}Response 200 OK
{
"findings": [
{
"id": "hsts-missing",
"title": "HSTS Header Missing",
"severity": "medium",
"category": "headers",
"description": "HTTP Strict Transport Security header is not set.",
"aiVerdict": "confirmed",
"aiConfidence": 92,
"aiReason": "No Strict-Transport-Security header on any response checked."
}
]
}Error Responses
/history/{id}/summaryGenerate an AI Scan Summary
Generate a short plain-English summary of a completed scan you own and persist it onto the scan's result_meta.aiSummary. A plain call returns the cached summary (no AI call, no rate-limit cost) once one already exists; pass ?regenerate=true to force a fresh one.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Scan (scan_history) id |
Query Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
regenerate | boolean | No | false | Force a fresh AI call and overwrite the cached summary |
Response 200 OK
{
"success": true,
"summary": "This scan of example.com found 4 issues, none critical. The most notable is a missing HSTS header, which leaves the first request on a network exposed to downgrade attacks.",
"cached": true
}Error Responses
/scan/crawlDeep Crawl Scan
Crawl the target and scan each discovered page. Either provide a pre-selected URL list or let the crawler discover links. The page cap depends on your plan. Like POST /scan, this runs as a background job: the call returns immediately with a scan id, and you poll GET /scan/status/{scanId} for progress and the final aggregate result.
Request Body
{
"url": "https://example.com",
"urls": ["https://example.com/about", "https://example.com/contact"],
"scanners": ["headers", "ssl", "content"],
"captureScreenshot": false,
"portScan": false,
"isPublic": false
}Response 200 OK
{
"scanId": 12346,
"status": "running"
}Error Responses
/scan/crawl/discoverDiscover URLs
Discover links from a target without scanning them. Useful for previewing what a crawl would cover.
Request Body
{
"url": "https://example.com"
}Response 200 OK
{
"urls": [
"https://example.com",
"https://example.com/about",
"https://example.com/contact",
"https://example.com/blog"
]
}Error Responses
/scan/discoverDiscover Subdomains
Enumerate subdomains for a domain. Aggregates nine passive sources (crt.sh, HackerTarget, Subdomain.Center, RapidDNS, AlienVault OTX, Anubis, CertSpotter, urlscan.io, and the Wayback Machine) plus prefix DNS brute-force.
Request Body
{
"url": "https://example.com",
"forceRefresh": false,
"requestId": "a3f9c1e2-7b04-4d8a-9c31-5e6f0b2a8d47"
}Response 200 OK
{
"subdomains": [
{ "host": "www.example.com", "source": "crt.sh" },
{ "host": "api.example.com", "source": "rapiddns" },
{ "host": "staging.example.com", "source": "brute" }
]
}Error Responses
/scan/discover/progress/{requestId}Discovery Progress
Read-only peek at an in-flight POST /scan/discover, for the requestId that call was given. Poll it while the POST is still open to show real progress instead of a spinner. It never changes the POST's behaviour, and the POST's own response stays the source of truth for the result.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
requestId | string | Yes | The same requestId you passed in the POST /scan/discover body |
Response 200 OK
{
"stage": "dns_resolution",
"stageIndex": 2,
"stagesTotal": 4
}Error Responses
/historyList Scan History
The authenticated user's own scans, most recent first, 100 per page by default. Retention is a per-plan admin setting and ships as unlimited on every plan, so by default nothing is aged out. GitHub repo scans are excluded from this list.
Query Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
limit | number | No | 100 (the deployment's maxLimit) | Rows to return. Clamped to maxLimit rather than rejected if you ask for more. |
offset | number | No | 0 | Rows to skip. This is how you reach page 2. |
q | string | No | none | Case-insensitive substring of the scanned URL. Matched in SQL across your whole retention window, not just this page. % and _ are literal characters, not wildcards. Also accepted as search. |
tag | string | No | none | Exact tag, matched against your own tags on each scan. Combines with q as AND. |
Response 200 OK
{
"scans": [
{
"id": "4f3a91c07b2d4e6a8c15d0e2b7a93f68",
"url": "https://example.com",
"summary": { "critical": 0, "high": 1, "medium": 2, "low": 3, "info": 1, "total": 7 },
"findings_count": 7,
"duration": 1423,
"scanned_at": "2026-03-10T15:30:00.000Z",
"source": "api",
"status": "completed",
"tags": ["production", "weekly-scan"]
}
],
"total": 143,
"matched": 143,
"q": null,
"tag": null,
"limit": 100,
"offset": 0,
"maxLimit": 100,
"truncated": true
}Error Responses
/history/{id}Get Scan Details
Return full scan details: findings, response headers, scan metadata. Owner or same-team member can view.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The opaque scan id returned by GET /history. The legacy integer id is still accepted. |
Response 200 OK
{
"url": "https://example.com",
"scannedAt": "2026-03-10T15:30:00.000Z",
"duration": 1423,
"summary": { "critical": 0, "high": 1, "medium": 2, "low": 3, "info": 1, "total": 7 },
"findings": [
{ /* full Vulnerability object, see /scan response */ }
],
"responseHeaders": {
"content-type": "text/html; charset=utf-8",
"server": "nginx/1.18.0"
}
}Error Responses
/historyDelete All Scan History
Permanently delete the authenticated user's scans and tags. Cannot be undone. GitHub repo scans are not touched: delete those individually.
Response 200 OK
{
"message": "Resource deleted successfully"
}Error Responses
/history/{id}/report?format={format}Export a Scan Report
Generate a report over a completed scan, server-side, in the format you ask for. These are the same generators the UI runs in the browser, exposed here so CI can pull a SARIF file for GitHub code scanning, or a PDF or Markdown report, without driving a browser. See /docs/reports for what each format contains.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The opaque scan id from GET /history. The legacy integer id is still accepted. |
Query Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
format | string | No | json | json | sarif | pdf | md (alias: markdown) | compliance | csv. Anything else is a 400 naming the valid set. |
includeSuppressed | boolean | No | false | Include findings you marked a false positive. Off by default, matching the dashboard. |
applyTriage | boolean | No | false | Mark accepted-risk and won't-fix findings as SARIF suppressions, which Code Scanning reads as dismissed. Off by default: it changes what a CI gate counts. |
Response 200 OK
# Response is the report file itself, not a JSON envelope.
# Content-Type and Content-Disposition are set per format:
format=sarif -> application/sarif+json vulnradar-example.com.sarif
format=md -> text/markdown; charset=utf-8 vulnradar-example.com.md
format=compliance -> text/markdown; charset=utf-8 vulnradar-example.com-compliance.md
format=pdf -> application/pdf vulnradar-example.com.pdf
format=csv -> text/csv; charset=utf-8 vulnradar-example.com.csv
format=json -> application/json vulnradar-example.com.jsonError Responses
/scan/reputation?host={host}Host Reputation Lookup
Look up the cached reputation of a host from public scans, without scanning it. This is what the browser extension calls to badge the site you are on. A lightweight read, not a scan trigger.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
host | string | Yes | Hostname to look up. Normalized server-side. |
url | string | No | The exact page you are asking about, when you have it. Prefers an exact-page match over the host-level fallback. |
Response 200 OK
{
"known": true,
"host": "example.com",
"dangerScore": 5.4,
"verdict": "caution",
"severityCounts": { "critical": 0, "high": 1, "medium": 3, "low": 2, "info": 4 },
"lastScannedAt": "2026-08-05T15:30:00.000Z",
"scanId": 12345,
"matchType": "exact",
"scannedUrl": "https://example.com/pricing"
}Error Responses
/history/{id}Delete a Single Scan
Permanently delete a single scan by ID. Owner only.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Scan ID to delete |
Response 200 OK
{
"success": true,
"message": "Scan deleted successfully"
}Error Responses
/history/{id}Update a Scan's Notes, Visibility, or Teams
Edit one past scan. Send only the fields you want to change; an absent field is left alone, and a body with none of them is a 400. This card used to document notes alone, which is why isPublic and team sharing looked like UI-only actions.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Scan public id (the legacy numeric id also works) |
Request Body
{
"notes": "Investigating HSTS issue with infra team",
"isPublic": false,
"teamIds": [7, 9]
}Response 200 OK
{
"notes": "Investigating HSTS issue with infra team",
"isPublic": false,
"teamId": 7,
"teamIds": [7, 9]
}Error Responses
/browser/sessionsStart a Browser Session
Open an ephemeral BrowserBase session so the user can view the scanned site from a remote, sandboxed browser. Sessions are time-limited and end automatically when the popup closes. Only enabled when BROWSERBASE_API_KEY + BROWSERBASE_PROJECT_ID are configured on the server.
Request Body
{
"url": "https://example.com",
"ttlSeconds": 360,
"viewport": { "width": 1920, "height": 1080 }
}Response 200 OK
{
"session": {
"id": "01HXY...",
"status": "RUNNING",
"url": "https://example.com",
"debuggerUrl": "https://www.browserbase.com/devtools/inspector.html?wss=connect.browserbase.com%2Fdebug%2F...",
"debuggerFullscreenUrl": "https://www.browserbase.com/devtools-fullscreen/inspector.html?wss=connect.browserbase.com%2Fdebug%2F...",
"connectUrl": "wss://connect.browserbase.com/debug/...",
"liveViewerUrl": "https://www.browserbase.com/devtools-fullscreen/inspector.html?wss=...&navbar=false",
"expiresAt": "2026-06-26T18:25:55.722+00:00"
},
"expiresInSeconds": 360
}Error Responses
/browser/sessions?id={id}Read Browser Session
Fetch the latest BrowserBase session metadata (status, current URL, viewer URL). Used by the popup page to refresh after the user reconnects.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | BrowserBase session id |
Response 200 OK
{
"session": {
"id": "bb_session_abc123",
"status": "RUNNING",
"url": "https://example.com/login",
"liveViewerUrl": "https://app.browserbase.com/..."
}
}Error Responses
/browser/sessions?id={id}End Browser Session
End a BrowserBase session early. Idempotent, so it is safe to call from window.onbeforeunload.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | BrowserBase session id |
Response 200 OK
{
"ended": true,
"id": "bb_session_abc123"
}Error Responses
/api/version (not under /api/v3)Version Check
Compare installed version against the latest GitHub release. Unauthenticated. Cached upstream of GitHub for 1 hour. This is the one endpoint on this page that does NOT sit under the /api/v3 base URL: it is version-independent by design, so the full path is https://vulnradar.dev/api/version. Composing it against the base URL the way every other card on this page works would give you https://vulnradar.dev/api/v3/api/version, which 404s.
Response 200 OK
{
"current": "3.9.4",
"engine": "3.3.2",
"latest": "3.9.4",
"status": "up-to-date",
"message": "You're running the latest version.",
"release_url": "https://github.com/VulnRadar/vulnradar.dev/releases/tag/v3.9.4"
}/finding-typesFinding Types
Returns the full catalogue of detection checks. Use this to display human-readable titles, categorize findings, or build SDKs that know every check ID ahead of time.
Response 200 OK
{
"success": true,
"count": 907,
"categories": {
"content": 155,
"headers": 145,
"code": 121,
"secrets-extended": 62,
"information-disclosure": 53,
"vibe-code": 37,
"cookies": 37,
"api": 36,
"client-side": 26,
"configuration": 24,
"email": 22,
"supply-chain": 21,
"dns": 19,
"host-validation": 13,
"tls": 11,
"ssl": 7,
"active-probes": 5,
"reputation": 3
},
"data": [
{
"id": "hsts-missing",
"type": "header",
"title": "HSTS Header Missing",
"category": "headers",
"severity": "medium",
"description": "HTTP Strict Transport Security header is not set."
},
{
"id": "csp-missing",
"type": "header",
"title": "Content Security Policy Header Missing",
"category": "headers",
"severity": "medium",
"description": "Content Security Policy header is not set."
}
]
}/keysList API Keys
List API keys for the authenticated user. Secret values are never returned.
Response 200 OK
{
"keys": [
{
"id": 1,
"key_prefix": "vr_live_abc12345",
"name": "CI",
"daily_limit": 100,
"created_at": "2026-03-10T15:30:00.000Z",
"last_used_at": "2026-03-10T16:00:00.000Z",
"revoked_at": null,
"scopes": ["scan:write", "scan:read"],
"usage_today": 12
}
]
}Error Responses
/keysCreate API Key
Generate a new API key. The raw value is returned ONLY in this response, so copy and store it immediately. The number of active keys you can hold depends on your plan.
Request Body
{
"name": "CI",
"scopes": ["scan:write", "scan:read"]
}Response 200 OK
{
"key": {
"id": 1,
"key_prefix": "vr_live_abc12345",
"name": "CI",
"daily_limit": 100,
"created_at": "2026-03-10T15:30:00.000Z",
"scopes": ["scan:write", "scan:read"],
"raw_key": "vr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
}Error Responses
/keys/{id}/rotateRotate API Key
Replace the key's secret in place. The row is updated, not deleted and recreated: the id, name and scopes are preserved. Returns the new raw key once.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Key ID to rotate |
Response 200 OK
{
"success": true,
"key": {
"id": 1,
"key_prefix": "vr_live_def67890",
"name": "CI",
"daily_limit": 100,
"created_at": "2026-03-10T15:30:00.000Z",
"raw_key": "vr_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"scopes": ["scan:write", "scan:read"]
}
}Error Responses
/keys/{id}/revokeRevoke API Key
Set revoked_at on the key. The key stops working immediately.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Key ID to revoke |
Response 200 OK
{
"success": true
}Error Responses
/keys/{id}/reset-bindingClear a Key's IP Binding
Forget the IP a key pinned itself to on first use. Only relevant on deployments that have API-key IP binding switched on; on every other deployment there is nothing bound and this is a no-op that still returns 200.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Key ID whose binding to clear |
Response 200 OK
{
"success": true
}Error Responses
/domainsList Domains
Your verified and pending domains, plus any assigned to a team you belong to.
Response 200 OK
{
"domains": [
{
"id": 12,
"domain": "example.com",
"team_id": null,
"status": "verified",
"verification_method": "dns_txt",
"created_at": "2026-08-01T00:00:00.000Z",
"verified_at": "2026-08-01T00:05:00.000Z",
"last_checked_at": "2026-08-01T00:05:00.000Z",
"last_check_error": null,
"verificationRecordName": "_vulnradar-verify.example.com"
}
]
}Error Responses
/domainsAdd a Domain
Add a domain (or subdomain) pending verification. Returns a fresh DNS TXT record to publish. Verifying a domain covers every subdomain under it; it does not require ownership proof up front, since publishing the returned token in DNS is exactly what proves it.
Request Body
{
"domain": "example.com"
}Response 200 OK
{
"id": 12,
"domain": "example.com",
"status": "pending",
"createdAt": "2026-08-01T00:00:00.000Z",
"verificationRecordName": "_vulnradar-verify.example.com",
"verificationRecordValue": "vulnradar-verify=<64-char token>"
}Error Responses
/domains/{id}/verifyVerify a Domain Now
Looks up the DNS TXT record right now and updates the domain's status. Safe to call repeatedly while fixing a typo'd record.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Domain ID to verify |
Response 200 OK
{
"verified": true,
"status": "verified"
}Error Responses
/domains?id={id}Remove a Domain
Removes a domain. Active Probing stops being allowed against it (and its subdomains) immediately.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Domain ID to remove |
Response 200 OK
{
"success": true
}Error Responses
/domains/{id}Assign a Domain to a Team
Share a verified domain with a team so its members' scans can use it, or send teamId: null to make it personal again.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Domain ID to reassign |
Request Body
{
"teamId": 7
}Response 200 OK
{
"id": 12,
"domain": "example.com",
"team_id": 7,
"status": "verified",
"verification_method": "dns-txt",
"created_at": "2026-08-01T00:00:00.000Z",
"verified_at": "2026-08-01T00:12:00.000Z",
"last_checked_at": "2026-08-30T04:00:00.000Z",
"last_check_error": null
}Error Responses
/webhooksList Webhooks
Your webhooks plus any assigned to a team you belong to. Team co-membership alone is enough to read them; all team roles can view.
Response 200 OK
{
"webhooks": [
{
"id": 3,
"url": "https://hooks.example.com/vulnradar",
"name": "CI alerts",
"type": "generic",
"active": true,
"team_id": null,
"created_at": "2026-08-01T00:00:00.000Z"
}
]
}Error Responses
/webhooksCreate a Webhook
Register a public HTTPS endpoint to be called when a scan completes.
Request Body
{
"url": "https://hooks.example.com/vulnradar",
"name": "CI alerts",
"type": "auto"
}Response 200 OK
{
"id": 3,
"url": "https://hooks.example.com/vulnradar",
"name": "CI alerts",
"type": "generic",
"active": true,
"created_at": "2026-08-01T00:00:00.000Z",
"secret": "<64 hex chars, shown once>"
}Error Responses
/webhooksSend a Test Payload
Deliver a one-off test payload so you can confirm a webhook is wired up. This does NOT edit the webhook; PATCH /webhooks/{id} does that.
Request Body
{
"id": 3
}Response 200 OK
{
"success": true,
"message": "Test webhook sent successfully"
}Error Responses
/webhooks/{id}Edit, Pause, or Reassign a Webhook
Update a webhook in place. Send at least one of active, url, name, type or teamId; an absent field is left alone.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Webhook ID to edit |
Request Body
{
"active": false
}Response 200 OK
{
"id": 3,
"url": "https://hooks.example.com/vulnradar",
"name": "CI alerts",
"type": "generic",
"active": false,
"team_id": null,
"created_at": "2026-08-01T00:00:00.000Z"
}Error Responses
/webhooks/{id}/rotate-secretRotate a Webhook's Signing Secret
Issue a new HMAC signing secret in place: same row, same id, same URL.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Webhook ID whose secret to replace |
Response 200 OK
{
"id": 3,
"url": "https://hooks.example.com/vulnradar",
"name": "CI alerts",
"type": "generic",
"active": true,
"created_at": "2026-08-01T00:00:00.000Z",
"secret": "<new 64 hex chars, shown once>"
}Error Responses
/webhooks/{id}/deliveriesRead a Webhook's Delivery Log
The 50 most recent delivery attempts, newest first, so a failing webhook can be diagnosed from what actually came back rather than by guessing.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Webhook ID whose attempts to read |
Response 200 OK
{
"deliveries": [
{
"id": 981,
"event_type": "scan.completed",
"http_status": 200,
"response_snippet": "ok",
"attempted_at": "2026-08-30T04:00:03.120Z"
},
{
"id": 980,
"event_type": "scan.completed",
"http_status": null,
"response_snippet": "Blocked: target resolves to a private address",
"attempted_at": "2026-08-29T04:00:02.480Z"
}
]
}Error Responses
/webhooksDelete a Webhook
Remove a webhook so it stops being called.
Request Body
{
"id": 3
}Response 200 OK
{
"success": true
}Error Responses
Code Examples
The same three calls in curl, JavaScript, and Python. Swap the placeholder key and they run as-is. The Python tab uses the official SDK (pip install vulnradar, source at github.com/VulnRadar/Python-SDK) instead of raw HTTP calls.
Create a scan
curl -X POST "https://vulnradar.dev/api/v3/scan" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "example.com", "portScan": true}'
# → { "scanId": 12345, "status": "running" }
# Poll until status is completed or failed
curl "https://vulnradar.dev/api/v3/scan/status/12345" \
-H "Authorization: Bearer YOUR_API_KEY"List scan history
curl -X GET "https://vulnradar.dev/api/v3/history" \
-H "Authorization: Bearer YOUR_API_KEY"Get scan details
# SCAN_ID is the opaque "id" string from GET /history
curl -X GET "https://vulnradar.dev/api/v3/history/SCAN_ID" \
-H "Authorization: Bearer YOUR_API_KEY"CI/CD Gating
Finding IDs are stable, so a scan can gate a pull request: fail the build when critical or high findings show up, without hand-rolling the poll loop yourself.
- uses: VulnRadar/vulnradar.dev/.github/actions/[email protected]
with:
url: https://your-staging-url.com
api-key: ${{ secrets.VULNRADAR_TOKEN }}
# Optional, both default to 0:
max-critical: 0
max-high: 0Store your API key as a repo secret named VULNRADAR_TOKEN, never hardcoded in the workflow. Self-hosting? Point api-base-url at your own deployment's /api/v3.
GitLab CI
The same gate as a GitLab CI job. Add VULNRADAR_TOKEN as a masked CI/CD variable, then include the template and set the URL:
include:
- remote: "https://vulnradar.dev/gitlab/vulnradar-scan.gitlab-ci.yml"
vulnradar_scan:
variables:
VR_URL: "https://your-staging-url.com"
# Optional, both default to 0:
VR_MAX_CRITICAL: "0"
VR_MAX_HIGH: "0"Prefer not to include a remote file? Copy the job straight from the template into your own .gitlab-ci.yml. Self-hosting? Override VR_API_BASE with your deployment's /api/v3.
Rate Limiting
A per-key daily quota, plus per-IP burst limits on the auth endpoints. The numbers, the reset semantics, and worked backoff code are on the Rate Limits page. What follows is the part you need while reading this reference.
Headers on a successful response
HTTP/1.1 200 OK
X-RateLimit-Limit: 150
X-RateLimit-Remaining: 147
X-RateLimit-Reset: 2026-03-12T00:00:00.000ZThese three go out on a Bearer-authenticated POST /scan and POST /scan/crawl. POST /scan/bulk on the session path also sends X-RateLimit-Used and X-RateLimit-Policy: daily. Nothing else sends rate-limit headers on a 200: not the session path of /scan, and not any /history or /scan/status read.
A 429 from a spent key quota is uniform: all five headers plus Retry-After, on /scan, /scan/crawl, /scan/bulk, /scan/authenticated and every /history read. The history reads used to answer that same limiter with a bare { error } and no Retry-After, so one retry path could not cover both. A 429 from a session-path daily quota still carries the five X-RateLimit-* headers but no Retry-After: that counter resets at midnight UTC, which X-RateLimit-Reset already tells you.
Body of a 429
{
"error": "Daily scan limit reached. Resets at 2026-03-12T00:00:00Z.",
"limit": 150,
"used": 150,
"remaining": 0,
"resets_at": "2026-03-12T00:00:00Z"
}Error Handling
Standard HTTP status codes. Every error body carries at least an error string; quota errors add the counters shown above.
| Status | Meaning | When you see it |
|---|---|---|
| 400 | Bad Request | Missing or invalid request body, an unparseable URL, or a target that fails the SSRF check by resolving to a private or link-local address. Check the field names and types. |
| 401 | Unauthorized | No session cookie, no Bearer token, or the token is revoked or expired. |
| 402 | Payment Required | Browserbase minute quota exhausted on POST /browser/sessions. No other endpoint uses this code. |
| 403 | Forbidden | Authenticated but not authorised: another user's scan, a key missing the scope the route needs, an unaccepted Terms version, a target on the deployment's blocklist, a feature disabled on this deployment, or more crawl pages than your plan allows. |
| 404 | Not Found | The resource does not exist, or it exists and is not visible to this caller. |
| 409 | Conflict | The action collides with the resource's current state: cancelling a scan that already finished, an email already in use, or a backup or update already running. |
| 413 | Payload Too Large | The request or the work it implies exceeds a hard cap, such as a repo too large for AI review or an oversized AI conversation. |
| 422 | Unprocessable Entity | Login could not be confirmed on POST /scan/authenticated or an authenticated crawl (see authReport.reason), or the target could not be reached on the demo and port-scan endpoints. Not used for SSRF or private-IP rejections, which are 400. |
| 429 | Too Many Requests | Daily quota exhausted or per-IP burst limit hit. Honour Retry-After. |
| 500 | Server Error | Unexpected server-side failure. Retry with backoff, and open an issue if it persists. |
| 502 | Bad Gateway | An upstream this endpoint depends on failed or returned nothing: the AI endpoint, the browser service, or the target after a successful login. |
| 503 | Service Unavailable | A dependency is not configured or not migrated on this deployment, such as Stripe on a billing route. Retrying will not help until the operator fixes it. |
Before You Ship This
- Keep the key out of the repo
- Environment variable or secrets vault, never a literal. Rotate with POST /keys/[id]/rotate, which invalidates the old secret in the same call while keeping the key's id and scopes.
- Read X-RateLimit-Remaining, not the 429
- Slowing down at 20 remaining costs nothing. Discovering the limit by hitting it costs you the request and a Retry-After wait. The header is on Bearer scan responses; if you are calling with a session cookie there is nothing to read, so track your own count.
- Validate the target before you send it
- The server rejects localhost and private ranges with a 400, but a client-side check turns that round trip into a local error.
- Retry 5xx, respect 429
- Exponential backoff on 500, 502, and 503. On 429 wait exactly what Retry-After says; backing off faster does not help.
- Cache by finding id
- Check ids are stable across scans and releases. GET /api/v3/finding-types gives you the whole catalogue in one unauthenticated call.
- Let webhooks tell you it finished
- Polling /history burns quota. A webhook fires once per completed scan and costs nothing.