List sandboxes
Lists your organization’s sandboxes, newest first. Without state, only non-terminated sandboxes are listed; add state=terminated for finished ones. Filter by exact name, or by tags with tag[<key>]=<value>; every given tag must match.
Terminated sandboxes stay readable for at least 30 days.
GET
/
ai
/
sandboxes
List sandboxes
curl --request GET \
--url https://api.telnyx.com/v2/ai/sandboxes \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.telnyx.com/v2/ai/sandboxes"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.telnyx.com/v2/ai/sandboxes', 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.telnyx.com/v2/ai/sandboxes",
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.telnyx.com/v2/ai/sandboxes"
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.telnyx.com/v2/ai/sandboxes")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.telnyx.com/v2/ai/sandboxes")
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{
"data": [
{
"id": "sb-0192f1c2-7a4b-7c3e-9d1e-2f3a4b5c6d7e",
"name": "train-run-42",
"tags": {
"project": "llm-ft"
},
"state": "running",
"ready": true,
"image": {
"ref": "ghcr.io/acme/trainer:1.4"
},
"command": [
"python",
"train.py"
],
"workdir": "/app",
"env": {
"EPOCHS": "3"
},
"gpu": {
"type": "B300",
"count": 8
},
"cpu": 192,
"memory_mib": 2097152,
"disk_gib": 8192,
"timeout": 36000,
"idle_timeout": null,
"queue_timeout": 1800,
"network_mode": "public",
"cidr_allowlist": null,
"readiness_probe": null,
"log_bucket": "acme-sandbox-logs",
"logs_incomplete": false,
"logs_incomplete_reason": null,
"resolved": {
"image": "ghcr.io/acme/trainer@sha256:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"command": [
"python",
"train.py"
],
"workdir": "/app"
},
"termination_reason": null,
"termination_message": null,
"exit_code": null,
"created_at": "2026-11-13T10:00:00Z",
"started_at": "2026-11-13T10:01:12Z",
"terminated_at": null
}
],
"meta": {
"page_number": 1,
"page_size": 20,
"total_pages": 1,
"total_results": 1
}
}{
"errors": [
{
"title": "<string>",
"code": "<string>",
"detail": "<string>",
"meta": {
"url": null
},
"source": {
"parameter": null,
"pointer": null
}
}
]
}{
"errors": [
{
"code": "10009",
"title": "Authentication failed",
"detail": "Could not find any usable credentials in the request."
}
]
}{
"errors": [
{
"title": "sandboxes_not_whitelisted",
"detail": "The organization isn't whitelisted."
}
]
}{
"errors": [
{
"code": "10037",
"title": "Service unavailable",
"detail": "A dependency can't answer right now; retry later."
}
]
}Authorizations
Query Parameters
One or more states (repeat the parameter). Without it, only non-terminated sandboxes are listed.
Lifecycle state: queued → preparing (GPU preparation, when needed) →
scheduled → starting (pulling the image) → running → terminated.
Any non-terminal state can go straight to terminated, which is final.
Available options:
queued, preparing, scheduled, starting, running, terminated Was this page helpful?
List sandboxes
curl --request GET \
--url https://api.telnyx.com/v2/ai/sandboxes \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.telnyx.com/v2/ai/sandboxes"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.telnyx.com/v2/ai/sandboxes', 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.telnyx.com/v2/ai/sandboxes",
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.telnyx.com/v2/ai/sandboxes"
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.telnyx.com/v2/ai/sandboxes")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.telnyx.com/v2/ai/sandboxes")
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{
"data": [
{
"id": "sb-0192f1c2-7a4b-7c3e-9d1e-2f3a4b5c6d7e",
"name": "train-run-42",
"tags": {
"project": "llm-ft"
},
"state": "running",
"ready": true,
"image": {
"ref": "ghcr.io/acme/trainer:1.4"
},
"command": [
"python",
"train.py"
],
"workdir": "/app",
"env": {
"EPOCHS": "3"
},
"gpu": {
"type": "B300",
"count": 8
},
"cpu": 192,
"memory_mib": 2097152,
"disk_gib": 8192,
"timeout": 36000,
"idle_timeout": null,
"queue_timeout": 1800,
"network_mode": "public",
"cidr_allowlist": null,
"readiness_probe": null,
"log_bucket": "acme-sandbox-logs",
"logs_incomplete": false,
"logs_incomplete_reason": null,
"resolved": {
"image": "ghcr.io/acme/trainer@sha256:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"command": [
"python",
"train.py"
],
"workdir": "/app"
},
"termination_reason": null,
"termination_message": null,
"exit_code": null,
"created_at": "2026-11-13T10:00:00Z",
"started_at": "2026-11-13T10:01:12Z",
"terminated_at": null
}
],
"meta": {
"page_number": 1,
"page_size": 20,
"total_pages": 1,
"total_results": 1
}
}{
"errors": [
{
"title": "<string>",
"code": "<string>",
"detail": "<string>",
"meta": {
"url": null
},
"source": {
"parameter": null,
"pointer": null
}
}
]
}{
"errors": [
{
"code": "10009",
"title": "Authentication failed",
"detail": "Could not find any usable credentials in the request."
}
]
}{
"errors": [
{
"title": "sandboxes_not_whitelisted",
"detail": "The organization isn't whitelisted."
}
]
}{
"errors": [
{
"code": "10037",
"title": "Service unavailable",
"detail": "A dependency can't answer right now; retry later."
}
]
}