---
title: "GET /vlai/related/{vulnerability_id}"
method: GET
path: "/vlai/related/{vulnerability_id}"
tags: ["vlai"]
---

# GET /vlai/related/{vulnerability_id}

`GET /vlai/related/{vulnerability_id}`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/vlai/related/{vulnerability_id}`
- Auth: API key in header `X-API-KEY`

Vulnerabilities whose description is nearest to this one in the CIRCL ATT&CK bi-encoder space, by plain cosine, best first. A similarity search with no measured accuracy, not a classification. The search runs on the vulnerability's stored vector when it is indexed (`query.by` is `id`); otherwise its description is embedded on the fly (`query.by` is `text`, `query.indexed` is false). `query.id` is the identifier the record is indexed under.

## Query parameters

- `top_k` integer

## Response `200`

Success.

## Other responses

- `400`: Invalid top_k.
- `404`: Unknown vulnerability.
- `422`: The record has no description to search with.
- `500`: Unexpected error.
- `502`: Bad content: Invalid response from ML-Gateway.
- `503`: Connection Error: Unable to reach ML-Gateway.

## Changes

- **2026-09-16** `659b36930291`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/vulnerability-lookup/apis/vulnerability-lookup-api/changes/vlai/related/:vulnerability_id/get.md)

---

[API](https://skmtc.dev/vulnerability-lookup/apis/vulnerability-lookup-api.md) - [All operations](https://skmtc.dev/vulnerability-lookup/apis/vulnerability-lookup-api/llms.txt) - [OpenAPI document](https://skmtc.dev/vulnerability-lookup/apis/vulnerability-lookup-api/revisions/b4dedf027493?raw)
