Get Scan Job Status
curl --request GET \
--url https://api.enkryptai.com/mcp-hub/scan/{job_id}/status \
--header 'apikey: <api-key>'import requests
url = "https://api.enkryptai.com/mcp-hub/scan/{job_id}/status"
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}/status', 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}/status",
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}/status"
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}/status")
.header("apikey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enkryptai.com/mcp-hub/scan/{job_id}/status")
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",
"source_url": "https://github.com/user/mcp-server",
"user_email": "user@example.com",
"version_or_commit": "main",
"scan_version": "1.0.0-20251006",
"job_status": "scanning_tools",
"created_at": "2025-10-06T10:00:00",
"started_at": "2025-10-06T10:00:05",
"completed_at": null,
"error_message": null,
"is_official": false,
"is_private": false,
"scan_type": "source",
"repo_name": "user/mcp-server",
"endpoint_url": null,
"auth_type": null,
"org_id": null,
"user_id": null,
"project_name": null,
"registry_name": null,
"total_tools_scanned": 5,
"tools_scanned_successfully": 3,
"scanned_tools": [
{
"tool_name": "tool1",
"scan_status": "success"
},
{
"tool_name": "tool2",
"scan_status": "success"
}
]
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}๐ MCP Hub API
Get Scan Job Status
Get the status of a scan job including progress information and per-tool scan results. Works for both source and hosted scans.
Enterprise data-license feature: requires MCP Hub API access enabled for your organization, otherwise returns 403. Contact support@enkryptai.com.
GET
/
mcp-hub
/
scan
/
{job_id}
/
status
Get Scan Job Status
curl --request GET \
--url https://api.enkryptai.com/mcp-hub/scan/{job_id}/status \
--header 'apikey: <api-key>'import requests
url = "https://api.enkryptai.com/mcp-hub/scan/{job_id}/status"
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}/status', 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}/status",
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}/status"
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}/status")
.header("apikey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enkryptai.com/mcp-hub/scan/{job_id}/status")
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",
"source_url": "https://github.com/user/mcp-server",
"user_email": "user@example.com",
"version_or_commit": "main",
"scan_version": "1.0.0-20251006",
"job_status": "scanning_tools",
"created_at": "2025-10-06T10:00:00",
"started_at": "2025-10-06T10:00:05",
"completed_at": null,
"error_message": null,
"is_official": false,
"is_private": false,
"scan_type": "source",
"repo_name": "user/mcp-server",
"endpoint_url": null,
"auth_type": null,
"org_id": null,
"user_id": null,
"project_name": null,
"registry_name": null,
"total_tools_scanned": 5,
"tools_scanned_successfully": 3,
"scanned_tools": [
{
"tool_name": "tool1",
"scan_status": "success"
},
{
"tool_name": "tool2",
"scan_status": "success"
}
]
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Path Parameters
Response
Job status retrieved
Status of a scan job with progress information. 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.

