Disallow Agent Type
Remove an agent type from the tenant’s allow-list and cascade-deregister all running instances of that type for the tenant. After this call, new registrations of this type will be rejected when policy_mode is allow-list. Existing instances are immediately deregistered and their sessions unbound.
POST
/
agents
/
disallow_type
Disallow Agent Type
curl --request POST \
--url https://api.svantic.com/agents/disallow_type \
--header 'Content-Type: application/json' \
--data '
{
"tenant_id": "acme-corp",
"agent_type": "document-processor"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({tenant_id: 'acme-corp', agent_type: 'document-processor'})
};
fetch('https://api.svantic.com/agents/disallow_type', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.svantic.com/agents/disallow_type"
payload = {
"tenant_id": "acme-corp",
"agent_type": "document-processor"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.svantic.com/agents/disallow_type"
payload := strings.NewReader("{\n \"tenant_id\": \"acme-corp\",\n \"agent_type\": \"document-processor\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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))
}{
"ok": true,
"agent_type": "document-processor",
"removed_from_policy": true,
"deregistered_count": 2
}{
"error": "Invalid or expired token",
"code": "unauthorized"
}{
"error": "JWT does not include the required scope for this operation",
"code": "forbidden"
}{
"error": "Not found",
"code": "NOT_FOUND",
"request_id": "req_01EXAMPLE",
"timestamp": "2026-03-31T12:00:00.000Z"
}{
"error": "Internal server error",
"code": "INTERNAL_ERROR",
"request_id": "req_01EXAMPLE",
"timestamp": "2026-03-31T12:00:00.000Z"
}Body
application/json
Response
Agent type removed from allow-list and instances deregistered.
Example:
true
The agent type that was disallowed.
Example:
"document-processor"
true if the type was found and removed from the allow-list. false if it was not in the list.
Example:
true
Number of running instances that were cascade-deregistered.
Example:
2
⌘I
Disallow Agent Type
curl --request POST \
--url https://api.svantic.com/agents/disallow_type \
--header 'Content-Type: application/json' \
--data '
{
"tenant_id": "acme-corp",
"agent_type": "document-processor"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({tenant_id: 'acme-corp', agent_type: 'document-processor'})
};
fetch('https://api.svantic.com/agents/disallow_type', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.svantic.com/agents/disallow_type"
payload = {
"tenant_id": "acme-corp",
"agent_type": "document-processor"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.svantic.com/agents/disallow_type"
payload := strings.NewReader("{\n \"tenant_id\": \"acme-corp\",\n \"agent_type\": \"document-processor\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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))
}{
"ok": true,
"agent_type": "document-processor",
"removed_from_policy": true,
"deregistered_count": 2
}{
"error": "Invalid or expired token",
"code": "unauthorized"
}{
"error": "JWT does not include the required scope for this operation",
"code": "forbidden"
}{
"error": "Not found",
"code": "NOT_FOUND",
"request_id": "req_01EXAMPLE",
"timestamp": "2026-03-31T12:00:00.000Z"
}{
"error": "Internal server error",
"code": "INTERNAL_ERROR",
"request_id": "req_01EXAMPLE",
"timestamp": "2026-03-31T12:00:00.000Z"
}