List the actions that need approval
GET
/approval-rules
const url = 'https://api.global.stillbox.example/v1/approval-rules';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/approval-rules \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”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
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"}