Resume paused agents
curl --request POST \
--url https://api.zode.dev/v1/proxying/loop/resume \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.zode.dev/v1/proxying/loop/resume"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.zode.dev/v1/proxying/loop/resume', 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.zode.dev/v1/proxying/loop/resume",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.zode.dev/v1/proxying/loop/resume"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.zode.dev/v1/proxying/loop/resume")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zode.dev/v1/proxying/loop/resume")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"providers": [
{
"id": "<string>",
"name": "<string>"
}
],
"keys": {},
"loop": {
"window_seconds": 123,
"max_calls": 123,
"max_spend_micros": 123,
"max_same_failures": 123,
"mode": "",
"resumed_at": "2023-11-07T05:31:56Z"
},
"caps": {
"sandbox_max_cost_micros": 123,
"daily_cap_micros": 123,
"low_balance_micros": 123
},
"defaults": {
"loop": {
"window_seconds": 123,
"max_calls": 123,
"max_spend_micros": 123,
"max_same_failures": 123,
"mode": "",
"resumed_at": "2023-11-07T05:31:56Z"
},
"caps": {
"sandbox_max_cost_micros": 123,
"daily_cap_micros": 123,
"low_balance_micros": 123
}
},
"limits": {},
"saved": true,
"can_edit": true,
"secrets_available": true,
"max_keys_per_provider": 123
}{
"error": {
"code": "not_found",
"message": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>"
}
}Proxying
Resume paused agents
Resume every agent the loop breaker paused (owner, admin).
Stamps loop.resumed_at with now. Nodes get it with the loop
settings and resume every sandbox of the workspace that tripped
before it, on their next config pull (within a minute); the counters
start again from zero. Audited as proxy.loop.resume.
POST
/
v1
/
proxying
/
loop
/
resume
Resume paused agents
curl --request POST \
--url https://api.zode.dev/v1/proxying/loop/resume \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.zode.dev/v1/proxying/loop/resume"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.zode.dev/v1/proxying/loop/resume', 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.zode.dev/v1/proxying/loop/resume",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.zode.dev/v1/proxying/loop/resume"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.zode.dev/v1/proxying/loop/resume")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zode.dev/v1/proxying/loop/resume")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"providers": [
{
"id": "<string>",
"name": "<string>"
}
],
"keys": {},
"loop": {
"window_seconds": 123,
"max_calls": 123,
"max_spend_micros": 123,
"max_same_failures": 123,
"mode": "",
"resumed_at": "2023-11-07T05:31:56Z"
},
"caps": {
"sandbox_max_cost_micros": 123,
"daily_cap_micros": 123,
"low_balance_micros": 123
},
"defaults": {
"loop": {
"window_seconds": 123,
"max_calls": 123,
"max_spend_micros": 123,
"max_same_failures": 123,
"mode": "",
"resumed_at": "2023-11-07T05:31:56Z"
},
"caps": {
"sandbox_max_cost_micros": 123,
"daily_cap_micros": 123,
"low_balance_micros": 123
}
},
"limits": {},
"saved": true,
"can_edit": true,
"secrets_available": true,
"max_keys_per_provider": 123
}{
"error": {
"code": "not_found",
"message": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>"
}
}Authorizations
An API key (zode_tok_...). Create one in the console under API keys (https://console.zode.dev/tokens), or with zode login.
Response
Updated proxying view
⌘I