Skip to main content
GET
https://api-dev.weir.ai/
/
pax
/
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"
}

Get All Pods

Retrieve a list of 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"
}

Response Fields

data.pods
array
required
Array of pod objects.

Usage Examples

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();
};