The service's live state in its sandbox (wakes it)
GET
/deployments/{deployment_id}/status
const url = 'https://api.global.stillbox.example/v1/deployments/example/status';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/deployments/example/status \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”deployment_id
required
string
Responses
Section titled “Responses”Building, starting, running, crashed or failed, with the last error and restarts
Media typeapplication/json
object
state
required
string
version
required
integer
commit
string
restarts
required
integer
started_at
string format: date-time
error
string
building
A redeploy is building while the previous version keeps serving
boolean
Example
{ "state": "waiting"}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"}The sandbox isn’t running, or its server is unreachable right now
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}