List your organization's teams
GET
/teams
const url = 'https://api.global.stillbox.example/v1/teams';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/teams \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The teams and their members
Media typeapplication/json
object
teams
required
Array<object>
object
id
required
string
name
required
string
member_ids
required
Array<string>
internet
required
object
mode
required
string
allowed_hosts
required
Array<string>
budget
object
monthly_usd
required
number format: double
action
required
notify: tell the owners. sleep: also put the team’s sandboxes to sleep until next month.
string
spent_usd
required
This month’s compute and model calls of the team’s sandboxes, as of checked_at.
number format: double
state
required
warning from 80%; exceeded from 100%, when sleep also keeps the sandboxes asleep.
string
checked_at
string format: date-time
stopped
object
at
required
string format: date-time
by
The owner who stopped it.
string
reason
required
string
created_at
required
string format: date-time
Example
{ "teams": [ { "internet": { "mode": "open" }, "budget": { "action": "notify", "state": "ok" } } ]}The API key is missing or invalid
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}