Documentation

The agent and CI jobs upload to two endpoints. Both take JSON, plain or gzip-compressed, with an API key in the Authorization header.

API keys

Create keys on the dashboard. A key starts with vp_ and has one of two scopes. A key of scope agent sends reports and SBOMs; it does not give read access to your findings, so a key that leaks from a server or a CI job does not expose them. A key of scope api reads servers, findings and check results through the read API (Team and Business plans); it cannot send reports.

Send the key as Authorization: Bearer vp_…. We store a hash of the key; a revoked key stops working at once.

Upload a report

POST https://vulnpocalypse.ch/api/v1/reports
Authorization: Bearer vp_…
Content-Type: application/json
Content-Encoding: gzip

The body is a report in the format of version 1. The agent calls this endpoint; you need it only for a client of your own. server.id, a UUID, identifies the server. A new ID adds a server to the account, up to the limit of the plan.

Upload an SBOM from CI

A build job can send the CycloneDX SBOM of an application or an image, for example one made with Trivy. The SBOM counts as a server of its own, named by the header X-Server-Name; an upload under the same name replaces the package list of that server. Of each component we store what matching needs (type, name, version, package URL, the Trivy properties and the dependency graph) and drop file paths, hashes and licences.

# make the SBOM of the checkout (or: trivy image --format cyclonedx app:latest)
trivy fs --format cyclonedx --output sbom.json .
# send it
gzip -c sbom.json | curl -fsS -X POST https://vulnpocalypse.ch/api/v1/sbom \
  -H "Authorization: Bearer $AGENT_KEY" \
  -H "Content-Type: application/json" \
  -H "Content-Encoding: gzip" \
  -H "X-Server-Name: shop-backend" \
  --data-binary @-

Keep the key in a secret variable of the CI system (AGENT_KEY above). X-Server-Id (a UUID) is optional; without it, the ID is derived from the name.

Answer

HTTP 200 with the ID of the stored report, the server and its page on the dashboard:

{
  "id": 1234,
  "server": {"id": 56, "uuid": "6f1d2c3a-8b7e-4f50-9a21-0c4d5e6f7a8b", "name": "web-1"},
  "dashboard_url": "https://vulnpocalypse.ch/dashboard/servers/56",
  "warnings": ["unknown check id custom.thing (kept, shown without a catalog entry)"]
}

warnings is left out when it is empty. The package lists are matched in the background, and the findings show on the dashboard within a minute.

Errors

An error is a JSON object with a code, a message for people and sometimes a link. A report that does not match the schema also gets the list of problems, each starting with a JSON pointer:

{
  "error": "invalid_report",
  "message": "The report does not match the schema (report-v1).",
  "url": "https://vulnpocalypse.ch/docs/payload",
  "problems": ["/server/name: longer than 100 characters"]
}
StatusCodeMeaning
400bad_gzip, bad_body, emptyThe body is not gzip although the header says so, could not be read, or is empty.
400invalid_report, invalid_sbomThe JSON does not match the report format or is not a CycloneDX SBOM; problems names each field (at most 20).
400missing_server_nameAn SBOM upload without X-Server-Name.
401unauthorizedThe key is missing, wrong or revoked.
403wrong_scopeThe key is not of scope agent.
403server_limitA new server would exceed the plan. The message names the limit; url leads to the plans.
413too_largeMore than 20 MB as sent, or more than 50 MB after decompression.
415unsupported_encodingA Content-Encoding other than gzip.
429rate_limitedMore than 120 uploads in an hour with one key.
503busyTry again after the seconds of the Retry-After header.

The agent retries after a network error and after the answers 408, 429 and 5xx, up to three times: first after 5 seconds, then after twice the wait each time, or after the seconds of Retry-After (at most 5 minutes). Other 4xx answers need a change on your side.

Limits

  • 20 MB per request as sent (use gzip), 50 MB of JSON after decompression.
  • 100 SBOMs and 2,000 check results per report.
  • 120 uploads per key and hour.

Read API

The servers, findings and checks of the account as JSON. It needs a key of scope api (create one on the keys page) and the Team or Business plan. A server of another account answers 404, the same as a server that does not exist. Each key can make 3,600 requests an hour.

RequestAnswer
GET /api/v1/serversThe servers, worst first, with counts per severity, known exploited, fixable, failing checks, OS and last report; totals for the account.
GET /api/v1/servers/{id}One server and its places (host, images, app directories) with their counts.
GET /api/v1/servers/{id}/findingsThe findings, most urgent first, each with its fix. Filters: severity (critical, high, medium, low, unknown), kev=true, fixable=true, place, accepted=true (the accepted findings in place of the open ones; the findings of an ignored place only with place); pages with limit (1 to 500, default 100) and offset. total counts all that match.
GET /api/v1/servers/{id}/checksThe check results, failing first, with the evidence and the link to the explanation.
# all servers
curl -fsS -H "Authorization: Bearer $API_KEY" https://vulnpocalypse.ch/api/v1/servers
# the known exploited findings of server 56
curl -fsS -H "Authorization: Bearer $API_KEY" "https://vulnpocalypse.ch/api/v1/servers/56/findings?kev=true"
# critical findings, 50 at a time
curl -fsS -H "Authorization: Bearer $API_KEY" "https://vulnpocalypse.ch/api/v1/servers/56/findings?severity=critical&limit=50&offset=50"

A finding in the answer:

{
  "id": 9812, "server_id": 56, "server": "web-1",
  "place": "host", "place_kind": "host", "part": "os",
  "pkg_type": "debian", "pkg": "openssh-server",
  "installed": "1:9.2p1-2+deb12u2", "fixed": "1:9.2p1-2+deb12u3",
  "vuln_id": "CVE-2024-6387", "cve_id": "CVE-2024-6387",
  "severity": "high", "kev": false, "epss": 0.2, "epss_percentile": 0.98, "rank": 2,
  "first_seen": "2026-11-20T04:10:00Z", "last_seen": "2026-11-26T04:10:00Z",
  "fix": {"command": "sudo apt-get install --only-upgrade openssh-server"}
}

Errors use the format above: 401 unauthorized, 403 wrong_scope (a key of scope agent) or plan, 400 bad_parameter, 404 not_found, 429 rate_limited.

Webhooks

A webhook channel (alert settings) gets each alert, the digest and test messages as a JSON POST to your https address, with these headers:

  • X-Vulnpocalypse-Event: alert, digest or test
  • X-Vulnpocalypse-Timestamp: seconds since 1970
  • X-Vulnpocalypse-Signature: sha256= and the hex HMAC-SHA256 of timestamp + "." + body with the signing secret of the channel

Check the signature and refuse timestamps older than five minutes. The body holds event, site, sent_at, subject, text, link and, for alerts, data with the details. The address must be https on a public IP address. We do not follow redirects and wait at most 10 seconds for the answer.