curl --request GET \
--url https://api.x402layer.cc/pods/v1/pods/{id}/updates \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.x402layer.cc/pods/v1/pods/{id}/updates"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.x402layer.cc/pods/v1/pods/{id}/updates', 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.x402layer.cc/pods/v1/pods/{id}/updates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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.x402layer.cc/pods/v1/pods/{id}/updates"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.x402layer.cc/pods/v1/pods/{id}/updates")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.x402layer.cc/pods/v1/pods/{id}/updates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"updates": {
"mode": "auto",
"serving_version": "<string>",
"latest_version": "<string>",
"update_available": true,
"hold_expires_at": "<string>",
"hold_expired": true
}
}Get update policy
Who decides WHEN this pod takes our updates.
By default we do: the pod polls every six hours and applies whatever we answer, restarting its gateway for about forty seconds. That is right for a pod somebody runs for themselves and wrong for pods run on behalf of customers, whose agents would all restart at a moment their operator did not choose.
manual makes us keep answering with the version the pod already has, so it never updates itself. Apply the update yourself with POST /actions {"action":"update"}.
The hold expires after 30 days. Security fixes ride these bundles, so an indefinitely pinned pod stops being a scheduling choice and becomes an unpatched machine. hold_expires_at always names the date.
curl --request GET \
--url https://api.x402layer.cc/pods/v1/pods/{id}/updates \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.x402layer.cc/pods/v1/pods/{id}/updates"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.x402layer.cc/pods/v1/pods/{id}/updates', 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.x402layer.cc/pods/v1/pods/{id}/updates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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.x402layer.cc/pods/v1/pods/{id}/updates"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.x402layer.cc/pods/v1/pods/{id}/updates")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.x402layer.cc/pods/v1/pods/{id}/updates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"updates": {
"mode": "auto",
"serving_version": "<string>",
"latest_version": "<string>",
"update_available": true,
"hold_expires_at": "<string>",
"hold_expired": true
}
}Authorizations
A compute API key (x402c_...). Mint one in the dashboard under Settings -> API Keys. This is the ONLY auth /pods/v1/* accepts - wallet signatures are bound to method+path+body and do not survive the internal hop, so signature callers must use the dashboard routes instead. Two extra scopes gate the dangerous powers: pods:wallet:write (pod wallet money, backup passphrase) and pods:control:write (connectors, full-power control socket).
Path Parameters
Pod id, as returned by create/list.
Response
The pod's update policy.
Show child attributes
Show child attributes
Was this page helpful?
