Get an Agent Pod
curl --request GET \
--url https://compute.x402layer.cc/pods/{id}import requests
url = "https://compute.x402layer.cc/pods/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://compute.x402layer.cc/pods/{id}', 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://compute.x402layer.cc/pods/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://compute.x402layer.cc/pods/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://compute.x402layer.cc/pods/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://compute.x402layer.cc/pods/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"pod": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_id": "<string>",
"tier": "<string>",
"model": "<string>",
"channels": [
"<string>"
],
"ai_included_usd": 123,
"ai_used_usd": 123,
"memory": {
"backend": "raw",
"lcm": true
},
"heartbeat_interval_sec": 123,
"status": "active",
"provider": "<string>",
"region": "<string>",
"plan": "<string>",
"ip_address": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"is_trial": true,
"trial_expires_at": "2023-11-07T05:31:56Z",
"auto_renew_enabled": true,
"auto_renew": true,
"grace_days": 123,
"heartbeat": {
"status": "<string>",
"telemetry": {},
"last_seen_at": "2023-11-07T05:31:56Z"
},
"credentials": {}
}
}Agent Pods
Get an Agent Pod
Returns a single pod you own, including its latest heartbeat and (when enabled) masked delegated-credential state. Authenticate with the same compute auth as /compute/* (API key, session bearer, or wallet signature).
GET
/
pods
/
{id}
Get an Agent Pod
curl --request GET \
--url https://compute.x402layer.cc/pods/{id}import requests
url = "https://compute.x402layer.cc/pods/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://compute.x402layer.cc/pods/{id}', 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://compute.x402layer.cc/pods/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://compute.x402layer.cc/pods/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://compute.x402layer.cc/pods/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://compute.x402layer.cc/pods/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"pod": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_id": "<string>",
"tier": "<string>",
"model": "<string>",
"channels": [
"<string>"
],
"ai_included_usd": 123,
"ai_used_usd": 123,
"memory": {
"backend": "raw",
"lcm": true
},
"heartbeat_interval_sec": 123,
"status": "active",
"provider": "<string>",
"region": "<string>",
"plan": "<string>",
"ip_address": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"is_trial": true,
"trial_expires_at": "2023-11-07T05:31:56Z",
"auto_renew_enabled": true,
"auto_renew": true,
"grace_days": 123,
"heartbeat": {
"status": "<string>",
"telemetry": {},
"last_seen_at": "2023-11-07T05:31:56Z"
},
"credentials": {}
}
}Was this page helpful?
⌘I
