Get terminal settings
Read the workspace’s command and approval time limits.
GET
/api/v1/terminal-settingsconst response = await fetch("https://api.smallworld.sh/api/v1/terminal-settings", {
method: "GET",
headers: { Authorization: `Bearer ${apiKey}` },
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
const result = await response.json();
Use your server-side apiKey. Replace the example IDs.
Responses#
Returns both limits in seconds. Without saved settings, active time defaults to 60 seconds and approval timeout to 900 seconds.
{
"activeTimeLimitSeconds": 60,
"approvalTimeoutSeconds": 900
}