Get sandbox logs
curl --request GET \
--url https://console.cloudblast.io/api/v2/sandboxes/{sandbox}/logs \
--header 'Authorization: Bearer <token>'import requests
url = "https://console.cloudblast.io/api/v2/sandboxes/{sandbox}/logs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://console.cloudblast.io/api/v2/sandboxes/{sandbox}/logs', 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://console.cloudblast.io/api/v2/sandboxes/{sandbox}/logs",
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://console.cloudblast.io/api/v2/sandboxes/{sandbox}/logs"
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://console.cloudblast.io/api/v2/sandboxes/{sandbox}/logs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.cloudblast.io/api/v2/sandboxes/{sandbox}/logs")
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": 1842,
"at": "2026-11-19T10:15:42.318+00:00",
"source": "api",
"action": "command",
"status": "ok",
"message": "python3 --version && echo $MODE",
"detail": {
"command": "python3 --version && echo $MODE",
"finished": true,
"exit_code": 0,
"stdout": "Python 3.12.3\ntest\n",
"stderr": "",
"cut": false
},
"duration_ms": 412
}
],
"meta": {
"more": true
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "Missing or invalid Authorization header. Use: Authorization: Bearer <token>"
}
}{
"message": "Sandbox not found."
}{
"message": "The command field is required.",
"errors": {
"command": [
"The command field is required."
]
}
}Sandboxes
Get Sandbox Logs
What happened to the sandbox and what was sent to it, newest first: lifecycle events, commands with their output, computer use actions and screen openings. source says where each one came from: panel, api or system.
Up to limit events a page. When meta.more is true, pass the id of the last event as before to read the next page.
Command output is kept up to 2000 characters per stream. The values of environment variables are never logged.
GET
/
sandboxes
/
{sandbox}
/
logs
Get sandbox logs
curl --request GET \
--url https://console.cloudblast.io/api/v2/sandboxes/{sandbox}/logs \
--header 'Authorization: Bearer <token>'import requests
url = "https://console.cloudblast.io/api/v2/sandboxes/{sandbox}/logs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://console.cloudblast.io/api/v2/sandboxes/{sandbox}/logs', 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://console.cloudblast.io/api/v2/sandboxes/{sandbox}/logs",
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://console.cloudblast.io/api/v2/sandboxes/{sandbox}/logs"
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://console.cloudblast.io/api/v2/sandboxes/{sandbox}/logs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.cloudblast.io/api/v2/sandboxes/{sandbox}/logs")
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": 1842,
"at": "2026-11-19T10:15:42.318+00:00",
"source": "api",
"action": "command",
"status": "ok",
"message": "python3 --version && echo $MODE",
"detail": {
"command": "python3 --version && echo $MODE",
"finished": true,
"exit_code": 0,
"stdout": "Python 3.12.3\ntest\n",
"stderr": "",
"cut": false
},
"duration_ms": 412
}
],
"meta": {
"more": true
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "Missing or invalid Authorization header. Use: Authorization: Bearer <token>"
}
}{
"message": "Sandbox not found."
}{
"message": "The command field is required.",
"errors": {
"command": [
"The command field is required."
]
}
}