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