curl --request GET \
--url https://api.recursion.labelbox.com/managed-agents/v1/environments/{environment_id}/setup-runs \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.recursion.labelbox.com/managed-agents/v1/environments/{environment_id}/setup-runs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.recursion.labelbox.com/managed-agents/v1/environments/{environment_id}/setup-runs', 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.recursion.labelbox.com/managed-agents/v1/environments/{environment_id}/setup-runs",
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.recursion.labelbox.com/managed-agents/v1/environments/{environment_id}/setup-runs"
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.recursion.labelbox.com/managed-agents/v1/environments/{environment_id}/setup-runs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.recursion.labelbox.com/managed-agents/v1/environments/{environment_id}/setup-runs")
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{
"setup_runs": [
{
"compute_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"compute_profile": {
"key": "example"
},
"created_at": "2026-02-18T09:30:00.000Z",
"duration_ms": 1,
"environment_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"exit_code": 1,
"failed_command": "example",
"failed_line": 1,
"failure_code": "example",
"fingerprint": "example",
"finished_at": "2026-02-18T09:30:00.000Z",
"gpu_readiness": {
"key": "example"
},
"hint": "example",
"hint_code": "example",
"image": "example",
"imageCapture": {
"at": "2026-02-18T09:30:00.000Z",
"message": "example",
"reason": "example",
"setupRunId": "example",
"status": "failed"
},
"imageId": "example",
"kind": "example",
"log_bytes": 1,
"log_lines": 1,
"log_truncated": true,
"message": "example",
"next_action": {
"method": "example",
"operation_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"path": "example"
},
"organization_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"phase": "example",
"providerEventCursor": 1,
"providerRunId": "example",
"requested_by_user_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"session_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"setupImage": {
"baseImageDigest": "example",
"capturedAt": "2026-02-18T09:30:00.000Z",
"computeId": "example",
"fingerprint": "example",
"generation": 1,
"image": "example",
"imageId": "example",
"runnerImage": "example",
"setupRunId": "example",
"sizeBytes": 1,
"usable": true,
"warmup": "example",
"warmupMessage": "example"
},
"setup_run_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"started_at": "2026-02-18T09:30:00.000Z",
"status": "example",
"stderr_tail": "example"
}
]
}{
"code": "analytics",
"message": "<string>",
"details": {}
}{
"code": "analytics",
"message": "<string>",
"details": {}
}{
"code": "forbidden",
"message": "<string>",
"details": {}
}{
"code": "analytics",
"message": "<string>",
"details": {}
}{
"code": "analytics",
"message": "<string>",
"details": {}
}{
"code": "analytics",
"message": "<string>",
"details": {}
}{
"code": "bad_gateway",
"message": "<string>",
"details": {}
}{
"code": "analytics",
"message": "<string>",
"details": {}
}{
"code": "gateway_timeout",
"message": "<string>",
"details": {}
}List setup runs
Returns the environment’s recent setup runs, newest first, manual and session-triggered alike. The newest manual run is the one the environment’s setup_verification describes; a session run records what happened when a session provisioned, so a session that failed in setup can be read here by its session_id.
curl --request GET \
--url https://api.recursion.labelbox.com/managed-agents/v1/environments/{environment_id}/setup-runs \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.recursion.labelbox.com/managed-agents/v1/environments/{environment_id}/setup-runs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.recursion.labelbox.com/managed-agents/v1/environments/{environment_id}/setup-runs', 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.recursion.labelbox.com/managed-agents/v1/environments/{environment_id}/setup-runs",
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.recursion.labelbox.com/managed-agents/v1/environments/{environment_id}/setup-runs"
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.recursion.labelbox.com/managed-agents/v1/environments/{environment_id}/setup-runs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.recursion.labelbox.com/managed-agents/v1/environments/{environment_id}/setup-runs")
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{
"setup_runs": [
{
"compute_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"compute_profile": {
"key": "example"
},
"created_at": "2026-02-18T09:30:00.000Z",
"duration_ms": 1,
"environment_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"exit_code": 1,
"failed_command": "example",
"failed_line": 1,
"failure_code": "example",
"fingerprint": "example",
"finished_at": "2026-02-18T09:30:00.000Z",
"gpu_readiness": {
"key": "example"
},
"hint": "example",
"hint_code": "example",
"image": "example",
"imageCapture": {
"at": "2026-02-18T09:30:00.000Z",
"message": "example",
"reason": "example",
"setupRunId": "example",
"status": "failed"
},
"imageId": "example",
"kind": "example",
"log_bytes": 1,
"log_lines": 1,
"log_truncated": true,
"message": "example",
"next_action": {
"method": "example",
"operation_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"path": "example"
},
"organization_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"phase": "example",
"providerEventCursor": 1,
"providerRunId": "example",
"requested_by_user_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"session_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"setupImage": {
"baseImageDigest": "example",
"capturedAt": "2026-02-18T09:30:00.000Z",
"computeId": "example",
"fingerprint": "example",
"generation": 1,
"image": "example",
"imageId": "example",
"runnerImage": "example",
"setupRunId": "example",
"sizeBytes": 1,
"usable": true,
"warmup": "example",
"warmupMessage": "example"
},
"setup_run_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"started_at": "2026-02-18T09:30:00.000Z",
"status": "example",
"stderr_tail": "example"
}
]
}{
"code": "analytics",
"message": "<string>",
"details": {}
}{
"code": "analytics",
"message": "<string>",
"details": {}
}{
"code": "forbidden",
"message": "<string>",
"details": {}
}{
"code": "analytics",
"message": "<string>",
"details": {}
}{
"code": "analytics",
"message": "<string>",
"details": {}
}{
"code": "analytics",
"message": "<string>",
"details": {}
}{
"code": "bad_gateway",
"message": "<string>",
"details": {}
}{
"code": "analytics",
"message": "<string>",
"details": {}
}{
"code": "gateway_timeout",
"message": "<string>",
"details": {}
}Authorizations
A Recursion API key, created in the console under API keys.
Path Parameters
Environment id (UUID).
Query Parameters
Maximum runs to return, newest first. Defaults to 50.
1 <= x <= 50Response
Recent setup runs for one environment, newest first. The newest manual run is the one the environment's setup_verification describes.
Recent setup runs for one environment, newest first. The newest manual run is the one the environment's setup_verification describes.
The environment's setup runs, newest first. Empty array when none has been requested.
Show child attributes
Show child attributes