Skip to content

Deny a waiting request

POST
/approvals/{approval_id}/deny
curl --request POST \
--url https://api.global.stillbox.example/v1/approvals/example/deny \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "note": "example" }'

The note, if any, is passed to the agent as the reason.

approval_id
required
string
Media typeapplication/json
object
note
string
<= 1000 characters

Example generated

{
"note": "example"
}

The decided request

Media typeapplication/json
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

{
"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"
}

Only an owner can do this (owner_only), or the invitation is for another address (not_invited)

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}

No such sandbox in your organization (or no such file)

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}

The change would leave the organization without an owner (last_owner), its seats are full (member_limit), or the person is already a member (already_member)

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}