Batch Get Checkpoints Endpoint
curl --request POST \
--url https://api.primeintellect.ai/api/v1/sandbox/checkpoints:batchGet \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"checkpoint_ids": [
"<string>"
]
}
'import requests
url = "https://api.primeintellect.ai/api/v1/sandbox/checkpoints:batchGet"
payload = { "checkpoint_ids": ["<string>"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({checkpoint_ids: ['<string>']})
};
fetch('https://api.primeintellect.ai/api/v1/sandbox/checkpoints:batchGet', 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.primeintellect.ai/api/v1/sandbox/checkpoints:batchGet",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'checkpoint_ids' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.primeintellect.ai/api/v1/sandbox/checkpoints:batchGet"
payload := strings.NewReader("{\n \"checkpoint_ids\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.primeintellect.ai/api/v1/sandbox/checkpoints:batchGet")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"checkpoint_ids\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.primeintellect.ai/api/v1/sandbox/checkpoints:batchGet")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"checkpoint_ids\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"checkpoints": [
{
"id": "<string>",
"sandbox_id": "<string>",
"state": "<string>",
"depth": 123,
"docker_image": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"parent_id": "<string>",
"team_id": "<string>",
"disk_size_bytes": 123,
"stored_bytes": 123,
"occupied_bytes": 0,
"error": "<string>",
"merge": "merged",
"merge_error": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
],
"errors": [
{
"checkpoint_id": "<string>",
"code": "NOT_FOUND",
"message": "Checkpoint not found"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Sandbox Checkpoints
Batch Get Checkpoints Endpoint
Get up to 100 checkpoints across sandboxes, with per-ID lookup errors.
Missing and inaccessible checkpoints both return NOT_FOUND. Checkpoint
failures are returned as records with state FAILED, not lookup errors.
Every checkpoint carries its merge status with the same derivation
as the single GET: the SDK polls this route after DURABLE and must see
pending while a volume publish’s merge is still in flight.
POST
/
api
/
v1
/
sandbox
/
checkpoints:batchGet
Batch Get Checkpoints Endpoint
curl --request POST \
--url https://api.primeintellect.ai/api/v1/sandbox/checkpoints:batchGet \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"checkpoint_ids": [
"<string>"
]
}
'import requests
url = "https://api.primeintellect.ai/api/v1/sandbox/checkpoints:batchGet"
payload = { "checkpoint_ids": ["<string>"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({checkpoint_ids: ['<string>']})
};
fetch('https://api.primeintellect.ai/api/v1/sandbox/checkpoints:batchGet', 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.primeintellect.ai/api/v1/sandbox/checkpoints:batchGet",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'checkpoint_ids' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.primeintellect.ai/api/v1/sandbox/checkpoints:batchGet"
payload := strings.NewReader("{\n \"checkpoint_ids\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.primeintellect.ai/api/v1/sandbox/checkpoints:batchGet")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"checkpoint_ids\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.primeintellect.ai/api/v1/sandbox/checkpoints:batchGet")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"checkpoint_ids\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"checkpoints": [
{
"id": "<string>",
"sandbox_id": "<string>",
"state": "<string>",
"depth": 123,
"docker_image": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"parent_id": "<string>",
"team_id": "<string>",
"disk_size_bytes": 123,
"stored_bytes": 123,
"occupied_bytes": 0,
"error": "<string>",
"merge": "merged",
"merge_error": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
],
"errors": [
{
"checkpoint_id": "<string>",
"code": "NOT_FOUND",
"message": "Checkpoint not found"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Body
application/json
Was this page helpful?