List your organization's API keys
GET
/api-keys
const url = 'https://api.global.stillbox.example/v1/api-keys';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/api-keys \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Keys that haven’t been revoked (never their secrets)
Media typeapplication/json
object
keys
required
Array<object>
object
id
required
The key’s public part (sbx_
string
name
required
string
created_by
string
created_at
required
string format: date-time
last_used_at
string format: date-time
access
required
What a key may do, never more than the role behind it allows. read: every read, no terminals. use: also
work in existing sandboxes (commands, terminals, files, checkpoints, schedules, the agent). create: also make
and remove sandboxes and their parts. full: everything, including organization settings. custom: only
actions.
string
actions
required
The operations a custom key may call.
Array<string>
sandbox_ids
The only sandboxes the key works on; absent for every sandbox.
Array<string>
expires_at
string format: date-time
service_user_id
The service user that holds the key, if it isn’t a person’s.
string
previous_valid_until
After a rotation, when the old secret stops working.
string format: date-time
Example
{ "keys": [ { "access": "read" } ]}The API key is missing or invalid
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}