Skip to content

Change how long requests wait and where they are announced (owners only)

PUT
/approval-settings
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.

Media typeapplication/json
object
timeout_hours
integer
>= 1 <= 168
email
boolean
slack_webhook_url

A Slack incoming-webhook URL (https://hooks.slack.com/…); “” removes it.

string
<= 500 characters
whatsapp
object
remove
boolean
phone_number_id
string
<= 50 characters
access_token

Write-only; absent keeps the current one.

string
<= 1000 characters
recipients
Array<string>
<= 20 items
template

An approved template with two body parameters

string
<= 100 characters
language
string
<= 10 characters

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

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