Skip to main content
GET
Get an environment

Authorizations

Authorization
string
header
required

A CLI token or an organization API key.

Path Parameters

id
string
required

Its ID or name.

Response

OK

id
string
Example:

"env_3iynbifi4k6xgfhn"

name
string
Example:

"linux-build-3f2a"

template
string
Example:

"linux-build"

state
enum<string>
Available options:
pending,
starting,
ready,
stopping,
stopped,
failed
node
string

The node it runs on.

sandbox
string

The sandbox it's wired to.

pool
string
Example:

"linux-arm64"

labels
object
project
string

Whose key seals its files.

Example:

"github.com/acme/app"

readyMs
integer

From request to ready.

error
string
createdBy
string
created
string<date-time>
ready
string<date-time>
stopped
string<date-time>
expires
string<date-time>
idleUntil
string<date-time>
idle
string
Example:

"1h0m0s"

hard
string
Example:

"6h0m0s"

exports
object[]
shares
object[]
snapshot
string

The key its files are saved under when it ends.

restored
object