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"
}
Admin APIs - Pods
Get All Pods
Retrieve all system pods
GET
/
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
array
required
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();
};
import requests
def get_pods(access_token):
response = requests.get(
'https://api.weir.ai/pax/pods',
headers={'Authorization': f'Bearer {access_token}'}
)
response.raise_for_status()
return response.json()
Was this page helpful?