Get Run
curl --request GET \
--url https://api.example.com/nyx/runs/{run_id}import requests
url = "https://api.example.com/nyx/runs/{run_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/nyx/runs/{run_id}', 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/nyx/runs/{run_id}",
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/nyx/runs/{run_id}"
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/nyx/runs/{run_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/nyx/runs/{run_id}")
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{
"run_id": "<string>",
"config_name": "<string>",
"name": "<string>",
"status": {},
"result": {},
"budget_usd": 123,
"spent_usd": 123,
"attempts_completed": 123,
"findings_count": 123,
"created_at": {},
"updated_at": {},
"completed_at": {}
}Nyx Endpoints
Get Run
Poll the current status, spend, and findings of a Nyx run
GET
/
nyx
/
runs
/
{run_id}
Get Run
curl --request GET \
--url https://api.example.com/nyx/runs/{run_id}import requests
url = "https://api.example.com/nyx/runs/{run_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/nyx/runs/{run_id}', 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/nyx/runs/{run_id}",
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/nyx/runs/{run_id}"
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/nyx/runs/{run_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/nyx/runs/{run_id}")
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{
"run_id": "<string>",
"config_name": "<string>",
"name": "<string>",
"status": {},
"result": {},
"budget_usd": 123,
"spent_usd": 123,
"attempts_completed": 123,
"findings_count": 123,
"created_at": {},
"updated_at": {},
"completed_at": {}
}Overview
Returns the full state of a Nyx run. Poll this endpoint after submitting a run untilstatus reaches a terminal state (completed, failed, or cancelled). The example below polls every 5 seconds.
Path Parameters
Response
Terminal outcome.
null while running, otherwise:"success": vulnerability found"exhausted": budget exhausted, no finding"error": internal failure
Example
curl https://api.fabraix.com/v1/nyx/runs/r_01H2X3Y4Z5 \
-H "X-Verification-Token: $NYX_TOKEN"
async function pollUntilDone(runId) {
const terminal = ['completed', 'failed', 'cancelled'];
while (true) {
const res = await fetch(`https://api.fabraix.com/v1/nyx/runs/${runId}`, {
headers: { 'X-Verification-Token': process.env.NYX_TOKEN },
});
const run = await res.json();
console.log(`${run.status}: $${run.spent_usd}/$${run.budget_usd}`);
if (terminal.includes(run.status)) return run;
await new Promise(r => setTimeout(r, 5000));
}
}
Running
{
"run_id": "r_01H2X3Y4Z5",
"config_name": "playground",
"name": "Fabraix Playground: The Gatekeeper",
"status": "running",
"result": null,
"budget_usd": 5.00,
"spent_usd": 1.23,
"attempts_completed": 7,
"findings_count": 0,
"created_at": "2026-04-18T14:30:45.123Z",
"updated_at": "2026-04-18T14:35:12.456Z",
"completed_at": null
}
Completed: Vulnerability Found
{
"run_id": "r_01H2X3Y4Z5",
"config_name": "playground",
"name": "Fabraix Playground: The Gatekeeper",
"status": "completed",
"result": "success",
"budget_usd": 5.00,
"spent_usd": 2.87,
"attempts_completed": 14,
"findings_count": 1,
"created_at": "2026-04-18T14:30:45.123Z",
"updated_at": "2026-04-18T14:42:01.789Z",
"completed_at": "2026-04-18T14:42:01.789Z"
}
result is "success", fetch the report to see the finding details.
Related Endpoints
- POST /nyx/runs: submit a new run
- GET /nyx/runs//report: download the markdown report
Was this page helpful?