curl --request GET \
--url https://api-eu.cybedefend.com/project/{projectId}/results/sca/autofix/{jobId}/statusimport requests
url = "https://api-eu.cybedefend.com/project/{projectId}/results/sca/autofix/{jobId}/status"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api-eu.cybedefend.com/project/{projectId}/results/sca/autofix/{jobId}/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-eu.cybedefend.com/project/{projectId}/results/sca/autofix/{jobId}/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-eu.cybedefend.com/project/{projectId}/results/sca/autofix/{jobId}/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-eu.cybedefend.com/project/{projectId}/results/sca/autofix/{jobId}/status")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-eu.cybedefend.com/project/{projectId}/results/sca/autofix/{jobId}/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_body{
"jobId": "sca-autofix-550e8400-e29b-41d4-a716-446655440000-0",
"projectId": "550e8400-e29b-41d4-a716-446655440000",
"status": "processing",
"message": "Processing... 3 vulnerabilities analyzed.",
"totalVulnerabilities": 5,
"processedVulnerabilities": 3,
"fixableCount": 2,
"unfixableCount": 1,
"errorCount": 0,
"progressPercent": 60,
"createdAt": "2024-01-15T10:30:00.000Z",
"errorMessage": "Repository not found",
"startedAt": "2024-01-15T10:30:05.000Z",
"completedAt": "2024-01-15T10:31:30.000Z"
}{
"timestamp": "2025-02-18T12:31:18.491Z",
"service": "AiService",
"method": "startConversation",
"message": "Invalid parameters provided",
"code": 400
}Get SCA AutoFix job status
Poll this endpoint to check the status of an SCA AutoFix job. Returns progress information and status (queued, processing, completed, failed).
curl --request GET \
--url https://api-eu.cybedefend.com/project/{projectId}/results/sca/autofix/{jobId}/statusimport requests
url = "https://api-eu.cybedefend.com/project/{projectId}/results/sca/autofix/{jobId}/status"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api-eu.cybedefend.com/project/{projectId}/results/sca/autofix/{jobId}/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-eu.cybedefend.com/project/{projectId}/results/sca/autofix/{jobId}/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-eu.cybedefend.com/project/{projectId}/results/sca/autofix/{jobId}/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-eu.cybedefend.com/project/{projectId}/results/sca/autofix/{jobId}/status")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-eu.cybedefend.com/project/{projectId}/results/sca/autofix/{jobId}/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_body{
"jobId": "sca-autofix-550e8400-e29b-41d4-a716-446655440000-0",
"projectId": "550e8400-e29b-41d4-a716-446655440000",
"status": "processing",
"message": "Processing... 3 vulnerabilities analyzed.",
"totalVulnerabilities": 5,
"processedVulnerabilities": 3,
"fixableCount": 2,
"unfixableCount": 1,
"errorCount": 0,
"progressPercent": 60,
"createdAt": "2024-01-15T10:30:00.000Z",
"errorMessage": "Repository not found",
"startedAt": "2024-01-15T10:30:05.000Z",
"completedAt": "2024-01-15T10:31:30.000Z"
}{
"timestamp": "2025-02-18T12:31:18.491Z",
"service": "AiService",
"method": "startConversation",
"message": "Invalid parameters provided",
"code": 400
}Path Parameters
Project identifier
Job ID returned from the startScaAutoFix endpoint
Response
Job status retrieved successfully
Job ID
"sca-autofix-550e8400-e29b-41d4-a716-446655440000-0"
Project ID
"550e8400-e29b-41d4-a716-446655440000"
Job status
queued, processing, completed, failed "processing"
Human-friendly status message
"Processing... 3 vulnerabilities analyzed."
Total number of vulnerabilities to analyze
5
Number of vulnerabilities processed so far
3
Number of vulnerabilities with fixes found
2
Number of vulnerabilities without fixes
1
Number of vulnerabilities that failed analysis
0
Progress percentage (0-100)
60
Job creation timestamp
"2024-01-15T10:30:00.000Z"
Error message if job failed
"Repository not found"
Processing start timestamp
"2024-01-15T10:30:05.000Z"
Job completion timestamp
"2024-01-15T10:31:30.000Z"