Skip to content

List your organization's API keys

GET
/api-keys
curl --request GET \
--url https://api.global.stillbox.example/v1/api-keys \
--header 'Authorization: Bearer <token>'

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
Allowed values: read use create full custom
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"
}