Benchmark Logs & Status
curl --request GET \
--url https://agent.blackbox.ai/api/v1/benchmarks/runs/{benchmarkRunId}/logsimport requests
url = "https://agent.blackbox.ai/api/v1/benchmarks/runs/{benchmarkRunId}/logs"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://agent.blackbox.ai/api/v1/benchmarks/runs/{benchmarkRunId}/logs', 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://agent.blackbox.ai/api/v1/benchmarks/runs/{benchmarkRunId}/logs",
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://agent.blackbox.ai/api/v1/benchmarks/runs/{benchmarkRunId}/logs"
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://agent.blackbox.ai/api/v1/benchmarks/runs/{benchmarkRunId}/logs")
.asString();require 'uri'
require 'net/http'
url = URI("https://agent.blackbox.ai/api/v1/benchmarks/runs/{benchmarkRunId}/logs")
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{
"status": "<string>",
"progress": 123,
"completedTasks": 123,
"totalTasks": 123,
"resolvedTasks": 123,
"resolvedRate": {},
"source": "<string>",
"lineCount": 123,
"logs": [
{}
]
}Benchmarks
Benchmark Logs & Status
Poll a benchmark run’s progress, read its orchestrator logs, or stream them live over SSE. Logs come from memory while the run is alive and from durable storage after it ends.
GET
/
api
/
v1
/
benchmarks
/
runs
/
{benchmarkRunId}
/
logs
Benchmark Logs & Status
curl --request GET \
--url https://agent.blackbox.ai/api/v1/benchmarks/runs/{benchmarkRunId}/logsimport requests
url = "https://agent.blackbox.ai/api/v1/benchmarks/runs/{benchmarkRunId}/logs"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://agent.blackbox.ai/api/v1/benchmarks/runs/{benchmarkRunId}/logs', 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://agent.blackbox.ai/api/v1/benchmarks/runs/{benchmarkRunId}/logs",
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://agent.blackbox.ai/api/v1/benchmarks/runs/{benchmarkRunId}/logs"
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://agent.blackbox.ai/api/v1/benchmarks/runs/{benchmarkRunId}/logs")
.asString();require 'uri'
require 'net/http'
url = URI("https://agent.blackbox.ai/api/v1/benchmarks/runs/{benchmarkRunId}/logs")
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{
"status": "<string>",
"progress": 123,
"completedTasks": 123,
"totalTasks": 123,
"resolvedTasks": 123,
"resolvedRate": {},
"source": "<string>",
"lineCount": 123,
"logs": [
{}
]
}Track a benchmark run end-to-end: a lightweight status poll, a buffered logs snapshot, and a live SSE stream. Logs are served live from memory while the run is alive, and from the database after it ends (or after an unexpected sandbox/process death), so they remain available post-completion.
Status —
A cheap progress poll.
Logs snapshot —
Returns the current orchestrator log lines.
Stream —
A
Cancel —
Cancels an in-flight run; returns the new Tasks —
Per-instance results (
Authentication
All endpoints require a BLACKBOX API key as a Bearer token and are owner-scoped. See Authentication.Status — GET …/runs/{id}/status
A cheap progress poll.
string
queued | preparing | running | completed | failed | cancelled.number
0–100.
number
Tasks finished so far.
number
Tasks in the run.
number
Tasks that passed.
number | null
Fraction
0..1, set on completion.status
{
"benchmarkRunId": "b41ab8b2-…",
"status": "running", "progress": 80,
"completedTasks": 8, "totalTasks": 10, "resolvedTasks": 8,
"resolvedRate": null, "error": null,
"startedAt": "2026-06-13T22:47:00.782Z", "completedAt": null
}
Logs snapshot — GET …/runs/{id}/logs
Returns the current orchestrator log lines.
string
live — served from the in-memory buffer (run still active). persisted — served from the durable DB snapshot (run ended and the buffer was cleared).number
Number of lines returned.
array
The log lines (each timestamped).
logs
{
"benchmarkRunId": "b41ab8b2-…",
"status": "completed",
"source": "persisted",
"lineCount": 92,
"logs": [
"[2026-06-13T22:47:01Z] [prepare] creating builder sandbox...",
"[2026-06-13T22:54:42Z] [task aime__65] graded numeric_match: answer=\"104\" gold=\"104\" → PASS",
"[2026-06-13T22:54:46Z] [done] resolved 9/10 (resolved_rate=0.9000)"
]
}
Stream — GET …/runs/{id}/logs/stream
A text/event-stream (SSE) of the logs.
- While the run is alive: replays the buffered lines, then pushes new lines as they arrive; closes with
event: endwhen the run reaches a terminal state. - After the run ends: replays the durable DB snapshot one-shot, then
event: end. (This is why a completed run’s stream is never empty.)
data: <log line>\n\n.
stream
curl -N 'https://agent.blackbox.ai/api/v1/benchmarks/runs/RUN_ID/logs/stream' \
-H 'Authorization: Bearer YOUR_API_KEY'
SSE
data: [2026-06-13T22:47:01Z] [prepare] creating builder sandbox...
data: [2026-06-13T22:54:46Z] [done] resolved 9/10 (resolved_rate=0.9000)
event: end
data: {}
Persistence is incremental — logs are mirrored to the database on a short throttle (plus a final flush when the run ends), so even if the sandbox or process dies mid-run, the DB holds a current snapshot. “Live from memory, dead from DB.”
Cancel — POST …/runs/{id}/cancel
Cancels an in-flight run; returns the new status (cancelled). Completed/failed runs are not affected.
Tasks — GET …/runs/{id}/tasks
Per-instance results (instanceId, status, reward, durationMs, error, timestamps). For the aggregated score + traces in one call, prefer Benchmark Results.
Where logs live
Benchmark runs, task results, and logs are stored in a dedicated benchmark database (configured separately from the main app database). This keeps high-volume evaluation data isolated; runs and logs remain queryable by id after completion.Benchmark Results
Score, percentage, per-task traces, tracking log.
Run Benchmarks
Launch a run (Claude / Codex / Grok, or your own router).