Skip to content

List the actions that need approval

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

The rules

Media typeapplication/json
object
rules
required
Array<object>
object
id
required
string
name
required
string
team_id

Only this team’s sandboxes; absent for the whole organization.

string
applies_to
required

command: shell commands. file: file edits, by path. web: page fetches, by address.

string
Allowed values: command file web
pattern
required
string
four_eyes
required
boolean
created_at
required
string format: date-time

Example

{
"rules": [
{
"applies_to": "command"
}
]
}

The API key is missing or invalid

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}