Get scan status
curl --request GET \
--url https://api.example.com/scans/{id}/statusimport requests
url = "https://api.example.com/scans/{id}/status"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/scans/{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.example.com/scans/{id}/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/scans/{id}/status"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/scans/{id}/status")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/scans/{id}/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyScans
Get scan status
Lightweight endpoint for polling a scan until it completes.
GET
/
scans
/
{id}
/
status
Get scan status
curl --request GET \
--url https://api.example.com/scans/{id}/statusimport requests
url = "https://api.example.com/scans/{id}/status"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/scans/{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.example.com/scans/{id}/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/scans/{id}/status"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/scans/{id}/status")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/scans/{id}/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyReturns a minimal payload with the scan’s current status. Use this for polling; the response omits the findings summary that
See List scans for the full list of status values.
GET /scans/{id} computes.
Scope required:
readRequest
curl "https://api.hacktron.ai/v1/scans/a1b2c3d4-e5f6-7890-abcd-ef1234567890/status" \
-H "X-Api-Key: $HACKTRON_API_KEY"
Path parameters
| Parameter | Type | Description |
|---|---|---|
id | UUID | Scan UUID. |
Response
200 OK
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"task_id": "web_scan_1712345678",
"status": "running",
"created_at": "2026-04-13T12:00:00.000Z",
"updated_at": "2026-04-13T12:18:04.000Z"
}
Recommended polling
A poll interval of 10–30 seconds is sufficient. Pentest scans complete on the order of minutes; tighter polling provides no additional signal and consumes the rate limit quota. Stop polling whenstatus reaches a terminal value: completed, failed, stopped, cancelled, or skipped.
Errors
404— scan not found or not visible to your organization.
⌘I