Skip to main content

Public APIs - Device CVE Report

Read Vulnerability Detection findings with the vulnerabilities list, summary, and detail APIs.

Use Swif's public APIs to read the vulnerabilities (CVEs) Swif's Vulnerability Detection finds on your devices. For example, pull open vulnerabilities into a security dashboard or ticketing system, list the vulnerabilities on one person's devices, or find every device affected by a CVE.

These are the same findings as Security > Vulnerability Detection in Swif, including who each device is assigned to.

What you need

Endpoint

Vulnerabilities on your devices, one per row, with filters

POST /restful/organization/api/v1/vulnerabilities/list

Totals by severity, the most common CVEs and packages, and how many devices were scanned

POST /restful/organization/api/v1/vulnerabilities/summary

One CVE's details, and every device it affects

POST /restful/organization/api/v1/vulnerabilities/detail

All three are read-only, and use POST, with the filters in a JSON body.


Requirements

Requirement

Details

API key

Your organization API key, or a read-only API key. See Public APIs - Your API Key Token for Swif.ai.

Header

Authorization: Bearer <API_KEY>

Vulnerability Detection

Your devices need the Device CVE Report Policy, and to have reported. See Vulnerability Detection (Device CVE Report).

Choose a team

The APIs read one team at a time: your organization's default team. To read another team, add its ID in a team-id header:

team-id: <TEAM_ID>

The team must belong to your organization. A team ID in the wrong format returns 400. Another organization's team returns 403.


Limits

Limit

Details

Rate limit

60 requests a minute for your organization, across the three endpoints. More returns 429. Wait, then try again.

Freshness

Results can be up to an hour old. Swif caches them, and ignores Cache-Control headers.

Open vulnerabilities only

Swif removes a vulnerability once it's fixed, so all results are open. There's no status filter.


List vulnerabilities

POST /restful/organization/api/v1/vulnerabilities/list

Returns vulnerabilities, one row per vulnerability on a device, and total. Each row includes the device's deviceId, and owners, the people the device is assigned to, each with id, name, and email. A device with no one assigned has an empty owners list.

Field

What it does

deviceIds

Only these devices. Up to 500 IDs.

ownerIds

Only devices assigned to these people. Up to 500 IDs.

unassigned

true: include devices with no one assigned

severity

Critical, High, Medium, or Low

cveId

One CVE, such as CVE-2026-1234

package

One package, such as Chrome

osType

One operating system

search

Searches the vulnerabilities, including the assigned person's name and email

timeStart, timeEnd

A time range

page, pageSize

Pages. page starts at 1. pageSize is 50 by default, up to 500.

How filters combine:

  • Several people (ownerIds): devices assigned to any of them.

  • People and unassigned (ownerIds and unassigned: true): devices assigned to those people, or to no one.

  • Devices and people (deviceIds and ownerIds): only devices in both lists.

  • No match, for example an unknown person: an empty list. Swif never falls back to all devices.

Paging stops at 10,000 rows. total counts up to 10,000, and pages past the 10,000th row are rejected. For full totals, use Get a summary.


Get a summary

POST /restful/organization/api/v1/vulnerabilities/summary

Returns the vulnerabilities by severity, the trend, the most common CVEs and packages, and device coverage: totalDevices, scannedDevices, and osCoverage.

It takes the same deviceIds, ownerIds, unassigned, timeStart, and timeEnd filters as List vulnerabilities, so its totals match the list.

Not scanned isn't the same as clean. For one device, scannedDevices: 0 means it hasn't been scanned yet. A clean device has scannedDevices: 1, and no vulnerabilities.


Get one CVE

POST /restful/organization/api/v1/vulnerabilities/detail

Send the CVE in cveId. It's required.

Returns the CVE's description, its CVSS scores, affectedDevices, each with its deviceId and owners, and totalAffectedDevices.

If no device in the team has the CVE, it returns 404.


Examples

Critical vulnerabilities on two people's devices:

POST /restful/organization/api/v1/vulnerabilities/list
Authorization: Bearer <API_KEY>
Content-Type: application/json

{"ownerIds": ["<EMPLOYEE_ID_1>", "<EMPLOYEE_ID_2>"], "severity": "Critical"}

Vulnerabilities on devices with no one assigned:

POST /restful/organization/api/v1/vulnerabilities/list
Authorization: Bearer <API_KEY>
Content-Type: application/json

{"unassigned": true, "page": 1, "pageSize": 100}

Every device affected by one CVE, in another team:

POST /restful/organization/api/v1/vulnerabilities/detail
Authorization: Bearer <API_KEY>
team-id: <TEAM_ID>
Content-Type: application/json

{"cveId": "CVE-2026-1234"}


Errors

Response

Why

400

A field isn't valid, such as a status filter, or a team-id in the wrong format

403

The team-id belongs to another organization

404

No device in the team has that CVE

429

Over 60 requests in a minute


Related resources

Did this answer your question?