Read a simulation batch
curl --request GET \
--url https://api.firedrill.run/v1/batches/{batchId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.firedrill.run/v1/batches/{batchId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.firedrill.run/v1/batches/{batchId}', 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.firedrill.run/v1/batches/{batchId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.firedrill.run/v1/batches/{batchId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.firedrill.run/v1/batches/{batchId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.firedrill.run/v1/batches/{batchId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"projectId": "<string>",
"environmentId": "<string>",
"name": "<string>",
"recipe": {
"schemaVersion": "2026-10-14",
"name": "<string>",
"scenarios": [
{
"id": "<string>",
"name": "<string>",
"input": "<unknown>",
"checks": [
{
"id": "<string>",
"description": "<string>",
"path": "<string>",
"comparator": "equals",
"required": true,
"expected": "<string>",
"source": {
"kind": "service_state",
"namespace": "<string>",
"rowId": "<string>",
"schemaVersion": "2026-10-15-effect-check.1",
"service": "<string>"
},
"numeric": {
"schemaVersion": "2026-10-16-numeric-check.1",
"unit": "<string>",
"absoluteTolerance": 123
}
}
],
"description": "<string>",
"rubric": {
"id": "<string>",
"version": "<string>",
"dimensions": [
{
"id": "<string>",
"description": "<string>",
"anchors": [
"<string>",
"<string>",
"<string>",
"<string>",
"<string>"
],
"evidenceKinds": [
"image"
],
"applicability": {
"state": "applicable"
},
"missingEvidence": "not_assessable"
}
],
"composite": {
"schemaVersion": "2026-10-16-composite.1",
"method": "weighted_mean_ordinal",
"weights": [
{
"dimensionId": "<string>",
"weight": 123
}
]
},
"policyVersion": "2026-10-15-assessment.1"
},
"metrics": [
{
"schemaVersion": "2026-10-16-task-metric.1",
"id": "<string>",
"label": "<string>",
"path": "<string>",
"unit": "<string>",
"direction": "higher_is_better",
"source": {
"kind": "service_state",
"namespace": "<string>",
"rowId": "<string>",
"schemaVersion": "2026-10-15-effect-check.1",
"service": "<string>"
}
}
],
"serviceDatasets": {},
"sequence": {
"schemaVersion": "2026-10-14-sequence.1",
"steps": [
{
"kind": "target",
"id": "<string>",
"input": "<string>",
"when": {
"path": "<string>",
"comparator": "equals",
"step": "<string>",
"expected": "<string>"
}
}
]
}
}
],
"target": {
"kind": "command",
"argv": [
"<string>"
],
"cwd": "<string>",
"metadata": {
"schemaVersion": "2026-10-15-target-metadata.1",
"source": {
"revision": "<string>",
"dirty": "clean",
"contentDigest": "<string>"
},
"resetCoverage": {
"applicationDatabase": "unknown",
"cache": "unknown",
"filesystem": "unknown",
"conversationMemory": "unknown",
"outstandingJobs": "unknown",
"browserProfile": "unknown",
"externalState": "unknown"
}
}
},
"services": [
{
"alias": "<string>",
"buildId": "<string>",
"seed": "<string>",
"operations": [
"<string>"
],
"datasetId": "<string>",
"control": {
"schemaVersion": "2026-10-15-service-control.1",
"operations": [
"<string>"
]
}
}
],
"configurations": [
{
"id": "<string>",
"parameters": {}
}
],
"repetitions": 123,
"concurrency": 123,
"limits": {
"timeoutMs": 123,
"maxRuns": 123,
"maxOutputBytes": 123
},
"targetExecution": {
"schemaVersion": "2026-10-16-target-execution.1",
"nonHermeticParallel": "acknowledged"
},
"population": {
"schemaVersion": "2026-10-15-population.1",
"method": "matrix",
"seed": "<string>",
"candidateCount": 123,
"selectedIndices": [
123
],
"sourceRecipeDigest": "<string>",
"axesDigest": "<string>"
},
"populationPurpose": {
"schemaVersion": "2026-10-16-population-purpose.1",
"kind": "exploration",
"rationale": "<string>"
},
"gate": {
"requireCompleted": true,
"requireExactChecks": true,
"minimumLevels": {}
}
},
"createdAt": "<string>",
"cancellationRequested": true,
"total": 123,
"counts": {
"error": 123,
"queued": 123,
"running": 123,
"completed": 123,
"interrupted": 123,
"cancelled": 123
},
"charge": {
"amount": 0,
"policy": "free_early_access"
},
"targetExecution": {
"schemaVersion": "2026-10-16-target-execution.1",
"requestedConcurrency": 123,
"acknowledgement": "not_recorded",
"mode": "isolated_runner_contract",
"automaticTargetReset": false,
"isolationAttestation": "not_provided"
},
"operations": {
"schemaVersion": "2026-10-15-batch-operations.1",
"observedAt": "<string>",
"runner": {
"state": "live_lease_observed",
"liveLeases": 123,
"expiredUnreconciled": 123,
"finishedAttempts": 123,
"lastClaimedAt": "<string>",
"latestLeaseExpiresAt": "<string>"
},
"resources": {
"queuedRuns": 123,
"claimedRunSlots": 123,
"runSlotLimit": 123,
"toolInstances": {
"creating": 123,
"active": 123,
"paused": 123,
"expired": 123,
"destroyed": 123,
"recoveryRequired": 123
},
"toolSessions": {
"preparing": 123,
"ready": 123,
"closing": 123,
"closed": 123
},
"pendingBindings": 123,
"retainedBindings": 123,
"cleanupPending": 123
},
"notes": [
"<string>"
]
},
"submission": {
"schemaVersion": "2026-10-15-inspection.1",
"origin": "cli",
"ci": {
"schemaVersion": "2026-10-16-ci-context.1",
"provider": "github",
"serverUrl": "<string>",
"repository": "<string>",
"runId": "<string>",
"runAttempt": 123,
"commit": "<string>",
"ref": "<string>",
"workflow": "<string>",
"job": "<string>",
"event": "<string>",
"pullRequest": 123
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"repair": "<string>",
"requestId": "<string>",
"details": "<string>",
"validation": {
"issues": [
{
"path": [
"<string>"
],
"code": "<string>",
"message": "<string>",
"pathTruncated": true
}
],
"totalIssues": 123,
"omittedIssues": 123
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"repair": "<string>",
"requestId": "<string>",
"details": "<string>",
"validation": {
"issues": [
{
"path": [
"<string>"
],
"code": "<string>",
"message": "<string>",
"pathTruncated": true
}
],
"totalIssues": 123,
"omittedIssues": 123
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"repair": "<string>",
"requestId": "<string>",
"details": "<string>",
"validation": {
"issues": [
{
"path": [
"<string>"
],
"code": "<string>",
"message": "<string>",
"pathTruncated": true
}
],
"totalIssues": 123,
"omittedIssues": 123
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"repair": "<string>",
"requestId": "<string>",
"details": "<string>",
"validation": {
"issues": [
{
"path": [
"<string>"
],
"code": "<string>",
"message": "<string>",
"pathTruncated": true
}
],
"totalIssues": 123,
"omittedIssues": 123
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"repair": "<string>",
"requestId": "<string>",
"details": "<string>",
"validation": {
"issues": [
{
"path": [
"<string>"
],
"code": "<string>",
"message": "<string>",
"pathTruncated": true
}
],
"totalIssues": 123,
"omittedIssues": 123
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"repair": "<string>",
"requestId": "<string>",
"details": "<string>",
"validation": {
"issues": [
{
"path": [
"<string>"
],
"code": "<string>",
"message": "<string>",
"pathTruncated": true
}
],
"totalIssues": 123,
"omittedIssues": 123
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"repair": "<string>",
"requestId": "<string>",
"details": "<string>",
"validation": {
"issues": [
{
"path": [
"<string>"
],
"code": "<string>",
"message": "<string>",
"pathTruncated": true
}
],
"totalIssues": 123,
"omittedIssues": 123
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"repair": "<string>",
"requestId": "<string>",
"details": "<string>",
"validation": {
"issues": [
{
"path": [
"<string>"
],
"code": "<string>",
"message": "<string>",
"pathTruncated": true
}
],
"totalIssues": 123,
"omittedIssues": 123
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"repair": "<string>",
"requestId": "<string>",
"details": "<string>",
"validation": {
"issues": [
{
"path": [
"<string>"
],
"code": "<string>",
"message": "<string>",
"pathTruncated": true
}
],
"totalIssues": 123,
"omittedIssues": 123
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"repair": "<string>",
"requestId": "<string>",
"details": "<string>",
"validation": {
"issues": [
{
"path": [
"<string>"
],
"code": "<string>",
"message": "<string>",
"pathTruncated": true
}
],
"totalIssues": 123,
"omittedIssues": 123
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"repair": "<string>",
"requestId": "<string>",
"details": "<string>",
"validation": {
"issues": [
{
"path": [
"<string>"
],
"code": "<string>",
"message": "<string>",
"pathTruncated": true
}
],
"totalIssues": 123,
"omittedIssues": 123
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"repair": "<string>",
"requestId": "<string>",
"details": "<string>",
"validation": {
"issues": [
{
"path": [
"<string>"
],
"code": "<string>",
"message": "<string>",
"pathTruncated": true
}
],
"totalIssues": 123,
"omittedIssues": 123
}
}
}Read a simulation batch
Requires read capability and current authority for the selected resource.
Read a simulation batch
curl --request GET \
--url https://api.firedrill.run/v1/batches/{batchId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.firedrill.run/v1/batches/{batchId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.firedrill.run/v1/batches/{batchId}', 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.firedrill.run/v1/batches/{batchId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.firedrill.run/v1/batches/{batchId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.firedrill.run/v1/batches/{batchId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.firedrill.run/v1/batches/{batchId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"projectId": "<string>",
"environmentId": "<string>",
"name": "<string>",
"recipe": {
"schemaVersion": "2026-10-14",
"name": "<string>",
"scenarios": [
{
"id": "<string>",
"name": "<string>",
"input": "<unknown>",
"checks": [
{
"id": "<string>",
"description": "<string>",
"path": "<string>",
"comparator": "equals",
"required": true,
"expected": "<string>",
"source": {
"kind": "service_state",
"namespace": "<string>",
"rowId": "<string>",
"schemaVersion": "2026-10-15-effect-check.1",
"service": "<string>"
},
"numeric": {
"schemaVersion": "2026-10-16-numeric-check.1",
"unit": "<string>",
"absoluteTolerance": 123
}
}
],
"description": "<string>",
"rubric": {
"id": "<string>",
"version": "<string>",
"dimensions": [
{
"id": "<string>",
"description": "<string>",
"anchors": [
"<string>",
"<string>",
"<string>",
"<string>",
"<string>"
],
"evidenceKinds": [
"image"
],
"applicability": {
"state": "applicable"
},
"missingEvidence": "not_assessable"
}
],
"composite": {
"schemaVersion": "2026-10-16-composite.1",
"method": "weighted_mean_ordinal",
"weights": [
{
"dimensionId": "<string>",
"weight": 123
}
]
},
"policyVersion": "2026-10-15-assessment.1"
},
"metrics": [
{
"schemaVersion": "2026-10-16-task-metric.1",
"id": "<string>",
"label": "<string>",
"path": "<string>",
"unit": "<string>",
"direction": "higher_is_better",
"source": {
"kind": "service_state",
"namespace": "<string>",
"rowId": "<string>",
"schemaVersion": "2026-10-15-effect-check.1",
"service": "<string>"
}
}
],
"serviceDatasets": {},
"sequence": {
"schemaVersion": "2026-10-14-sequence.1",
"steps": [
{
"kind": "target",
"id": "<string>",
"input": "<string>",
"when": {
"path": "<string>",
"comparator": "equals",
"step": "<string>",
"expected": "<string>"
}
}
]
}
}
],
"target": {
"kind": "command",
"argv": [
"<string>"
],
"cwd": "<string>",
"metadata": {
"schemaVersion": "2026-10-15-target-metadata.1",
"source": {
"revision": "<string>",
"dirty": "clean",
"contentDigest": "<string>"
},
"resetCoverage": {
"applicationDatabase": "unknown",
"cache": "unknown",
"filesystem": "unknown",
"conversationMemory": "unknown",
"outstandingJobs": "unknown",
"browserProfile": "unknown",
"externalState": "unknown"
}
}
},
"services": [
{
"alias": "<string>",
"buildId": "<string>",
"seed": "<string>",
"operations": [
"<string>"
],
"datasetId": "<string>",
"control": {
"schemaVersion": "2026-10-15-service-control.1",
"operations": [
"<string>"
]
}
}
],
"configurations": [
{
"id": "<string>",
"parameters": {}
}
],
"repetitions": 123,
"concurrency": 123,
"limits": {
"timeoutMs": 123,
"maxRuns": 123,
"maxOutputBytes": 123
},
"targetExecution": {
"schemaVersion": "2026-10-16-target-execution.1",
"nonHermeticParallel": "acknowledged"
},
"population": {
"schemaVersion": "2026-10-15-population.1",
"method": "matrix",
"seed": "<string>",
"candidateCount": 123,
"selectedIndices": [
123
],
"sourceRecipeDigest": "<string>",
"axesDigest": "<string>"
},
"populationPurpose": {
"schemaVersion": "2026-10-16-population-purpose.1",
"kind": "exploration",
"rationale": "<string>"
},
"gate": {
"requireCompleted": true,
"requireExactChecks": true,
"minimumLevels": {}
}
},
"createdAt": "<string>",
"cancellationRequested": true,
"total": 123,
"counts": {
"error": 123,
"queued": 123,
"running": 123,
"completed": 123,
"interrupted": 123,
"cancelled": 123
},
"charge": {
"amount": 0,
"policy": "free_early_access"
},
"targetExecution": {
"schemaVersion": "2026-10-16-target-execution.1",
"requestedConcurrency": 123,
"acknowledgement": "not_recorded",
"mode": "isolated_runner_contract",
"automaticTargetReset": false,
"isolationAttestation": "not_provided"
},
"operations": {
"schemaVersion": "2026-10-15-batch-operations.1",
"observedAt": "<string>",
"runner": {
"state": "live_lease_observed",
"liveLeases": 123,
"expiredUnreconciled": 123,
"finishedAttempts": 123,
"lastClaimedAt": "<string>",
"latestLeaseExpiresAt": "<string>"
},
"resources": {
"queuedRuns": 123,
"claimedRunSlots": 123,
"runSlotLimit": 123,
"toolInstances": {
"creating": 123,
"active": 123,
"paused": 123,
"expired": 123,
"destroyed": 123,
"recoveryRequired": 123
},
"toolSessions": {
"preparing": 123,
"ready": 123,
"closing": 123,
"closed": 123
},
"pendingBindings": 123,
"retainedBindings": 123,
"cleanupPending": 123
},
"notes": [
"<string>"
]
},
"submission": {
"schemaVersion": "2026-10-15-inspection.1",
"origin": "cli",
"ci": {
"schemaVersion": "2026-10-16-ci-context.1",
"provider": "github",
"serverUrl": "<string>",
"repository": "<string>",
"runId": "<string>",
"runAttempt": 123,
"commit": "<string>",
"ref": "<string>",
"workflow": "<string>",
"job": "<string>",
"event": "<string>",
"pullRequest": 123
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"repair": "<string>",
"requestId": "<string>",
"details": "<string>",
"validation": {
"issues": [
{
"path": [
"<string>"
],
"code": "<string>",
"message": "<string>",
"pathTruncated": true
}
],
"totalIssues": 123,
"omittedIssues": 123
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"repair": "<string>",
"requestId": "<string>",
"details": "<string>",
"validation": {
"issues": [
{
"path": [
"<string>"
],
"code": "<string>",
"message": "<string>",
"pathTruncated": true
}
],
"totalIssues": 123,
"omittedIssues": 123
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"repair": "<string>",
"requestId": "<string>",
"details": "<string>",
"validation": {
"issues": [
{
"path": [
"<string>"
],
"code": "<string>",
"message": "<string>",
"pathTruncated": true
}
],
"totalIssues": 123,
"omittedIssues": 123
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"repair": "<string>",
"requestId": "<string>",
"details": "<string>",
"validation": {
"issues": [
{
"path": [
"<string>"
],
"code": "<string>",
"message": "<string>",
"pathTruncated": true
}
],
"totalIssues": 123,
"omittedIssues": 123
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"repair": "<string>",
"requestId": "<string>",
"details": "<string>",
"validation": {
"issues": [
{
"path": [
"<string>"
],
"code": "<string>",
"message": "<string>",
"pathTruncated": true
}
],
"totalIssues": 123,
"omittedIssues": 123
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"repair": "<string>",
"requestId": "<string>",
"details": "<string>",
"validation": {
"issues": [
{
"path": [
"<string>"
],
"code": "<string>",
"message": "<string>",
"pathTruncated": true
}
],
"totalIssues": 123,
"omittedIssues": 123
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"repair": "<string>",
"requestId": "<string>",
"details": "<string>",
"validation": {
"issues": [
{
"path": [
"<string>"
],
"code": "<string>",
"message": "<string>",
"pathTruncated": true
}
],
"totalIssues": 123,
"omittedIssues": 123
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"repair": "<string>",
"requestId": "<string>",
"details": "<string>",
"validation": {
"issues": [
{
"path": [
"<string>"
],
"code": "<string>",
"message": "<string>",
"pathTruncated": true
}
],
"totalIssues": 123,
"omittedIssues": 123
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"repair": "<string>",
"requestId": "<string>",
"details": "<string>",
"validation": {
"issues": [
{
"path": [
"<string>"
],
"code": "<string>",
"message": "<string>",
"pathTruncated": true
}
],
"totalIssues": 123,
"omittedIssues": 123
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"repair": "<string>",
"requestId": "<string>",
"details": "<string>",
"validation": {
"issues": [
{
"path": [
"<string>"
],
"code": "<string>",
"message": "<string>",
"pathTruncated": true
}
],
"totalIssues": 123,
"omittedIssues": 123
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"repair": "<string>",
"requestId": "<string>",
"details": "<string>",
"validation": {
"issues": [
{
"path": [
"<string>"
],
"code": "<string>",
"message": "<string>",
"pathTruncated": true
}
],
"totalIssues": 123,
"omittedIssues": 123
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"repair": "<string>",
"requestId": "<string>",
"details": "<string>",
"validation": {
"issues": [
{
"path": [
"<string>"
],
"code": "<string>",
"message": "<string>",
"pathTruncated": true
}
],
"totalIssues": 123,
"omittedIssues": 123
}
}
}Authorizations
Opaque Firedrill interactive or scoped machine credential. The CLI handles human-approved login; CI stores its scoped credential as FIREDRILL_TOKEN. Capabilities and project/environment ownership are rechecked at use.
Headers
Send all three selected-read headers together. The response echoes the confirmed selection.
Allowed value:
"2026-10-16-read-scope.1"Your selected project. A resource outside the selected context returns 409.
Your selected environment. These headers never grant authority.
Path Parameters
Required string length:
1 - 160Response
The retained resource or operation response.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes