Skip to content

List an environment's versions, newest first

GET
/environments/{environment_id}/versions
curl --request GET \
--url https://api.global.stillbox.example/v1/environments/example/versions \
--header 'Authorization: Bearer <token>'
environment_id
required
string

The versions

Media typeapplication/json
object
versions
required
Array<object>
object
version
required
integer
spec
required
object
repositories
Array<object>
<= 10 items
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
<= 65536 characters
mcp_servers
Array<object>
<= 20 items

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
<= 65536 characters
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"
}