Pause an agent (AS19)
curl --request POST \
--url https://api.eddy.engineer/v1/agents/{id}/pause \
--header 'Content-Type: application/json' \
--data '
{
"note": "<string>",
"stop_running": true
}
'import requests
url = "https://api.eddy.engineer/v1/agents/{id}/pause"
payload = {
"note": "<string>",
"stop_running": True
}
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>', stop_running: true})
};
fetch('https://api.eddy.engineer/v1/agents/{id}/pause', 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/{id}/pause",
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>',
'stop_running' => true
]),
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/{id}/pause"
payload := strings.NewReader("{\n \"note\": \"<string>\",\n \"stop_running\": true\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/{id}/pause")
.header("Content-Type", "application/json")
.body("{\n \"note\": \"<string>\",\n \"stop_running\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/agents/{id}/pause")
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 \"stop_running\": true\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
Pause an agent (AS19)
The agent’s owner or an org admin pauses it: it starts no new run (409 AGENT_PAUSED) until resumed; runs in flight finish. Slice 2: with stop_running the pause is the agent’s kill switch — its runs in flight stop at their next step (a model turn or a tool call) and a run waiting for a person is cancelled at once, its person told; the answer says how many are stopping and cancelled, and the log calls it halt.
POST
/
v1
/
agents
/
{id}
/
pause
Pause an agent (AS19)
curl --request POST \
--url https://api.eddy.engineer/v1/agents/{id}/pause \
--header 'Content-Type: application/json' \
--data '
{
"note": "<string>",
"stop_running": true
}
'import requests
url = "https://api.eddy.engineer/v1/agents/{id}/pause"
payload = {
"note": "<string>",
"stop_running": True
}
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>', stop_running: true})
};
fetch('https://api.eddy.engineer/v1/agents/{id}/pause', 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/{id}/pause",
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>',
'stop_running' => true
]),
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/{id}/pause"
payload := strings.NewReader("{\n \"note\": \"<string>\",\n \"stop_running\": true\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/{id}/pause")
.header("Content-Type", "application/json")
.body("{\n \"note\": \"<string>\",\n \"stop_running\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/agents/{id}/pause")
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 \"stop_running\": true\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
}Body
application/json
Response
The org's controls with the agent's pause