Stop the org's agents: the kill switch (AS19)
curl --request POST \
--url https://api.eddy.engineer/v1/agents.stop \
--header 'Content-Type: application/json' \
--data '
{
"note": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/agents.stop"
payload = { "note": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({note: '<string>'})
};
fetch('https://api.eddy.engineer/v1/agents.stop', 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.eddy.engineer/v1/agents.stop",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'note' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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.eddy.engineer/v1/agents.stop"
payload := strings.NewReader("{\n \"note\": \"<string>\"\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))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/agents.stop")
.header("Content-Type", "application/json")
.body("{\n \"note\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/agents.stop")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"note\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"agent": {
"can_pause": true,
"id": "<string>",
"org": "<string>",
"paused": {
"at_unix_ms": 123,
"by": "<string>",
"note": "<string>"
},
"policy": [
{
"agent": "<string>",
"effect": "<string>",
"effective": "allow",
"engine": "<string>",
"locked": true,
"org": "<string>",
"source": "agent"
}
]
},
"billing": "off",
"can_edit": true,
"cancelled": 123,
"ceilings": {
"per_day_credits": 123,
"per_run_credits": 123
},
"defaults": {},
"effects": [
{
"effect": "<string>",
"engine": "<string>",
"org": "<string>"
}
],
"lock": true,
"org": "<string>",
"paused": [
{
"agent": "<string>",
"at_unix_ms": 123,
"by": "<string>",
"name": "<string>",
"note": "<string>"
}
],
"stopped": {
"at_unix_ms": 123,
"by": "<string>",
"note": "<string>"
},
"stopping": 123,
"today": {
"day": "<string>",
"held_credits": 123,
"left_credits": 123,
"running": 123,
"runs": 123,
"spent_credits": 123
},
"updated_at_unix_ms": 123,
"updated_by": "<string>",
"version": 123
}Meta
Stop the org's agents: the kill switch (AS19)
An org admin stops every agent of the org: no run starts (409 AGENTS_STOPPED), every run in flight stops at its next step (a model turn or a tool call) and reads cancelled with the stop’s reason, and a run that waits for a person or the browser is cancelled at once (its credit hold settled, its token revoked). Each run’s person is told. stopping counts the runs that stop at their next step, cancelled the ones cancelled now.
POST
/
v1
/
agents.stop
Stop the org's agents: the kill switch (AS19)
curl --request POST \
--url https://api.eddy.engineer/v1/agents.stop \
--header 'Content-Type: application/json' \
--data '
{
"note": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/agents.stop"
payload = { "note": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({note: '<string>'})
};
fetch('https://api.eddy.engineer/v1/agents.stop', 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.eddy.engineer/v1/agents.stop",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'note' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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.eddy.engineer/v1/agents.stop"
payload := strings.NewReader("{\n \"note\": \"<string>\"\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))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/agents.stop")
.header("Content-Type", "application/json")
.body("{\n \"note\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/agents.stop")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"note\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"agent": {
"can_pause": true,
"id": "<string>",
"org": "<string>",
"paused": {
"at_unix_ms": 123,
"by": "<string>",
"note": "<string>"
},
"policy": [
{
"agent": "<string>",
"effect": "<string>",
"effective": "allow",
"engine": "<string>",
"locked": true,
"org": "<string>",
"source": "agent"
}
]
},
"billing": "off",
"can_edit": true,
"cancelled": 123,
"ceilings": {
"per_day_credits": 123,
"per_run_credits": 123
},
"defaults": {},
"effects": [
{
"effect": "<string>",
"engine": "<string>",
"org": "<string>"
}
],
"lock": true,
"org": "<string>",
"paused": [
{
"agent": "<string>",
"at_unix_ms": 123,
"by": "<string>",
"name": "<string>",
"note": "<string>"
}
],
"stopped": {
"at_unix_ms": 123,
"by": "<string>",
"note": "<string>"
},
"stopping": 123,
"today": {
"day": "<string>",
"held_credits": 123,
"left_credits": 123,
"running": 123,
"runs": 123,
"spent_credits": 123
},
"updated_at_unix_ms": 123,
"updated_by": "<string>",
"version": 123
}Response
The org's controls