Change how long requests wait and where they are announced (owners only)
PUT
/approval-settings
const url = 'https://api.global.stillbox.example/v1/approval-settings';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"timeout_hours":1,"email":true,"slack_webhook_url":"example","whatsapp":{"remove":true,"phone_number_id":"example","access_token":"example","recipients":["example"],"template":"example","language":"example"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.global.stillbox.example/v1/approval-settings \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "timeout_hours": 1, "email": true, "slack_webhook_url": "example", "whatsapp": { "remove": true, "phone_number_id": "example", "access_token": "example", "recipients": [ "example" ], "template": "example", "language": "example" } }'Absent fields are left as they are. slack_webhook_url: "" removes Slack; whatsapp: null-like removal is
whatsapp.remove: true.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
timeout_hours
integer
email
boolean
slack_webhook_url
A Slack incoming-webhook URL (https://hooks.slack.com/…); “” removes it.
string
whatsapp
object
remove
boolean
phone_number_id
string
access_token
Write-only; absent keeps the current one.
string
recipients
Array<string>
template
An approved template with two body parameters
string
language
string
Example generated
{ "timeout_hours": 1, "email": true, "slack_webhook_url": "example", "whatsapp": { "remove": true, "phone_number_id": "example", "access_token": "example", "recipients": [ "example" ], "template": "example", "language": "example" }}Responses
Section titled “Responses”The settings
Media typeapplication/json
object
timeout_hours
required
integer
email
required
boolean
slack
required
object
configured
required
boolean
hint
string
whatsapp
required
object
configured
required
boolean
phone_number_id
required
string
recipients
required
Array<string>
template
required
string
language
required
string
Example generated
{ "timeout_hours": 1, "email": true, "slack": { "configured": true, "hint": "example" }, "whatsapp": { "configured": true, "phone_number_id": "example", "recipients": [ "example" ], "template": "example", "language": "example" }}The request is invalid
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}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"}