Activate Kill Switch
POST
/api/v1/admin/kill-switch
const url = 'https://api.ultimateteam.ai/api/v1/admin/kill-switch';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"reason":"example","tenant_id":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.ultimateteam.ai/api/v1/admin/kill-switch \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "reason": "example", "tenant_id": "example" }'Activate the emergency kill switch.
Halts all agent execution for a specific tenant or globally. Requires platform-operator access.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
KillSwitchRequest
Request body for activating the kill switch.
Attributes: tenant_id: Optional tenant to halt. If omitted, a global halt is activated. reason: Required human-readable reason for the halt.
object
Examplegenerated
{ "reason": "example", "tenant_id": "example"}Responses
Section titled “ Responses ”Successful Response
Media typeapplication/json
KillSwitchResponse
Response body for kill switch operations.
Attributes: action: The action performed (halt, resume, status). scope: Whether the action is tenant-scoped or global. tenant_id: The tenant affected (None for global). active: Whether the kill switch is currently active. reason: The halt reason (empty if not active).
object
Example
{ "reason": ""}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}