List environments
Lists the live environments of a project: production first, then the others, oldest
first. Deleted environments are omitted. List items omit variables.
Requires the account_admin or developer role in the owning account.
GET
/
projects
/
{proj_id}
/
environments
List environments
curl --request GET \
--url https://api.reactor.inc/projects/{proj_id}/environments \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.reactor.inc/projects/{proj_id}/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.reactor.inc/projects/{proj_id}/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.reactor.inc/projects/{proj_id}/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.reactor.inc/projects/{proj_id}/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.reactor.inc/projects/{proj_id}/environments")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reactor.inc/projects/{proj_id}/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": [
{
"id": "4b5c6d7e-8f90-4a1b-8c2d-3e4f5a6b7c8d",
"project_id": "0d3c6f4e-8a1b-4c2d-9e7f-1a2b3c4d5e6f",
"name": "production",
"image": {
"tag": "v1.3.0",
"digest": "sha256:d138642b1cd5ea5bba6ed5655fa1d7dfced33889d149b094b2c32c32f09ed3da",
"ref": null
},
"weights": null,
"resources": {
"accelerators": [
{
"type": "NVIDIA_H100",
"count": 1
}
]
},
"extra_args": [],
"node_selector": null,
"instances": [
{
"count": 3,
"regions": {
"only": [
"us-east"
]
}
}
],
"revision": {
"number": 3,
"created_by": {
"user_id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d"
},
"created_at": "2026-10-10T09:53:20Z"
},
"public": false,
"created_at": "2026-10-09T08:53:20Z",
"deleted_at": null
},
{
"id": "6a7b8c9d-0e1f-4a2b-9c3d-4e5f6a7b8c9d",
"project_id": "0d3c6f4e-8a1b-4c2d-9e7f-1a2b3c4d5e6f",
"name": "staging",
"image": null,
"weights": null,
"resources": {
"accelerators": [
{
"type": "NVIDIA_H100",
"count": 1
}
]
},
"extra_args": [],
"node_selector": null,
"instances": [
{
"count": 1
}
],
"revision": null,
"public": false,
"created_at": "2026-10-10T12:40:00Z",
"deleted_at": null
}
]
}{
"error": "<string>",
"message": "<string>",
"resource": "<string>",
"reason": "<string>"
}{
"error": "<string>",
"message": "<string>",
"resource": "<string>",
"reason": "<string>"
}{
"error": "<string>",
"message": "<string>",
"resource": "<string>",
"reason": "<string>"
}Authorizations
A Reactor API key (rk_...), sent as Authorization: Bearer rk_.... Keep it on a server.
Path Parameters
The project's ID, a UUID. It is not the model's ID.
Query Parameters
Filter to one environment name, compared without case.
Page size, 1 to 200.
Required range:
1 <= x <= 200The next_cursor of the previous page. A cursor from another query is 400 invalid_cursor.
⌘I
List environments
curl --request GET \
--url https://api.reactor.inc/projects/{proj_id}/environments \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.reactor.inc/projects/{proj_id}/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.reactor.inc/projects/{proj_id}/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.reactor.inc/projects/{proj_id}/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.reactor.inc/projects/{proj_id}/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.reactor.inc/projects/{proj_id}/environments")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reactor.inc/projects/{proj_id}/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": [
{
"id": "4b5c6d7e-8f90-4a1b-8c2d-3e4f5a6b7c8d",
"project_id": "0d3c6f4e-8a1b-4c2d-9e7f-1a2b3c4d5e6f",
"name": "production",
"image": {
"tag": "v1.3.0",
"digest": "sha256:d138642b1cd5ea5bba6ed5655fa1d7dfced33889d149b094b2c32c32f09ed3da",
"ref": null
},
"weights": null,
"resources": {
"accelerators": [
{
"type": "NVIDIA_H100",
"count": 1
}
]
},
"extra_args": [],
"node_selector": null,
"instances": [
{
"count": 3,
"regions": {
"only": [
"us-east"
]
}
}
],
"revision": {
"number": 3,
"created_by": {
"user_id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d"
},
"created_at": "2026-10-10T09:53:20Z"
},
"public": false,
"created_at": "2026-10-09T08:53:20Z",
"deleted_at": null
},
{
"id": "6a7b8c9d-0e1f-4a2b-9c3d-4e5f6a7b8c9d",
"project_id": "0d3c6f4e-8a1b-4c2d-9e7f-1a2b3c4d5e6f",
"name": "staging",
"image": null,
"weights": null,
"resources": {
"accelerators": [
{
"type": "NVIDIA_H100",
"count": 1
}
]
},
"extra_args": [],
"node_selector": null,
"instances": [
{
"count": 1
}
],
"revision": null,
"public": false,
"created_at": "2026-10-10T12:40:00Z",
"deleted_at": null
}
]
}{
"error": "<string>",
"message": "<string>",
"resource": "<string>",
"reason": "<string>"
}{
"error": "<string>",
"message": "<string>",
"resource": "<string>",
"reason": "<string>"
}{
"error": "<string>",
"message": "<string>",
"resource": "<string>",
"reason": "<string>"
}