Update governance settings
curl --request PUT \
--url https://api.visiqlabs.com/allow/settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"default_agent_mode": "enforce",
"hitl_timeout_seconds": 90
}
'import requests
url = "https://api.visiqlabs.com/allow/settings"
payload = {
"default_agent_mode": "enforce",
"hitl_timeout_seconds": 90
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({default_agent_mode: 'enforce', hitl_timeout_seconds: 90})
};
fetch('https://api.visiqlabs.com/allow/settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.visiqlabs.com/allow/settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'default_agent_mode' => 'enforce',
'hitl_timeout_seconds' => 90
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.visiqlabs.com/allow/settings"
payload := strings.NewReader("{\n \"default_agent_mode\": \"enforce\",\n \"hitl_timeout_seconds\": 90\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.visiqlabs.com/allow/settings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"default_agent_mode\": \"enforce\",\n \"hitl_timeout_seconds\": 90\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.visiqlabs.com/allow/settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"default_agent_mode\": \"enforce\",\n \"hitl_timeout_seconds\": 90\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"no_coverage_defaults": {
"read": "approve",
"write": "approve",
"delete": "approve",
"admin": "approve"
},
"default_agent_mode": "enforce",
"autopilot_enabled": true,
"hitl_timeout_seconds": 123,
"notification_channels": [
{
"type": "<string>",
"config": {}
}
],
"enduser_hitl_enabled": true,
"recall_retain_masked_original": true,
"auto_disable_high_interference": true,
"recall_floor_disabled_detectors": [
"<string>"
],
"recall_floor_enabled_optin": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"error": "Invalid request body",
"code": "invalid_request",
"details": [
{
"path": [
"agent_id"
],
"message": "Required"
}
]
}{
"error": "Unauthorized",
"code": "unauthenticated"
}{
"error": "insufficient_scope",
"code": "insufficient_scope",
"detail": "This API key is not authorized for the requested operation."
}{
"error": "rate_limiter_unavailable",
"code": "rate_limiter_unavailable",
"detail": "Rate limiter unavailable, please retry."
}Settings
Update governance settings
Partial update of the account’s governance defaults. Only the supplied fields change; at least one is required. Requires permission allow_settings:update.
PUT
/
allow
/
settings
Update governance settings
curl --request PUT \
--url https://api.visiqlabs.com/allow/settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"default_agent_mode": "enforce",
"hitl_timeout_seconds": 90
}
'import requests
url = "https://api.visiqlabs.com/allow/settings"
payload = {
"default_agent_mode": "enforce",
"hitl_timeout_seconds": 90
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({default_agent_mode: 'enforce', hitl_timeout_seconds: 90})
};
fetch('https://api.visiqlabs.com/allow/settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.visiqlabs.com/allow/settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'default_agent_mode' => 'enforce',
'hitl_timeout_seconds' => 90
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.visiqlabs.com/allow/settings"
payload := strings.NewReader("{\n \"default_agent_mode\": \"enforce\",\n \"hitl_timeout_seconds\": 90\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.visiqlabs.com/allow/settings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"default_agent_mode\": \"enforce\",\n \"hitl_timeout_seconds\": 90\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.visiqlabs.com/allow/settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"default_agent_mode\": \"enforce\",\n \"hitl_timeout_seconds\": 90\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"no_coverage_defaults": {
"read": "approve",
"write": "approve",
"delete": "approve",
"admin": "approve"
},
"default_agent_mode": "enforce",
"autopilot_enabled": true,
"hitl_timeout_seconds": 123,
"notification_channels": [
{
"type": "<string>",
"config": {}
}
],
"enduser_hitl_enabled": true,
"recall_retain_masked_original": true,
"auto_disable_high_interference": true,
"recall_floor_disabled_detectors": [
"<string>"
],
"recall_floor_enabled_optin": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"error": "Invalid request body",
"code": "invalid_request",
"details": [
{
"path": [
"agent_id"
],
"message": "Required"
}
]
}{
"error": "Unauthorized",
"code": "unauthenticated"
}{
"error": "insufficient_scope",
"code": "insufficient_scope",
"detail": "This API key is not authorized for the requested operation."
}{
"error": "rate_limiter_unavailable",
"code": "rate_limiter_unavailable",
"detail": "Rate limiter unavailable, please retry."
}Authorizations
A VisIQ API key presented as Authorization: Bearer vq_prod_.... Mint harness keys under Settings → Harness Keys and API keys under Settings → API Keys in the dashboard.
Body
application/json
Partial update; only supplied keys change.
Any subset of read/write/delete/admin.
Show child attributes
Show child attributes
Available options:
enforce, monitor, off What governed agents do when the engine is unavailable or cannot decide.
Available options:
open, closed When true, an untrusted-content approval hold becomes a hard deny.
Screens agent output for system-prompt leaks and redacts them. On by default.
Required range:
30 <= x <= 120Show child attributes
Show child attributes
Response
The updated settings.
Show child attributes
Show child attributes
Available options:
enforce, monitor, off Show child attributes
Show child attributes