Read how long requests wait and where they are announced
GET
/approval-settings
const url = 'https://api.global.stillbox.example/v1/approval-settings';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-settings \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”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 API key is missing or invalid
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}