Skip to main content
GET
/
mcp-hub
/
scan
/
{job_id}
/
results
Get Complete Scan Results
curl --request GET \
  --url https://api.enkryptai.com/mcp-hub/scan/{job_id}/results \
  --header 'apikey: <api-key>'
import requests

url = "https://api.enkryptai.com/mcp-hub/scan/{job_id}/results"

headers = {"apikey": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {apikey: '<api-key>'}};

fetch('https://api.enkryptai.com/mcp-hub/scan/{job_id}/results', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.enkryptai.com/mcp-hub/scan/{job_id}/results",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"apikey: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.enkryptai.com/mcp-hub/scan/{job_id}/results"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("apikey", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.enkryptai.com/mcp-hub/scan/{job_id}/results")
.header("apikey", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.enkryptai.com/mcp-hub/scan/{job_id}/results")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["apikey"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "job_id": "123e4567-e89b-12d3-a456-426614174000",
  "job_status": "completed",
  "is_official": false,
  "is_private": false,
  "scan_type": "source",
  "repo_name": "user/mcp-server",
  "endpoint_url": null,
  "auth_type": null,
  "source_url": "https://github.com/user/mcp-server",
  "source_version": "v1.2.3",
  "scan_version": "1.0.0-20251006",
  "org_id": null,
  "user_id": null,
  "project_name": null,
  "registry_name": null,
  "complete_result": {
    "scan_metadata": {
      "overall_severity": "High",
      "total_vulnerabilities": 5
    },
    "tools_scanned": [],
    "vulnerabilities": []
  }
}
{
"detail": "<string>"
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}

Authorizations

apikey
string
header
required

Path Parameters

job_id
string<uuid>
required

Unique scan job UUID

Example:

"123e4567-e89b-12d3-a456-426614174000"

Response

Complete scan results retrieved

Complete results of a finished scan job. Ownership/registry fields (org_id, user_id, project_name, registry_name) are only populated for private jobs; for public jobs they are returned as null. These fields mirror the x-enkrypt-* response headers.

job_id
string
required
job_status
string
required
complete_result
object | null

Full scan output: vulnerabilities, tools scanned, and analysis metadata. Present once job_status is completed.

error_message
string | null
is_official
boolean | null

Whether the scanned server is an official registry entry. Mirrors x-enkrypt-is-official header.

is_private
boolean | null

Whether the scan is private (scoped to the calling account). Mirrors x-enkrypt-is-private header.

scan_type
enum<string> | null

Scan type. Mirrors x-enkrypt-scan-type header.

Available options:
source,
hosted,
null
repo_name
string | null

Repository / server identifier. Mirrors x-enkrypt-repo-name header.

endpoint_url
string | null

Hosted MCP server endpoint URL (hosted scans only). Mirrors x-enkrypt-endpoint-url header.

auth_type
string | null

Authentication type used for the hosted scan (hosted scans only). Mirrors x-enkrypt-auth-type header.

source_url
string | null

Source URL of the scanned package or repository (source scans only). Same value exposed by GET /mcp-hub/scan/{job_id}/status and GET /mcp-hub/scans.

source_version
string | null

Source version or git commit of the scanned source (source scans only).

scan_version
string | null

Scanner version that produced this result. Disambiguates multiple scans of the same (source_url, source_version).

org_id
string<uuid> | null

Organization ID. Only populated when the job is private.

user_id
string<uuid> | null

User ID. Only populated when the job is private.

project_name
string | null

Project name. Only populated when the job is private.

registry_name
string | null

Registry name. Only populated when the job is private.