Endpoints
Every public REST endpoint of WASViking, grouped by resource, with examples in five languages.
Every endpoint lives under https://api.wasviking.com/api/v1/public/ and
needs an API key in the Authorization: ApiKey header (see
Authentication). Lists are paged with
page and page_size and return total, page and page_size next to
the rows.
Infrastructure Defense
Read only. Scope infrastructure:read.
| Method | Path | What it returns |
|---|---|---|
GET |
/infrastructure/hosts/ |
The hosts of the organization, most recently seen first. |
GET |
/infrastructure/hosts/{id}/ |
One host, by the id the list returns. |
GET |
/infrastructure/vulnerabilities/ |
One row per vulnerability on each host. |
Hosts list parameters:
| Parameter | Values |
|---|---|
os_family |
linux, windows, macos and the other families the portal shows |
environment |
production, staging, development, other |
criticality |
low, medium, high, critical |
status |
The host status, such as online or offline |
tag |
A tag name |
q |
Part of the hostname or of the IP address |
page_size |
Up to 100 (default 50) |
A host carries id, hostname, ip_address, mac_address, os_family,
os_name, os_version, device_type, environment, criticality,
status, managed_by (agent or probe), site, tags, risk_score,
open_vulnerabilities (counts by severity), last_seen_at and
last_inventory_at.
Vulnerabilities list parameters:
| Parameter | Values |
|---|---|
status |
open (default), resolved, accepted or all |
severity |
critical, high, medium, low, unknown |
known_exploited |
1 keeps only the vulnerabilities in the CISA Known Exploited Vulnerabilities catalog |
host_id |
The id of a host |
updated_since |
An ISO 8601 date or date and time: only the rows found, fixed, reopened or accepted at or after it |
page_size |
Up to 100 (default 50) |
Each row carries id, status, the host (id, hostname,
ip_address), the vulnerability (id, severity, cvss_score,
cvss_vector, epss_score, known_exploited, used_in_ransomware,
summary, published_at), affected_software, installed_version,
fixed_version, found_by and the dates first_seen_at, last_seen_at,
resolved_at, reopened_at and accepted_at.
Example row:
{
"id": 12754,
"status": "open",
"host": {
"id": "a17f34667015410583036d3d290805cf",
"hostname": "10.231.77.112",
"ip_address": "10.231.77.112"
},
"vulnerability": {
"id": "CVE-2023-20198",
"severity": "critical",
"cvss_score": 10.0,
"cvss_vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H",
"epss_score": 0.70922,
"known_exploited": true,
"used_in_ransomware": null,
"summary": "Cisco is providing an update for the ongoing investigation into observed exploit ...",
"published_at": "2023-10-16T16:15:10.023000+00:00"
},
"affected_software": "Cisco IOS XE",
"installed_version": "17.9.4",
"fixed_version": "17.9.5, 17.9.4a",
"found_by": "network_device",
"first_seen_at": "2026-11-25T17:24:45.770097+00:00",
"last_seen_at": "2026-11-25T17:24:40.054984+00:00",
"resolved_at": null,
"reopened_at": null,
"accepted_at": null
}
found_by says where the vulnerability was read: os_package,
windows_update, macos_update, application, java_runtime,
network_service or network_device.
Findings
Read only. Scope findings:read.
| Method | Path | What it returns |
|---|---|---|
GET |
/findings/ |
The findings of the organization, most recently seen first. |
GET |
/findings/{id}/ |
One finding with its evidence. |
The list takes status, severity, category, min_risk (0 to 100),
sla_breached=1, asset_id, page and page_size (up to 100).
Audit log
Read only. Scope audit_logs:read.
| Method | Path | What it returns |
|---|---|---|
GET |
/audit-log/ |
The audit log of the organization. |
It takes action (part of the action name), actor_user_id, date_from
and date_to (YYYY-MM-DD), search, page and page_size (up to 200).
Targets and scans
| Method | Path | Scope | What it does |
|---|---|---|---|
GET |
/targets/ |
targets:read |
Lists the targets registered in the portal. |
POST |
/scan/start/ |
scan:start |
Starts a scan of a registered target. |
GET |
/scan/{scan_id}/status/ |
scan:read |
Returns the status of a scan. |
/scan/start/ takes a JSON body with target_url (the address of a
registered target) and, optionally, scan_type (fullscan or
singlescan). It answers 202 with the scan_id to follow. An
organization starts at most 20 scans per hour through the API.
Other integrations
The ticketing endpoints (/ticketing/links/, scopes ticketing:read and
ticketing:write), the supply chain advisories (/supply-chain/advisories/,
scope sca:intel:read) and the endpoints the Sentinel command line and the
CI/CD integrations call are described in their own guides.
Code examples
The same call in each language: the critical vulnerabilities known to be
exploited, every page of them, printing the host, the vulnerability and the
version that fixes it. Set WASVIKING_API_KEY in the environment first.
curl:
curl -sS "https://api.wasviking.com/api/v1/public/infrastructure/vulnerabilities/?severity=critical&known_exploited=1&page_size=100" \
-H "Authorization: ApiKey ${WASVIKING_API_KEY}"
Python (with requests):
import os
import requests
BASE = os.environ.get("WASVIKING_API_URL", "https://api.wasviking.com")
HEADERS = {"Authorization": f"ApiKey {os.environ['WASVIKING_API_KEY']}"}
page = 1
while True:
response = requests.get(
f"{BASE}/api/v1/public/infrastructure/vulnerabilities/",
headers=HEADERS,
params={"severity": "critical", "known_exploited": 1, "page": page, "page_size": 100},
timeout=30,
)
response.raise_for_status()
data = response.json()
for row in data["vulnerabilities"]:
print(row["host"]["hostname"], row["vulnerability"]["id"], row["fixed_version"])
if page * data["page_size"] >= data["total"]:
break
page += 1
PowerShell:
$Base = if ($env:WASVIKING_API_URL) { $env:WASVIKING_API_URL } else { "https://api.wasviking.com" }
$Headers = @{ Authorization = "ApiKey $($env:WASVIKING_API_KEY)" }
$Page = 1
do {
$Uri = "$Base/api/v1/public/infrastructure/vulnerabilities/?severity=critical&known_exploited=1&page=$Page&page_size=100"
$Data = Invoke-RestMethod -Uri $Uri -Headers $Headers -Method Get
foreach ($Row in $Data.vulnerabilities) {
"{0} {1} {2}" -f $Row.host.hostname, $Row.vulnerability.id, $Row.fixed_version
}
$Page++
} while (($Page - 1) * $Data.page_size -lt $Data.total)
Ruby:
require "json"
require "net/http"
require "uri"
base = ENV.fetch("WASVIKING_API_URL", "https://api.wasviking.com")
page = 1
loop do
uri = URI("#{base}/api/v1/public/infrastructure/vulnerabilities/")
uri.query = URI.encode_www_form(severity: "critical", known_exploited: 1, page: page, page_size: 100)
request = Net::HTTP::Get.new(uri)
request["Authorization"] = "ApiKey #{ENV.fetch('WASVIKING_API_KEY')}"
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(request) }
raise "HTTP #{response.code}" unless response.is_a?(Net::HTTPSuccess)
data = JSON.parse(response.body)
data["vulnerabilities"].each do |row|
puts "#{row['host']['hostname']} #{row['vulnerability']['id']} #{row['fixed_version']}"
end
break if page * data["page_size"] >= data["total"]
page += 1
end
JavaScript (Node.js 18 or later):
const base = process.env.WASVIKING_API_URL ?? "https://api.wasviking.com";
const headers = { Authorization: `ApiKey ${process.env.WASVIKING_API_KEY}` };
let page = 1;
while (true) {
const params = new URLSearchParams({ severity: "critical", known_exploited: "1", page: String(page), page_size: "100" });
const response = await fetch(`${base}/api/v1/public/infrastructure/vulnerabilities/?${params}`, { headers });
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const data = await response.json();
for (const row of data.vulnerabilities) {
console.log(row.host.hostname, row.vulnerability.id, row.fixed_version);
}
if (page * data.page_size >= data.total) break;
page += 1;
}
Java (11 or later):
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class ListVulnerabilities {
public static void main(String[] args) throws Exception {
String base = System.getenv().getOrDefault("WASVIKING_API_URL", "https://api.wasviking.com");
String key = System.getenv("WASVIKING_API_KEY");
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create(base + "/api/v1/public/infrastructure/vulnerabilities/"
+ "?severity=critical&known_exploited=1&page=1&page_size=100"))
.header("Authorization", "ApiKey " + key)
.GET()
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
if (response.statusCode() != 200) {
throw new IllegalStateException("HTTP " + response.statusCode());
}
// The body is JSON: parse it with the library your project already uses.
System.out.println(response.body());
}
}
