Skip to content

List approval requests you can see, newest first

GET
/approvals
curl --request GET \
--url 'https://api.global.stillbox.example/v1/approvals?state=pending' \
--header 'Authorization: Bearer <token>'
state
string
Allowed values: pending approved denied expired
sandbox_id
string

The requests (at most 200)

Media typeapplication/json
object
approvals
required
Array<object>
object
id
required
string
sandbox_id
required
string
sandbox_name
string
team_id
string
kind
required

permission: unattended mode is off and the agent wants to change something. rule: an approval rule matched. request: a program in the sandbox asked. policy: a policy marked @approval matched (its name is in rule_name).

string
Allowed values: permission rule request policy
rule_name
string
four_eyes
required

The person the agent works for can’t approve it.

boolean
title
required

What the agent wants to do, e.g. “Run: git push origin main”.

string
tool

The agent’s tool, e.g. Bash, when an agent asked.

string
details

The full command

string
state
required
string
Allowed values: pending approved denied expired
sponsor_id

The person the agent works for.

string
sponsor_name
string
decided_by
string
decided_by_name
string
decided_at
string format: date-time
note
string
can_decide
required

Whether you may approve or deny it.

boolean
expires_at
required
string format: date-time
created_at
required
string format: date-time

Example

{
"approvals": [
{
"kind": "permission",
"state": "pending"
}
]
}

The API key is missing or invalid

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}