curl -X GET 'https://api.weir.ai/pax/pod/pod_123456789' \
-H 'Authorization: Bearer YOUR_ADMIN_ACCESS_TOKEN'
{
"data": {
"podId": "pod_123456789",
"platformId": "platform_123456789",
"platformName": "My Platform",
"status": "running",
"scopes": ["read", "write", "crawl"],
"metrics": {
"uptime": 86400,
"requestCount": 15000,
"errorRate": 0.01
},
"createdAt": "2024-01-15T10:30:00Z",
"lastStarted": "2024-01-22T14:00:00Z"
},
"message": "Pod details retrieved successfully",
"status": "success"
}
Retrieve specific pod information
curl -X GET 'https://api.weir.ai/pax/pod/pod_123456789' \
-H 'Authorization: Bearer YOUR_ADMIN_ACCESS_TOKEN'
{
"data": {
"podId": "pod_123456789",
"platformId": "platform_123456789",
"platformName": "My Platform",
"status": "running",
"scopes": ["read", "write", "crawl"],
"metrics": {
"uptime": 86400,
"requestCount": 15000,
"errorRate": 0.01
},
"createdAt": "2024-01-15T10:30:00Z",
"lastStarted": "2024-01-22T14:00:00Z"
},
"message": "Pod details retrieved successfully",
"status": "success"
}
curl -X GET 'https://api.weir.ai/pax/pod/pod_123456789' \
-H 'Authorization: Bearer YOUR_ADMIN_ACCESS_TOKEN'
{
"data": {
"podId": "pod_123456789",
"platformId": "platform_123456789",
"platformName": "My Platform",
"status": "running",
"scopes": ["read", "write", "crawl"],
"metrics": {
"uptime": 86400,
"requestCount": 15000,
"errorRate": 0.01
},
"createdAt": "2024-01-15T10:30:00Z",
"lastStarted": "2024-01-22T14:00:00Z"
},
"message": "Pod details retrieved successfully",
"status": "success"
}
const getPod = async (podId, accessToken) => {
const response = await fetch(`https://api.weir.ai/pax/pod/${podId}`, {
headers: { 'Authorization': `Bearer ${accessToken}` }
});
if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`);
return await response.json();
};
Was this page helpful?