List an environment's versions, newest first
GET
/environments/{environment_id}/versions
const url = 'https://api.global.stillbox.example/v1/environments/example/versions';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.global.stillbox.example/v1/environments/example/versions \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”environment_id
required
string
Responses
Section titled “Responses”The versions
Media typeapplication/json
object
versions
required
Array<object>
object
version
required
integer
spec
required
object
repositories
Array<object>
object
url
required
An https address, such as https://github.com/acme/api.
string
branch
string
path
The folder in the home folder; the repository’s name by default.
string
credential
The name of one of the environment’s secrets, for a private repository.
string
variables
Non-secret variables, NAME to value (up to 100).
object
key
additional properties
string
setup_script
A shell script run once in each new sandbox, after the repositories are cloned.
string
mcp_servers
Array<object>
A remote server (url, with headers) or a local one (command, with args and env). Values may use ${SECRET_NAME}.
object
name
required
string
url
string
headers
object
key
additional properties
string
command
string
args
Array<string>
env
object
key
additional properties
string
house_rules
Instructions for the agents, in Markdown.
string
created_by
string
created_at
required
string format: date-time
Example generated
{ "versions": [ { "version": 1, "spec": { "repositories": [ { "url": "example", "branch": "example", "path": "example", "credential": "example" } ], "variables": { "additionalProperty": "example" }, "setup_script": "example", "mcp_servers": [ { "name": "example", "url": "example", "headers": { "additionalProperty": "example" }, "command": "example", "args": [ "example" ], "env": { "additionalProperty": "example" } } ], "house_rules": "example" }, "created_by": "example", "created_at": "2026-04-15T12:00:00Z" } ]}The API key is missing or invalid
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}No such sandbox in your organization (or no such file)
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}