Obter a política de segurança
RegistosGET /security-policy
Returns the tenant's sign-in security policy: whether two-factor authentication is required, whether a step-up is required when switching context, the idle session timeout, the allowed IP ranges and whether the IP list also applies to platform staff. The response also includes client_ip, the address the server sees for this request, so you can check an allowlist before saving it. Requires the business security read permission.
Devolve
200 Get the tenant security policy
Mostrar atributos
enforce_2faidle_timeout_minutes0 turns the idle timeout off
allowed_ip_rangesenforce_ip_on_platform_staffupdated_atupdated_byclient_ipThe client address the server sees
Permissões business:security:read · Funções: admin, owner
curl -X GET "$BUSINESS_API/security-policy" \
-H "Authorization: Bearer sk_test_..."
# Sem comando CLI equivalente; use cURL ou HTTP directo.
const res = await fetch("$BUSINESS_API/security-policy", {
method: "GET",
headers: {
Authorization: "Bearer sk_test_..."
}
});
const data = await res.json();
import requests
res = requests.get(
"$BUSINESS_API/security-policy",
headers={
"Authorization": "Bearer sk_test_..."
}
)
data = res.json()
req, _ := http.NewRequest("GET", "$BUSINESS_API/security-policy", nil)
req.Header.Set("Authorization", "Bearer sk_test_...")
resp, err := http.DefaultClient.Do(req)
{
"enforce_2fa": true,
"idle_timeout_minutes": 1,
"allowed_ip_ranges": [
"allowed ip range"
],
"enforce_ip_on_platform_staff": true,
"updated_at": "2026-11-19T09:30:00Z",
"updated_by": "updated by",
"client_ip": "client ip"
}