Skip to main content

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

  1. Sign in to your VulnRadar account.
  2. Open Profile, then API Keys.
  3. Click Generate New Key.
  4. 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.
HTTP
Authorization: Bearer YOUR_API_KEY_HERE

Endpoints

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.

Open the API Playground
Every documented endpoint, with a link to its full reference
MethodEndpointDescription
POST/scanCreate a Scan
GET/scan/status/{id}Get Scan Job Status
DELETE/scan/status/{id}Cancel a Scan Job
POST/scan/authenticatedAuthenticated Scan
POST/scan/bulkBulk Scan
POST/scan/verifyAI-Verify a Scan's Findings
POST/scan/verify-batchAI-Verify a Findings Array
POST/history/{id}/summaryGenerate an AI Scan Summary
POST/scan/crawlDeep Crawl Scan
POST/scan/crawl/discoverDiscover URLs
POST/scan/discoverDiscover Subdomains
GET/scan/discover/progress/{requestId}Discovery Progress
GET/historyList Scan History
GET/history/{id}Get Scan Details
DELETE/historyDelete 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/sessionsStart 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-typesFinding Types
GET/keysList API Keys
POST/keysCreate API Key
POST/keys/{id}/rotateRotate API Key
POST/keys/{id}/revokeRevoke API Key
POST/keys/{id}/reset-bindingClear a Key's IP Binding
GET/domainsList Domains
POST/domainsAdd a Domain
POST/domains/{id}/verifyVerify a Domain Now
DELETE/domains?id={id}Remove a Domain
PATCH/domains/{id}Assign a Domain to a Team
GET/webhooksList Webhooks
POST/webhooksCreate a Webhook
PATCH/webhooksSend a Test Payload
PATCH/webhooks/{id}Edit, Pause, or Reassign a Webhook
POST/webhooks/{id}/rotate-secretRotate a Webhook's Signing Secret
GET/webhooks/{id}/deliveriesRead a Webhook's Delivery Log
DELETE/webhooksDelete a Webhook
POST
/scan

Create 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

JSON
{
  "url": "example.com",
  "portScan": true,
  "captureScreenshot": false,
  "isPublic": false,
  "scanners": ["headers", "ssl", "dns"]
}

Response
200 OK

JSON
{
  "scanId": 12345,
  "status": "running"
}
url accepts a bare hostname (auto-prepended https://), a full URL with any of the 15 supported schemes, or a public IPv4 literal (probe-only mode). The full set (SUPPORTED_PROTOCOLS in lib/scanner/execute-scan.ts) is http, https, ws, wss, ftp, ftps, ssh, sftp, smtp, smtps, imap, imaps, pop3, pop3s, mongodb. Note that the 400 body this route returns on a rejected scheme names only the first six; sftp and smtps in particular are accepted despite not appearing in that message.
Raw IPv4: web checks (headers, ssl, tls, cookies, content, info, configuration, code, secrets, api) are skipped, because there is no hostname context for them. DNS, email, and the portScan sweep still run.
portScan is a boolean. Set it to true to run a curated sweep of common ports and services (the previous per-service probes array was removed and consolidated into this single flag). Each reachable service has its banner read and is reported for version disclosure and reachability.
portScan is held to the same verified-domain gate as active-probes: port scanning from shared infrastructure is abuse, so a request setting portScan against a domain you have not verified is rejected with 403 before the scan starts.
scanners (advanced) accepts category names to restrict web checks: headers, ssl, tls, content, cookies, configuration, information-disclosure, dns, email, api, code, secrets-extended, vibe-code, client-side, supply-chain, host-validation, reputation, active-probes. Omit to run all 17 default categories. reputation only produces findings when the deployment has WEB_RISK_API_KEY configured. active-probes is opt-in only: it submits real requests to the target (SQLi/XSS/SSTI/command-injection/open-redirect canary payloads, spoofed-Origin CORS reflection, dangerous HTTP methods, X-Forwarded-Host injection, a live GraphQL introspection query) and never runs unless you name it explicitly, even if scanners is omitted.
active-probes additionally requires the target's domain (or its parent) to be a verified domain on your account -- see POST /domains below. A request naming active-probes against an unverified domain is rejected with 403 DOMAIN_NOT_VERIFIED before the scan starts.
To run only some active probes, pass a scoped token in scanners instead of the bare category: active-probes:<id>, where id is one of xss, sqli, ssti, command-injection, open-redirect, graphql, cors, http-methods, x-forwarded-host. List several to select several; the bare active-probes runs them all.
isPublic (boolean, optional) decides whether the finished scan is world-readable at its share URL and whether it feeds the public host-reputation cache. Omit it and the scan inherits your account's 'scans are private by default' setting, which is what an API caller gets silently today if they never set it. A request made from a browser extension or from any other browser with an API key is the exception: omit it there and the scan is private. Pass it explicitly when the answer matters.
captureScreenshot (boolean, default false) renders a screenshot of the target page. It spins up a real, metered BrowserBase session, so it is never implied and only runs when you ask for it.
The port sweep is independent of the URL scheme: it runs the same way on an https:// target or a raw IPv4.
SSRF protection rejects localhost and private IP targets.
A scan_history row is created before scanning starts, in status pending, then running. Poll GET /scan/status/{scanId} (see below) for progress and the completed result; there is no synchronous response body with findings on this endpoint anymore.
Webhooks and scan-complete emails fire when the background job finishes, not when this request returns.

Error Responses

400
Missing or invalid URL
401
Unauthorized (session cookie or Bearer API key required)
403
active-probes was requested against a domain you haven't verified (DOMAIN_NOT_VERIFIED)
429
Rate limit or daily quota exceeded
500
Failed to create the scan job; retry
GET
/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

Path parameters for GET /scan/status/{id}
ParameterTypeRequiredDescription
idnumberYesScan id

Response
200 OK

JSON
{
  "status": "running",
  "currentCategory": "headers",
  "categoriesCompleted": 4,
  "categoriesTotal": 12,
  "elapsedMs": 1820
}
status is one of pending, running, completed, failed.
When status is "completed", the response also includes result: { url, scannedAt, duration, findings, summary, responseHeaders, scanHistoryId, ...checksRun/other result metadata }.
When status is "failed", the response also includes error: a human-readable failure reason (including "Cancelled" if you cancelled it yourself).
A scan that exceeds its time budget (300s for a single scan, 900s crawl, 1800s bulk) is force-failed by a server-side watchdog rather than left at running forever.
Owner-only: returns 404 for a scan id that does not exist or belongs to another user.

Error Responses

401
Unauthorized
404
Scan not found or access denied
DELETE
/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

Path parameters for DELETE /scan/status/{id}
ParameterTypeRequiredDescription
idnumberYesScan id

Response
200 OK

JSON
{
  "status": "failed",
  "cancelled": true
}
The scan is marked failed with error: "Cancelled" immediately; it does not wait for the background job to notice.

Error Responses

401
Unauthorized
404
Scan not found or access denied
409
The scan already reached a terminal state; there is nothing to cancel
POST
/scan/authenticated

Authenticated 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

JSON
{
  "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

JSON
{
  "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" }
}
scanners (array of category names, optional) restricts the check set exactly as on POST /scan.
isPublic (boolean, optional) defaults to FALSE here, unlike every other scan-creation path. An authenticated scan sees whatever a logged-in area renders, so it is private unless this request explicitly passes true: neither the account's 'scans are private by default' setting nor the normal is_public default can make it public from either direction.
The response also carries dangerScore (0-10 aggregate risk, anchored to the safety tier) and engineConfidence (50-100, an integer percent), both computed over the same findings array.
auth.method is "form", "header", or "cookie". Form auth opens an ephemeral, real browser session (via BrowserBase) so a JavaScript-rendered login page gets a chance to appear before the login form is located and submitted as a normal HTTP POST; header and cookie auth attach the given values directly to every request instead of logging in.
Nothing under auth is ever written to a database table, a log line, or an audit record. The audit log and scan_history only record the non-secret fact that an authenticated scan ran, its method, and its outcome.
authReport.status is "authenticated" on a normal run, "lost" if the authenticated session appears to have dropped partway through (e.g. a redirect back to the login page), or "failed" if login itself never succeeded, in which case authReport.reason explains why and no scan runs.
If the login page turns out to be a Cloudflare challenge or a CAPTCHA, that is reported as a failed login with a reason describing the block, not silently treated like a wrong password.
Runs the same detector set as an unauthenticated single-page scan (the legacy per-category checks plus DNS/TLS/email async checks); it does not yet run the newer page-content checks described below.
Gated by the "Authenticated scanning" admin setting; returns 403 if disabled on this deployment.

Error Responses

400
Invalid request body or URL blocked for security reasons
401
Unauthorized
403
Authenticated scanning is disabled on this deployment, or the target is not scannable
422
Login failed or could not be confirmed; see authReport.reason
429
Rate limit or daily quota exceeded
502
Login succeeded but the target could not be reached afterward
POST
/scan/bulk

Bulk 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

JSON
{
  "urls": [
    "https://example.com",
    "https://example.org",
    "https://example.net"
  ]
}

Response
200 OK

JSON
{
  "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/." }
  ]
}
Max 100 URLs per request as an absolute server ceiling (CONFIG_MAX_URLS_BULK); your plan's own bulkScanUrls limit is usually lower and applies first.
Returns as soon as every URL is queued, not when the scans finish. Each result carries a scanId to poll on /scan/status/{id}; the batch drains one scan at a time under CONFIG_BULK_SCAN_TIMEOUT_SECONDS.
URLs beyond your remaining daily quota are reported in results with success: false rather than being scanned.

Error Responses

400
Missing or invalid urls array
401
Unauthorized
403
Bulk scanning is disabled on this deployment, the API key is missing scan:write, or terms acceptance is pending
429
Rate limit or daily quota
POST
/scan/verify

AI-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

JSON
{
  "scanHistoryId": 12345
}

Response
200 OK

JSON
{
  "success": true,
  "findings": [
    {
      "id": "hsts-missing",
      "title": "HSTS Header Missing",
      "aiVerdict": "confirmed",
      "aiConfidence": 92,
      "aiReason": "No Strict-Transport-Security header on any response checked."
    }
  ]
}
Owner-only: scanHistoryId must belong to the caller (session user or the API key's account).
Shares its per-account rate limit with POST /scan/verify-batch, the next card.
Bounded by the account's AI token quota per plan; a BYOK account (its own AI provider key configured) bypasses that cap entirely.

Error Responses

400
Missing or non-numeric scanHistoryId
401
Unauthorized
403
AI disabled in your settings, or the API key is missing scan:write
404
Scan not found or access denied
429
AI verification rate limit or AI token quota exceeded
POST
/scan/verify-batch

AI-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

JSON
{
  "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

JSON
{
  "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."
    }
  ]
}
url and findings[] are both required. The response is the same array, enriched in place with aiVerdict, aiConfidence and aiReason. Nothing is persisted.
Shares one rate-limit bucket with POST /scan/verify (RATE_LIMITS.aiVerify, keyed per account), so hitting both routes does not double your effective AI-verification quota.
findings[] is hard-capped by the AI_VERIFY_BATCH_MAX_FINDINGS admin setting, which ships at 50. Unlike /scan/verify, which only ever processes findings already stored on one of your own scans, this route accepts an arbitrary array, so the cap is what stops one request forcing unbounded AI spend. Over the cap is a 400 naming the limit.
Bounded by the account's AI token quota per plan; a BYOK account (its own AI provider key configured) bypasses that cap entirely.
Bearer callers need scan:write, not scan:read: this is treated as part of the active scanning workflow it enriches.
Long-running. maxDuration is 1140 seconds, so set a generous client timeout for a large array.

Error Responses

400
Unparseable body, missing url or findings[], or more findings than AI_VERIFY_BATCH_MAX_FINDINGS
401
Unauthorized, or invalid API key
403
AI disabled in your settings, or the API key is missing scan:write
429
AI verification rate limit or AI token quota exceeded
POST
/history/{id}/summary

Generate 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

Path parameters for POST /history/{id}/summary
ParameterTypeRequiredDescription
idnumberYesScan (scan_history) id

Query Parameters

Query parameters for POST /history/{id}/summary
ParameterTypeRequiredDefaultDescription
regeneratebooleanNofalseForce a fresh AI call and overwrite the cached summary

Response
200 OK

JSON
{
  "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
}
Owner-only: {id} must belong to the caller (session user or the API key's account).
Unmetered against the AI token quota (summaries are free/unmetered), but still rate-limited per account.

Error Responses

400
Invalid scan id
401
Unauthorized
403
AI disabled in your settings, or the API key is missing scan:write
404
Scan not found or access denied
429
AI summary rate limit exceeded
502
AI provider unavailable or returned nothing usable
POST
/scan/crawl

Deep 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

JSON
{
  "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

JSON
{
  "scanId": 12346,
  "status": "running"
}
Page cap per crawl is set by your plan: Free 25, Core 50, Pro 100, Elite 250 (lib/billing/crawl-page-limits.ts). A self-hosted instance with billing disabled is uncapped. Each page scanned counts as one scan against your daily limit.
scanners, captureScreenshot and portScan work exactly as they do on POST /scan, including portScan's verified-domain gate. captureScreenshot and portScan apply to the main URL / main host only, not once per crawled page.
isPublic behaves as on POST /scan for a logged-out crawl: omit it and the account default decides. An AUTHENTICATED crawl (one carrying an auth block) is the exception, and is private unless this request sets isPublic: true. It sees whatever a logged-in area renders, so neither the account default nor the normal is_public default is allowed to make it public.
auth (object, optional) turns this into an authenticated crawl. It takes the same block, the same admin toggle, and the same limits as POST /scan/authenticated: the session is established once and threaded through every page fetch. Nothing under auth is stored or logged.
All pages must share the entry URL's hostname (same-origin).
For session auth, each scanned page counts as one daily quota unit.
For Bearer auth, the entire crawl counts as one quota unit.
Poll GET /scan/status/{scanId}: the completed result's result.crawl field carries { pagesDiscovered, pagesScanned, pagesSkipped, pages: [...] } alongside the aggregate findings and summary.

Error Responses

400
Missing or invalid URL
401
Unauthorized
429
Rate limit or daily quota
POST
/scan/crawl/discover

Discover URLs

Discover links from a target without scanning them. Useful for previewing what a crawl would cover.

Request Body

JSON
{
  "url": "https://example.com"
}

Response
200 OK

JSON
{
  "urls": [
    "https://example.com",
    "https://example.com/about",
    "https://example.com/contact",
    "https://example.com/blog"
  ]
}
Capped by the CRAWL_DISCOVER_MAX_PAGES admin setting, which ships at 500. Discovery is not plan-aware: every plan discovers up to the same number.
The response body is exactly { urls }. There is no total field; read urls.length. An earlier version of this example showed one.
Rate limited at the scan cap (100 requests / 60 min by default, RATE_LIMIT_SCAN_REQUESTS + RATE_LIMIT_SCAN_WINDOW_MINUTES) but keyed per USER, not per IP, and in its own bucket (crawl-discover:{userId}) separate from POST /scan's. Rotating source IPs does not reset it; discovery calls do not consume the scan endpoint's allowance either.
Does NOT consume a daily scan quota unit. Discovery only reads pages, it does not scan them. This card previously claimed it counted as one.
Same-origin only: sitemap URLs plus a depth-bounded link crawl, all pinned to the entry hostname, so no subdomain or cross-host URL can enter the list.
Only http and https URLs are accepted here (unlike POST /scan, which takes the wider protocol set).

Error Responses

400
Missing URL, URL over MAX_URL_LENGTH, unparseable URL, or a non-http(s) scheme
401
Unauthorized, or invalid/revoked API key
403
API key missing the scan:write scope, or terms acceptance pending
429
Rate limit
POST
/scan/discover

Discover 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

JSON
{
  "url": "https://example.com",
  "forceRefresh": false,
  "requestId": "a3f9c1e2-7b04-4d8a-9c31-5e6f0b2a8d47"
}

Response
200 OK

JSON
{
  "subdomains": [
    { "host": "www.example.com", "source": "crt.sh" },
    { "host": "api.example.com", "source": "rapiddns" },
    { "host": "staging.example.com", "source": "brute" }
  ]
}
forceRefresh: true bypasses the subdomain_cache table.
Results are cached for 24h per domain by default.
requestId (string, optional) is a caller-generated id for THIS request. Supply one and you can poll GET /scan/discover/progress/{requestId} while this POST is still in flight to watch which of the passive sources it is working through. Omit it and there is nothing to poll: the progress endpoint has no other way to find the run. This call still blocks until discovery finishes either way.

Error Responses

400
Missing or invalid URL, or unparseable body
401
Unauthorized
429
Rate limit
GET
/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

Path parameters for GET /scan/discover/progress/{requestId}
ParameterTypeRequiredDescription
requestIdstringYesThe same requestId you passed in the POST /scan/discover body

Response
200 OK

JSON
{
  "stage": "dns_resolution",
  "stageIndex": 2,
  "stagesTotal": 4
}
stage runs querying_sources -> brute_force -> dns_resolution -> reachability, then "done". Before the run reaches this process it reads "queued".
stagesTotal is 4 (DISCOVERY_STAGES in lib/scanner/discovery-progress.ts). stageIndex is that stage's 0-based position, and 4 once stage is "done", so stageIndex / stagesTotal is a usable progress fraction.
An unknown requestId returns stage: "queued", stageIndex 0 rather than a 404, so a poll that starts before the POST registers looks the same as one with a typo in the id.
Progress lives in process memory and is dropped 2 minutes after the last update. It is not shared between instances, so behind a load balancer a poll can land on a server that never saw the POST.
Requires scan:read on the Bearer path (session auth also works).

Error Responses

401
Unauthorized
403
API key missing the scan:read scope
GET
/history

List 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

Query parameters for GET /history
ParameterTypeRequiredDefaultDescription
limitnumberNo100 (the deployment's maxLimit)Rows to return. Clamped to maxLimit rather than rejected if you ask for more.
offsetnumberNo0Rows to skip. This is how you reach page 2.
qstringNononeCase-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.
tagstringNononeExact tag, matched against your own tags on each scan. Combines with q as AND.

Response
200 OK

JSON
{
  "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
}
id is an opaque, non-enumerable string. Treat it as a token, not a number: /history/{id} also accepts the legacy integer id, but this list only ever returns the opaque form.
total is every scan on the account inside retention, not the length of this page. truncated means there are rows AFTER this page: walk them with ?offset=100, ?offset=200 and so on until it goes false. Before pagination existed this endpoint reported truncated: true and gave you no way to act on it.
matched is how many rows q and tag select, and is what truncated and your paging are measured against. With neither filter set it equals total. total stays the unfiltered account count on purpose, so a client can show both without a search making the account look smaller than it is.
limit is the page size actually applied to your request, and maxLimit is the largest this deployment will serve. A self-hosted instance may have raised or lowered maxLimit, so read it rather than assuming 100.
status distinguishes a finished scan from one still pending or running, or one that failed. A pending row carries an empty summary and findings_count 0, which is not the same thing as a clean result.
This list is your own scans only. There is no team clause on the query. For a teammate's scans use GET /api/v3/teams/member-scans?teamId=&userId=, and for a single scan a teammate owns use GET /history/{id}, which does honour team access.
Use /history/{id} for full details (findings, response headers).

Error Responses

401
Unauthorized, or invalid/revoked API key
403
API key is missing the scan:read scope, or the account has not accepted the current Terms
429
API key daily limit reached
GET
/history/{id}

Get Scan Details

Return full scan details: findings, response headers, scan metadata. Owner or same-team member can view.

Path Parameters

Path parameters for GET /history/{id}
ParameterTypeRequiredDescription
idstringYesThe opaque scan id returned by GET /history. The legacy integer id is still accepted.

Response
200 OK

JSON
{
  "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

401
Unauthorized
404
Scan not found or access denied
DELETE
/history

Delete 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

JSON
{
  "message": "Resource deleted successfully"
}
The response carries no success flag and no count. A 200 is the confirmation.
With a Bearer token this needs the scan:delete scope, which new keys do NOT get by default. Grant it in Profile -> Developer -> API Keys.

Error Responses

401
Unauthorized, or invalid/revoked API key
403
API key is missing the scan:delete scope, or the account has not accepted the current Terms
429
API key daily limit reached
GET
/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

Path parameters for GET /history/{id}/report?format={format}
ParameterTypeRequiredDescription
idstringYesThe opaque scan id from GET /history. The legacy integer id is still accepted.

Query Parameters

Query parameters for GET /history/{id}/report?format={format}
ParameterTypeRequiredDefaultDescription
formatstringNojsonjson | sarif | pdf | md (alias: markdown) | compliance | csv. Anything else is a 400 naming the valid set.
includeSuppressedbooleanNofalseInclude findings you marked a false positive. Off by default, matching the dashboard.
applyTriagebooleanNofalseMark 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

JSON
# 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.json
Same auth and access model as GET /history/{id}: a Bearer key with scan:read, or a session cookie. Owner, or a team member with read access to the scan.
Every response carries Content-Disposition: attachment with a filename derived from the scanned host, so a browser or curl -O writes a sensibly named file.
The owner's export has cross-rescan remediation status attached to each finding. A team-read viewer gets the stored findings as-is, because remediation state is private to the owner.
summary is recomputed from the findings actually in the response, not read from storage, so an export can never print a different count than the list under it.
compliance is the PCI DSS / SOC 2 / ISO 27001 / OWASP ASVS / HIPAA / GDPR crosswalk, as Markdown.
A scan the caller cannot read returns 404, not 403, so this endpoint cannot be used to probe which scan ids exist.
Both auth paths are throttled. A Bearer call spends one of the key's daily requests; a session call spends from a separate per-user report-export bucket, because every format is generated synchronously over the whole findings array. Either can answer 429.
format=pdf is behind the FEATURE_PDF_REPORTS admin setting and returns 403 when an operator has turned it off. The check runs before the scan lookup, so a disabled format costs nothing.

Error Responses

400
Unsupported format (the body names the valid set)
401
Unauthorized, or invalid/revoked API key
403
API key is missing the scan:read scope, terms acceptance is pending, or format=pdf with PDF reports disabled on this deployment
404
Scan not found, or no read access
429
API key daily limit reached, or too many session-authenticated exports
GET
/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

Query parameters for GET /scan/reputation?host={host}
ParameterTypeRequiredDescription
hoststringYesHostname to look up. Normalized server-side.
urlstringNoThe exact page you are asking about, when you have it. Prefers an exact-page match over the host-level fallback.

Response
200 OK

JSON
{
  "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"
}
known: false means no public scan covers this host yet. Every other field is null in that case, including matchType.
verdict is the canonical safe | caution | unsafe tier. Read it directly rather than re-deriving a tier from severityCounts: a naive "any high means unsafe" rule cannot tell an exploitable high from a hardening one like a missing HSTS header, so it flags hosts the scorer considers safe.
matchType is "exact" when the result comes from a scan of the precise url you passed, and "host" when it is the host-level fallback: a scan of a DIFFERENT page on the same host. Pass url whenever you have it, because a scan of one page on a host like github.com is not the reputation of every other page on it.
scannedUrl is only ever set for an "exact" match, where it just echoes back the url you supplied. It is null for a "host" match on purpose: returning someone else's scanned URL verbatim would leak whatever that URL contained, for instance a token in a password-reset link.
Built only from PUBLIC scans. A scan created with isPublic: false never feeds this cache.
Rate limited at the general API cap (100 requests / 60 min by default) keyed per user, not the heavier scan cap.
Bearer callers need scan:read.

Error Responses

400
Missing or unparseable host parameter
401
Unauthorized, or invalid/revoked API key
403
API key missing the scan:read scope, or terms acceptance pending
429
Rate limit
DELETE
/history/{id}

Delete a Single Scan

Permanently delete a single scan by ID. Owner only.

Path Parameters

Path parameters for DELETE /history/{id}
ParameterTypeRequiredDescription
idnumberYesScan ID to delete

Response
200 OK

JSON
{
  "success": true,
  "message": "Scan deleted successfully"
}

Error Responses

401
Unauthorized
403
Forbidden: not the scan owner
404
Scan not found
PATCH
/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

Path parameters for PATCH /history/{id}
ParameterTypeRequiredDescription
idstringYesScan public id (the legacy numeric id also works)

Request Body

JSON
{
  "notes": "Investigating HSTS issue with infra team",
  "isPublic": false,
  "teamIds": [7, 9]
}

Response
200 OK

JSON
{
  "notes": "Investigating HSTS issue with infra team",
  "isPublic": false,
  "teamId": 7,
  "teamIds": [7, 9]
}
The response is flat. There is no { success: true } wrapper, and this card previously claimed there was.
teamIds is a full REPLACEMENT set, not a list of teams to add. Send [] to unshare the scan entirely. Because omitting a team is how you remove it, every id in the array and every id being dropped is permission-checked, so you cannot drop a team you do not manage by leaving it out.
teamId (a single number, or null) is still accepted for clients written before multi-team sharing and means the same as a one- or zero-element teamIds. It also comes back in the response as the primary team, which is simply the first entry of teamIds.
teamIds is reported whether or not this request changed it, so an absent field in your request never leaves you guessing whether it means 'unchanged' or 'shared with nobody'.
notes is truncated at 2000 characters rather than rejected.
Setting isPublic to false revokes the existing share link, and also drops the scan from the public /host page if it was that host's current source.
Notes and visibility need write access, which a team member with a write role has. Changing the team set is owner-only: sharing is an ownership decision, not a collaboration one.

Error Responses

400
Nothing to update, a non-string notes, a non-boolean isPublic, or a teamIds entry you cannot share into
401
Unauthorized
403
Read access but not write access, or not the owner when changing teamIds
404
Scan not found, or no access to it at all
POST
/browser/sessions

Start 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

JSON
{
  "url": "https://example.com",
  "ttlSeconds": 360,
  "viewport": { "width": 1920, "height": 1080 }
}

Response
200 OK

JSON
{
  "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
}
ttlSeconds is clamped to Math.max(30, Math.min(requested, BROWSERBASE_MAX_TTL_SECONDS)): a 30 second floor and a ceiling that ships at 360 (6 minutes), admin-configurable. Omit it and you get BROWSERBASE_DEFAULT_TTL_SECONDS, which also ships at 360. Both were previously documented as 300, and the floor was not documented at all.
ttl is accepted as a legacy alias for ttlSeconds. ttlSeconds wins if both are present.
viewport ({ width, height }) sets the remote browser's resolution and defaults to 1920x1080. BrowserBase's own default is much larger, which makes everything look tiny inside the embedded viewer, so leave this alone unless you are rendering somewhere other than the popup.
expiresInSeconds echoes back the clamped TTL that was actually applied, not what you asked for. Read it rather than assuming your ttlSeconds was honoured.
Open the returned session.id at /browser/{id}?expiresIn={expiresInSeconds} to view in the popup. The iframe src is session.liveViewerUrl (debuggerFullscreenUrl + &navbar=false).
Under the hood: we POST /v1/sessions to BrowserBase (with projectId + timeout + browserSettings, no startUrl), then open a CDP WebSocket (Node 22 built-in, to the create response's connectUrl) to send Page.navigate to the target URL, then GET /v1/sessions/{id}/debug for the iframe-embed URL. Best-effort: if CDP fails the browser stays on about:blank.
BrowserBase does NOT accept a `?goto=` parameter: navigation must go through CDP. See https://docs.browserbase.com/platform/browser/observability/session-live-view for the embed pattern.
Server-only: the BrowserBase API key is never sent to the client.
The two 503s mean opposite things and a client must branch on the message. 'not configured' is permanent for this deployment, so retrying never helps; 'capacity is full' is transient, so retrying in a moment does. This card used to list only one 503.
The 402 is the only one in the whole API. It fires when the plan's monthly BrowserBase minute allowance is spent, and no amount of retrying clears it before the next billing period.

Error Responses

400
url is neither a public http(s) URL nor a public IPv4, or it failed the SSRF target check
401
Unauthorized
402
The plan's monthly BrowserBase minute quota is exhausted (permanent until the quota resets)
429
Per-user session-creation rate limit (20 / 60 min by default)
500
The session started but its ownership row could not be written, so it was torn back down
502
BrowserBase returned a session with no id
503
Two meanings, distinguished by the message. 'BrowserBase is not configured on this server' is permanent for this deployment: do not retry. 'Live-browser capacity is full right now' is transient: retry in a moment.
GET
/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

Query parameters for GET /browser/sessions?id={id}
ParameterTypeRequiredDescription
idstringYesBrowserBase session id

Response
200 OK

JSON
{
  "session": {
    "id": "bb_session_abc123",
    "status": "RUNNING",
    "url": "https://example.com/login",
    "liveViewerUrl": "https://app.browserbase.com/..."
  }
}
Ownership is enforced against the browser_sessions row: another user's session id is a 403, not a 404.

Error Responses

400
Missing session id
401
Unauthorized
403
That session belongs to another user
502
BrowserBase read failed (network or upstream error)
503
BrowserBase is not configured on this server
DELETE
/browser/sessions?id={id}

End Browser Session

End a BrowserBase session early. Idempotent, so it is safe to call from window.onbeforeunload.

Query Parameters

Query parameters for DELETE /browser/sessions?id={id}
ParameterTypeRequiredDescription
idstringYesBrowserBase session id

Response
200 OK

JSON
{
  "ended": true,
  "id": "bb_session_abc123"
}
Ownership is enforced the same way as on GET: another user's session id is a 403.
This call is what bills the session's metered seconds and releases its concurrency slot. A session nobody ends explicitly is reclaimed by the periodic cleanup sweep instead, so calling this promptly frees capacity for everyone on the deployment.

Error Responses

400
Missing session id
401
Unauthorized
403
That session belongs to another user
503
BrowserBase is not configured on this server
GET
/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

JSON
{
  "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"
}
status: up-to-date | behind | ahead | unknown
When status is unknown, latest is always null and release_url points at the releases index rather than a specific tag. There are exactly two unknown paths (the GitHub call returned a non-2xx, or it threw/timed out) and both hardcode latest: null, so an updater must not dereference latest without checking status first. This note used to say latest "may still be populated from cache", which was never true.
current is the compiled APP_VERSION and is always present, on every path. It is never cache-derived.
The 1 hour cache is on the upstream GitHub fetch, not on this response. A cache hit produces a normal up-to-date/behind/ahead status, never unknown.
Always 200. The failure modes are reported in the body via status: unknown, not as an HTTP error.
GET
/finding-types

Finding 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

JSON
{
  "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."
    }
  ]
}
Unauthenticated.
Backed by lib/scanner/checks-data/*.json (852 legacy checks) plus lib/scanner/checks/page-checks/ (55 checks on the newer PageCheck architecture, described in Architecture): 905+ entries across 18 categories at the time of writing. Read count from the response rather than hardcoding it.
Each legacy category has its own JSON file and a matching detector module under lib/scanner/checks/. The newer page-content checks declare their own metadata inline instead of a JSON file.
type values come from the per-category JSON schema: header, combined, content, and so on.
GET
/keys

List API Keys

List API keys for the authenticated user. Secret values are never returned.

Response
200 OK

JSON
{
  "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
    }
  ]
}
The prefix field is named key_prefix, not prefix.
usage_today counts requests in the last 24 hours, not since midnight.
scopes is null on keys created before scopes existed. A null there means the key behaves as if it had every scope.

Error Responses

401
Unauthorized (session required)
POST
/keys

Create 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

JSON
{
  "name": "CI",
  "scopes": ["scan:write", "scan:read"]
}

Response
200 OK

JSON
{
  "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"
  }
}
Returns HTTP 201, not 200. There is no top-level id or name: everything is under key.
raw_key is shown exactly once. The server stores only the encrypted form + a SHA-256 fingerprint.
daily_limit is your plan's API request allowance, not a per-key setting: 25 on Free, 100 on Core Supporter, 5,000 on Pro Supporter, effectively unlimited on Elite Supporter. It follows your plan: change plan and every existing key enforces the new number on its next request, with nothing to rotate or recreate.
scopes is optional and defaults to scan:write + scan:read. scan:delete is deliberately not a default: request it explicitly if the key needs to delete history.

Error Responses

400
Active-key limit for your plan reached, unknown scope requested, empty scope list, or invalid body
401
Unauthorized
403
API keys are disabled on this deployment
POST
/keys/{id}/rotate

Rotate 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

Path parameters for POST /keys/{id}/rotate
ParameterTypeRequiredDescription
idnumberYesKey ID to rotate

Response
200 OK

JSON
{
  "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"]
  }
}
The id does not change. Anything keyed on it (audit records, per-key dashboards, allow-lists) keeps working across a rotation.
Because the row survives, so does its usage history: today's consumed quota carries over to the rotated key rather than resetting.
daily_limit reports your current plan's allowance. Rotation is not how a plan change reaches a key: every key is checked against your live plan on each request.
Note the envelope differs from POST /keys: this one wraps the key in { success: true, key } and returns 200.

Error Responses

400
Invalid key ID
401
Unauthorized
404
Key not found or already revoked
POST
/keys/{id}/revoke

Revoke API Key

Set revoked_at on the key. The key stops working immediately.

Path Parameters

Path parameters for POST /keys/{id}/revoke
ParameterTypeRequiredDescription
idnumberYesKey ID to revoke

Response
200 OK

JSON
{
  "success": true
}

Error Responses

400
Invalid key ID
401
Unauthorized
404
Key not found
POST
/keys/{id}/reset-binding

Clear 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

Path parameters for POST /keys/{id}/reset-binding
ParameterTypeRequiredDescription
idnumberYesKey ID whose binding to clear

Response
200 OK

JSON
{
  "success": true
}
Rotating the key used to be the only way out of a binding mismatch, which forces every consumer of that key to be reconfigured for what is usually just a CI runner getting a different address this morning.
The next successful request re-adopts whichever subnet it comes from. This is a recovery action, not a way to switch the feature off.
Session cookie auth. A key cannot clear its own binding, which would defeat the point.

Error Responses

400
Invalid key ID
401
Unauthorized
404
Key not found or already revoked
GET
/domains

List Domains

Your verified and pending domains, plus any assigned to a team you belong to.

Response
200 OK

JSON
{
  "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

401
Unauthorized
POST
/domains

Add 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

JSON
{
  "domain": "example.com"
}

Response
200 OK

JSON
{
  "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>"
}
domain accepts a bare domain, a www.-prefixed domain, or a full URL (only its hostname is used). It is NOT collapsed to its registrable root: adding blog.example.com verifies exactly that (and everything under it), not example.com.
Publish the returned value as a TXT record at the returned name, then call POST /domains/{id}/verify.
Re-adding a domain you already have a row for returns that row's existing instructions instead of creating a duplicate (status 200, alreadyExists: true).
Rate-limited per account, 20 additions per hour by default. It is an admin setting, so a self-hosted instance may have raised or lowered it.

Error Responses

400
Missing or invalid domain
401
Unauthorized
403
Domain verification is disabled on this deployment
429
Rate limit exceeded
POST
/domains/{id}/verify

Verify 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

Path parameters for POST /domains/{id}/verify
ParameterTypeRequiredDescription
idnumberYesDomain ID to verify

Response
200 OK

JSON
{
  "verified": true,
  "status": "verified"
}
DNS changes can take a few minutes to propagate -- a failed check is not final, just retry once the record has had time to spread.
Rate-limited per account, 30 attempts per hour by default. It is an admin setting, so a self-hosted instance may have raised or lowered it.
A verified domain is also periodically re-checked in the background (roughly every 30 days). If the TXT record no longer resolves -- the domain changed hands, DNS was repointed, or it expired -- status moves to reverify_failed and active-probes scope for it is revoked automatically until this endpoint is called again successfully.

Error Responses

400
Invalid domain id
401
Unauthorized
403
Domain verification is disabled on this deployment, or you don't have write access to this domain
404
Domain not found
429
Rate limit exceeded
DELETE
/domains?id={id}

Remove a Domain

Removes a domain. Active Probing stops being allowed against it (and its subdomains) immediately.

Query Parameters

Query parameters for DELETE /domains?id={id}
ParameterTypeRequiredDescription
idnumberYesDomain ID to remove

Response
200 OK

JSON
{
  "success": true
}

Error Responses

400
Missing domain id
401
Unauthorized
403
You don't have permission to remove this domain
404
Domain not found
PATCH
/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

Path parameters for PATCH /domains/{id}
ParameterTypeRequiredDescription
idnumberYesDomain ID to reassign

Request Body

JSON
{
  "teamId": 7
}

Response
200 OK

JSON
{
  "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
}
Owner-only, matching the rule on webhooks. A team member with write access may USE a shared domain, but deciding who a proof of ownership is shared with belongs to whoever proved it.
teamId must name a team you can write into. A team you only have read access to, or one you are not in at all, is a 400 rather than a silent no-op.
A domain that is not yours returns 404, not 403. There is no read-only variant of this action, so a non-owner learns nothing about whether the id is real.
The response is the updated row, flat, using its database column names.

Error Responses

400
Body carried no teamId, teamId was neither an integer nor null, or it names a team you cannot write into
401
Unauthorized
404
Domain not found, or you are not its owner
GET
/webhooks

List 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

JSON
{
  "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"
    }
  ]
}
The signing secret is never returned here. It is shown once when the webhook is created and once more when it is rotated, the same contract an API key's raw value has.
Session cookie auth: an API key cannot reach the webhook routes.

Error Responses

401
Unauthorized
POST
/webhooks

Create a Webhook

Register a public HTTPS endpoint to be called when a scan completes.

Request Body

JSON
{
  "url": "https://hooks.example.com/vulnradar",
  "name": "CI alerts",
  "type": "auto"
}

Response
200 OK

JSON
{
  "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>"
}
secret is returned exactly once, in this response. Store it now: nothing else ever returns it. The only way to get a new one is to rotate, either with POST /webhooks/{id}/rotate-secret or with the rotate button on the Webhooks page.
Sign-check every delivery against it. That is the only thing separating a real delivery from anyone who learned your endpoint URL.
type is "auto" (or omitted) to detect the payload format from the URL, or one of "discord", "slack", "generic" to force it.
https only, and the URL is checked against the same private-address guard the scanner uses, so localhost, link-local and private-range targets are refused.
The number of webhooks you can hold is capped by your plan.

Error Responses

400
Missing or unparseable URL, a non-HTTPS or blocked target, or the plan limit is reached
401
Unauthorized
403
Webhooks are disabled on this deployment
PATCH
/webhooks

Send 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

JSON
{
  "id": 3
}

Response
200 OK

JSON
{
  "success": true,
  "message": "Test webhook sent successfully"
}
The two PATCH routes are easy to confuse: PATCH /webhooks with { id } in the body sends a test, PATCH /webhooks/{id} with the id in the path edits the resource.
The stored URL is re-validated against the private-address guard before the call, since DNS may have moved since registration.
Failures come back as { success: false, error } with a 400, not the bare { error } most of this API uses. The error text includes the status and first 100 characters your endpoint returned, which is usually enough to diagnose it.
Needs write access: a viewer-role co-member gets 403.

Error Responses

400
Missing id, the target is now blocked, or your endpoint refused the delivery
401
Unauthorized
403
No write access to this webhook
404
Webhook not found
PATCH
/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

Path parameters for PATCH /webhooks/{id}
ParameterTypeRequiredDescription
idnumberYesWebhook ID to edit

Request Body

JSON
{
  "active": false
}

Response
200 OK

JSON
{
  "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"
}
active: false pauses delivery while keeping the id and the secret, which is what you want during an incident on the receiving side. Deleting and recreating changes both.
teamId is owner-only; the other fields need write access. A read-only co-member gets 403 because they legitimately know the webhook exists; a caller with no access at all gets 404.
A new url is re-validated the same way POST /webhooks validates it.

Error Responses

400
Invalid id, a body with nothing to update, or a blocked URL
401
Unauthorized
403
Read access but not write access
404
Webhook not found
POST
/webhooks/{id}/rotate-secret

Rotate a Webhook's Signing Secret

Issue a new HMAC signing secret in place: same row, same id, same URL.

Path Parameters

Path parameters for POST /webhooks/{id}/rotate-secret
ParameterTypeRequiredDescription
idnumberYesWebhook ID whose secret to replace

Response
200 OK

JSON
{
  "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>"
}
Before this existed, a leaked signing secret could only be dealt with by deleting the webhook and creating a new one, which changes the id and breaks the consumer's configuration for what should be a credential swap.
Every signature your consumer is currently verifying becomes invalid the moment this returns. Deploy the new secret first, or accept a gap.
Owner-only, not merely team-write: a team member with write access can edit or pause a webhook, but this is an ownership-level decision.

Error Responses

400
Invalid webhook id
401
Unauthorized
404
Webhook not found, or you are not its owner
GET
/webhooks/{id}/deliveries

Read 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

Path parameters for GET /webhooks/{id}/deliveries
ParameterTypeRequiredDescription
idnumberYesWebhook ID whose attempts to read

Response
200 OK

JSON
{
  "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"
    }
  ]
}
http_status is null on a network error or a blocked target; response_snippet then carries the error text instead of a body.
Neither field ever contains the request payload, so the log is safe to read without exposing what was sent.
Fixed at 50 rows with no paging. There is no older page: this is a recent-attempts view, not an audit trail.
Read access follows the list: the owner, or a co-member of the team the webhook is assigned to.

Error Responses

400
Invalid webhook id
401
Unauthorized
404
Webhook not found, or no access to it
DELETE
/webhooks

Delete a Webhook

Remove a webhook so it stops being called.

Request Body

JSON
{
  "id": 3
}

Response
200 OK

JSON
{
  "success": true
}
The id goes in the body, not the path or the query string, unlike DELETE /domains.
Prefer PATCH /webhooks/{id} with active: false if you only want to stop deliveries for a while: deleting loses the id and the secret.

Error Responses

401
Unauthorized
403
No write access to this webhook

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

bash
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

bash
curl -X GET "https://vulnradar.dev/api/v3/history" \
  -H "Authorization: Bearer YOUR_API_KEY"

Get scan details

bash
# 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.

YAML
- 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: 0

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

YAML
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
HTTP/1.1 200 OK
X-RateLimit-Limit: 150
X-RateLimit-Remaining: 147
X-RateLimit-Reset: 2026-03-12T00:00:00.000Z

These 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

JSON
{
  "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.

HTTP status codes returned by the v3 API
StatusMeaningWhen you see it
400Bad RequestMissing 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.
401UnauthorizedNo session cookie, no Bearer token, or the token is revoked or expired.
402Payment RequiredBrowserbase minute quota exhausted on POST /browser/sessions. No other endpoint uses this code.
403ForbiddenAuthenticated 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.
404Not FoundThe resource does not exist, or it exists and is not visible to this caller.
409ConflictThe 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.
413Payload Too LargeThe request or the work it implies exceeds a hard cap, such as a repo too large for AI review or an oversized AI conversation.
422Unprocessable EntityLogin 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.
429Too Many RequestsDaily quota exhausted or per-IP burst limit hit. Honour Retry-After.
500Server ErrorUnexpected server-side failure. Retry with backoff, and open an issue if it persists.
502Bad GatewayAn upstream this endpoint depends on failed or returned nothing: the AI endpoint, the browser service, or the target after a successful login.
503Service UnavailableA 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.
REST API Reference: Endpoints and Schema | VulnRadar