Read the settings
GET
/settings
const url = 'http://127.0.0.1:7700/api/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 http://127.0.0.1:7700/api/settings \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Every setting.
Media typeapplication/json
object
approvalThresholdCents
A single spend above this, in US cents, always asks for an OK, even inside the task’s budget.
integer
defaultBudgetCents
The budget of a task that names none. 0 means every spend asks.
integer
networkDefault
With allowlist, a task that names no hosts gets defaultHosts.
string
defaultHosts
Array<string>
agentFolders
Personal. Folders agents may be given besides the owner’s home. Never the system or the box’s own state.
Array<string>
quietHours
object
enabled
boolean
from
string
to
string
logRetentionDays
integer
updateChannel
string
autoUpdate
boolean
appearance
object
theme
string
accent
A color like #5b8cff, or empty for the default.
string
Example
{ "approvalThresholdCents": 10000, "defaultBudgetCents": 0, "networkDefault": "none", "defaultHosts": [], "agentFolders": [], "quietHours": { "enabled": false, "from": "22:00", "to": "07:00" }, "logRetentionDays": 365, "updateChannel": "stable", "autoUpdate": true, "appearance": { "theme": "light" }}GurtOS is open source under the Apache License 2.0.Source code on GitHub.