Read an approval request
GET
/approvals/{approval_id}
const url = 'https://api.global.stillbox.example/v1/approvals/example';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/approvals/example \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”approval_id
required
string
Responses
Section titled “Responses”The 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
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
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"}No such sandbox in your organization (or no such file)
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}