curl --request GET \
--url https://api.recursion.labelbox.com/managed-agents/v1/environments \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.recursion.labelbox.com/managed-agents/v1/environments"
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', 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",
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"
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")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.recursion.labelbox.com/managed-agents/v1/environments")
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{
"environments": [
{
"computer_use": true,
"config": {
"key": "example"
},
"created_at": "2026-02-18T09:30:00.000Z",
"description": "example",
"env_vars": {
"key": "example"
},
"environment_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"http_port": 1,
"idle_stop_after_seconds": 1,
"image": "example",
"metadata": {
"key": "example"
},
"mounts": [
{
"mount_path": "example",
"source": "example"
}
],
"name": "example-name",
"network_policy": {
"key": "example"
},
"organization_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"privileged": true,
"provider": "example",
"pvc_size_gi": 1,
"resources": {
"accelerator": {
"count": 1,
"name": "example-name",
"type": "example"
},
"cpu_milli": 1,
"memory_mib": 1,
"placement": {
"allow_spot": true,
"max_price_per_hour_usd": 1.5,
"min_accelerator_vram_gb": 1,
"providers": [
"example"
],
"regions": [
"example"
]
},
"timeout_seconds": 1
},
"scope": "example",
"secrets": {
"key": "example"
},
"setup": {
"script": "example",
"timeout_seconds": 1
},
"setup_updated_at": "2026-02-18T09:30:00.000Z",
"setup_updated_by_user_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"setup_verification": {
"active_setup_run_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"at": "2026-02-18T09:30:00.000Z",
"fingerprint": "example",
"image": {
"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"
},
"imageCapture": {
"at": "2026-02-18T09:30:00.000Z",
"message": "example",
"reason": "example",
"setupRunId": "example",
"status": "failed"
},
"last_run": {
"duration_ms": 1,
"exit_code": 1,
"failed_command": "example",
"failed_line": 1,
"hint": "example",
"hint_code": "example",
"message": "example",
"phase": "example",
"setup_run_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"status": "example",
"stderr_tail": "example"
},
"setup_run_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"stale": true,
"status": "example",
"verified_by_user_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d"
},
"setup_warnings": [
{
"code": "example",
"line": 1,
"message": "example"
}
],
"stopped_delete_after_seconds": 1,
"updated_at": "2026-02-18T09:30:00.000Z"
}
]
}{
"code": "invalid_request",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}{
"code": "unauthorized",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}{
"code": "forbidden",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}{
"code": "rate_limit_exceeded",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}{
"code": "internal_error",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}{
"code": "bad_gateway",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}{
"code": "managed_agents_unavailable",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}{
"code": "gateway_timeout",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}List environments
Returns every environment in the calling organization with its full sandbox spec (provider, image, setup, resources, network policy). Soft-deleted environments are omitted, and the response is not paginated.
curl --request GET \
--url https://api.recursion.labelbox.com/managed-agents/v1/environments \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.recursion.labelbox.com/managed-agents/v1/environments"
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', 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",
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"
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")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.recursion.labelbox.com/managed-agents/v1/environments")
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{
"environments": [
{
"computer_use": true,
"config": {
"key": "example"
},
"created_at": "2026-02-18T09:30:00.000Z",
"description": "example",
"env_vars": {
"key": "example"
},
"environment_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"http_port": 1,
"idle_stop_after_seconds": 1,
"image": "example",
"metadata": {
"key": "example"
},
"mounts": [
{
"mount_path": "example",
"source": "example"
}
],
"name": "example-name",
"network_policy": {
"key": "example"
},
"organization_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"privileged": true,
"provider": "example",
"pvc_size_gi": 1,
"resources": {
"accelerator": {
"count": 1,
"name": "example-name",
"type": "example"
},
"cpu_milli": 1,
"memory_mib": 1,
"placement": {
"allow_spot": true,
"max_price_per_hour_usd": 1.5,
"min_accelerator_vram_gb": 1,
"providers": [
"example"
],
"regions": [
"example"
]
},
"timeout_seconds": 1
},
"scope": "example",
"secrets": {
"key": "example"
},
"setup": {
"script": "example",
"timeout_seconds": 1
},
"setup_updated_at": "2026-02-18T09:30:00.000Z",
"setup_updated_by_user_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"setup_verification": {
"active_setup_run_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"at": "2026-02-18T09:30:00.000Z",
"fingerprint": "example",
"image": {
"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"
},
"imageCapture": {
"at": "2026-02-18T09:30:00.000Z",
"message": "example",
"reason": "example",
"setupRunId": "example",
"status": "failed"
},
"last_run": {
"duration_ms": 1,
"exit_code": 1,
"failed_command": "example",
"failed_line": 1,
"hint": "example",
"hint_code": "example",
"message": "example",
"phase": "example",
"setup_run_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"status": "example",
"stderr_tail": "example"
},
"setup_run_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d",
"stale": true,
"status": "example",
"verified_by_user_id": "9f8b1c2d-3e4f-5a6b-7c8d-9e0f1a2b3c4d"
},
"setup_warnings": [
{
"code": "example",
"line": 1,
"message": "example"
}
],
"stopped_delete_after_seconds": 1,
"updated_at": "2026-02-18T09:30:00.000Z"
}
]
}{
"code": "invalid_request",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}{
"code": "unauthorized",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}{
"code": "forbidden",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}{
"code": "rate_limit_exceeded",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}{
"code": "internal_error",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}{
"code": "bad_gateway",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}{
"code": "managed_agents_unavailable",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}{
"code": "gateway_timeout",
"message": "<string>",
"details": {
"field": "<string>",
"issues": [
"<string>"
],
"requestId": "<string>",
"retryable": true
}
}Authorizations
A Recursion API key, created in the console under API keys.
Response
Response body of GET /v1/environments. An environment is the sandbox recipe a session runs inside; pick an environment_id from here when starting a session with POST /v1/sessions.
Response body of GET /v1/environments. An environment is the sandbox recipe a session runs inside; pick an environment_id from here when starting a session with POST /v1/sessions.
Every environment in the caller's organization, newest first. Null rather than an empty array when the organization has no environments. Soft-deleted environments are omitted.
Show child attributes
Show child attributes