Resume Sandbox Endpoint
curl --request POST \
--url https://api.primeintellect.ai/api/v1/sandbox/{sandbox_id}/resume \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.primeintellect.ai/api/v1/sandbox/{sandbox_id}/resume"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.primeintellect.ai/api/v1/sandbox/{sandbox_id}/resume', 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/{sandbox_id}/resume",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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.primeintellect.ai/api/v1/sandbox/{sandbox_id}/resume"
req, _ := http.NewRequest("POST", 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.post("https://api.primeintellect.ai/api/v1/sandbox/{sandbox_id}/resume")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.primeintellect.ai/api/v1/sandbox/{sandbox_id}/resume")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"dockerImage": "<string>",
"startCommand": {
"executable": "<string>",
"args": [
"<string>"
]
},
"cpuCores": 123,
"memoryGB": 123,
"diskSizeGB": 123,
"diskMountPath": "<string>",
"gpuCount": 123,
"status": "PENDING",
"timeoutMinutes": 123,
"environmentVars": {},
"advancedConfigs": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"terminatedAt": "2023-11-07T05:31:56Z",
"userId": "<string>",
"teamId": "<string>",
"kubernetesJobId": "<string>",
"gpuType": "CPU_NODE",
"vm": false,
"network_allowlist": [
"<string>"
],
"network_denylist": [
"<string>"
],
"idleTimeoutMinutes": 123,
"terminationReason": "<string>",
"labels": [
"<string>"
],
"exitCode": 123,
"errorType": "<string>",
"errorMessage": "<string>",
"registryCredentialsId": "<string>",
"pendingImageBuildId": "<string>",
"gatewayAuth": {
"token": "<string>",
"gateway_url": "<string>",
"user_ns": "<string>",
"job_id": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Sandbox
Resume Sandbox Endpoint
Resume a paused VM sandbox with its current egress policy.
Returns once the request is accepted. The status becomes RUNNING when the resume completes; a failed resume leaves it PAUSED with an error message, and an unrecoverable one moves it to ERROR.
POST
/
api
/
v1
/
sandbox
/
{sandbox_id}
/
resume
Resume Sandbox Endpoint
curl --request POST \
--url https://api.primeintellect.ai/api/v1/sandbox/{sandbox_id}/resume \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.primeintellect.ai/api/v1/sandbox/{sandbox_id}/resume"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.primeintellect.ai/api/v1/sandbox/{sandbox_id}/resume', 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/{sandbox_id}/resume",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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.primeintellect.ai/api/v1/sandbox/{sandbox_id}/resume"
req, _ := http.NewRequest("POST", 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.post("https://api.primeintellect.ai/api/v1/sandbox/{sandbox_id}/resume")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.primeintellect.ai/api/v1/sandbox/{sandbox_id}/resume")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"dockerImage": "<string>",
"startCommand": {
"executable": "<string>",
"args": [
"<string>"
]
},
"cpuCores": 123,
"memoryGB": 123,
"diskSizeGB": 123,
"diskMountPath": "<string>",
"gpuCount": 123,
"status": "PENDING",
"timeoutMinutes": 123,
"environmentVars": {},
"advancedConfigs": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"terminatedAt": "2023-11-07T05:31:56Z",
"userId": "<string>",
"teamId": "<string>",
"kubernetesJobId": "<string>",
"gpuType": "CPU_NODE",
"vm": false,
"network_allowlist": [
"<string>"
],
"network_denylist": [
"<string>"
],
"idleTimeoutMinutes": 123,
"terminationReason": "<string>",
"labels": [
"<string>"
],
"exitCode": 123,
"errorType": "<string>",
"errorMessage": "<string>",
"registryCredentialsId": "<string>",
"pendingImageBuildId": "<string>",
"gatewayAuth": {
"token": "<string>",
"gateway_url": "<string>",
"user_ns": "<string>",
"job_id": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Rate Limit
60 requests per 60 seconds per token per sandbox, and 30,000 per 60 seconds per IP.Authorizations
HTTPBearerHTTPBearer
Response
Successful Response
Available options:
CPU_NODE, A10_24GB, A100_80GB, A100_40GB, A30_24GB, A40_48GB, B200_180GB, B300_262GB, GB200, GB300, RTX3070_8GB, RTX3070_8GB, RTX3080_10GB, RTX3080Ti_12GB, RTX3090_24GB, RTX3090Ti_24GB, RTX4070Ti_12GB, RTX4080_16GB, RTX4080Ti_16GB, RTX4090_24GB, RTX5090_32GB, H100_80GB, H200_96GB, GH200_96GB, H200_141GB, GH200_480GB, GH200_624GB, L4_24GB, L40_48GB, L40S_48GB, RTX4000_8GB, RTX5000_16GB, RTX6000_24GB, RTX8000_48GB, RTX2000Ada_16GB, RTX4000Ada_20GB, RTX5000Ada_32GB, RTX6000Ada_48GB, A2000_6GB, A4000_16GB, A4500_20GB, A5000_24GB, A6000_48GB, V100_16GB, V100_32GB, P100_16GB, T4_16GB, P4_8GB, P40_24GB, RTX_PRO_6000B_96GB, MI355X_288GB Was this page helpful?