Skip to main content
GET
/
sandboxes
/
{sandboxName}
/
schedules
/
{scheduleId}
Get Sandbox Schedule
curl --request GET \
  --url https://api.blaxel.ai/v0/sandboxes/{sandboxName}/schedules/{scheduleId} \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.blaxel.ai/v0/sandboxes/{sandboxName}/schedules/{scheduleId}"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.blaxel.ai/v0/sandboxes/{sandboxName}/schedules/{scheduleId}', 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.blaxel.ai/v0/sandboxes/{sandboxName}/schedules/{scheduleId}",
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.blaxel.ai/v0/sandboxes/{sandboxName}/schedules/{scheduleId}"

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.blaxel.ai/v0/sandboxes/{sandboxName}/schedules/{scheduleId}")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.blaxel.ai/v0/sandboxes/{sandboxName}/schedules/{scheduleId}")

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
{
  "createdAt": "<string>",
  "id": "schedule-0",
  "input": {
    "command": "python train.py --epochs 10",
    "env": {},
    "keepAlive": true,
    "name": "training-job",
    "timeout": 3600,
    "workingDir": "/app"
  },
  "maxExecutions": 100,
  "type": "cron",
  "value": "0 8 * * 1-5"
}

Authorizations

Authorization
string
header
required

OAuth2 authentication with JWT tokens

Path Parameters

sandboxName
string
required

Name of the Sandbox

scheduleId
string
required

Id of the Schedule

Response

200 - application/json

successful operation

A scheduled task that executes a process inside the sandbox at specified times. Stored in the dedicated schedules table (no longer embedded in the sandbox spec).

createdAt
string
read-only

Creation timestamp (read-only).

id
string

Unique identifier for this schedule within its sandbox. Auto-generated if not provided.

Example:

"schedule-0"

input
object

Process execution configuration for a scheduled sandbox task

maxExecutions
integer

Maximum number of execution records kept for this schedule. Once reached, recording a new execution deletes the oldest. Defaults to 100.

Example:

100

type
enum<string>

Type of schedule timing. 'cron' for recurring (5-field expression), 'at' for a specific RFC 3339 datetime, 'sleep' for a duration from now (resolved to 'at' on creation).

Available options:
cron,
at,
sleep
Example:

"cron"

value
string

Timing value. For 'cron': a 5-field cron expression (e.g. '0 8 * * 1-5'). For 'at': an RFC 3339 datetime (e.g. '2026-07-01T09:00:00Z'). For 'sleep': a duration (e.g. '2h', '30m', '7d').

Example:

"0 8 * * 1-5"

Last modified on July 1, 2026