List your organization's deployments
GET
/deployments
const url = 'https://api.global.stillbox.example/v1/deployments';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 \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The deployments, newest first
Media typeapplication/json
object
deployments
required
Array<object>
object
id
required
string
name
required
string
sandbox_id
required
string
repository
string
branch
string
environment_id
string
dir
string
build
string
start
required
string
port
required
integer
health_path
string
visibility
required
string
url
The service’s HTTPS address
string
version
required
Goes up on every redeploy
integer
sandbox_state
Running, asleep, or on its way to one
string
created_at
required
string format: date-time
deployed_at
string format: date-time
Example
{ "deployments": [ { "visibility": "private" } ]}The API key is missing or invalid
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}