Get an environment at its current version
const url = 'https://api.global.stillbox.example/v1/environments/example';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 \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”The environment and its secrets’ names (never their values)
object
The current version, which new sandboxes get.
object
object
An https address, such as https://github.com/acme/api.
The folder in the home folder; the repository’s name by default.
The name of one of the environment’s secrets, for a private repository.
Non-secret variables, NAME to value (up to 100).
object
A shell script run once in each new sandbox, after the repositories are cloned.
A remote server (url, with headers) or a local one (command, with args and env). Values may use ${SECRET_NAME}.
object
object
object
Instructions for the agents, in Markdown.
object
Where the credential broker may swap the placeholder for the value.
The value’s last characters, to recognize it.
Example
{ "secrets": [ { "mode": "placeholder" } ]}The API key is missing or invalid
object
Example
{ "code": "not_found"}No such sandbox in your organization (or no such file)
object
Example
{ "code": "not_found"}