curl "https://kodostatus.com/api/v1/status-pages/sp_abc123/services" \
-H "X-API-Key: your_api_key"
const response = await fetch(
'https://kodostatus.com/api/v1/status-pages/sp_abc123/services',
{ headers: { 'X-API-Key': process.env.KODO_API_KEY } }
);
const data = await response.json();
{
"services": [
{
"id": "uuid",
"service_id": "svc_abc123",
"display_order": 0,
"services": {
"id": "svc_abc123",
"name": "API Gateway",
"status": "operational"
}
},
{
"id": "uuid",
"service_id": "svc_def456",
"display_order": 1,
"services": {
"id": "svc_def456",
"name": "Web App",
"status": "degraded"
}
}
]
}
Status Pages
List Page Services
Get services assigned to a status page
GET
/
status-pages
/
{id}
/
services
curl "https://kodostatus.com/api/v1/status-pages/sp_abc123/services" \
-H "X-API-Key: your_api_key"
const response = await fetch(
'https://kodostatus.com/api/v1/status-pages/sp_abc123/services',
{ headers: { 'X-API-Key': process.env.KODO_API_KEY } }
);
const data = await response.json();
{
"services": [
{
"id": "uuid",
"service_id": "svc_abc123",
"display_order": 0,
"services": {
"id": "svc_abc123",
"name": "API Gateway",
"status": "operational"
}
},
{
"id": "uuid",
"service_id": "svc_def456",
"display_order": 1,
"services": {
"id": "svc_def456",
"name": "Web App",
"status": "degraded"
}
}
]
}
Path Parameters
string
required
The status page ID
Response
Returns the list of service assignments with display order and service details.array
Common Errors
| Status | Message | Description |
|---|---|---|
| 404 | Status page not found | The ID does not match a page in your organization |
curl "https://kodostatus.com/api/v1/status-pages/sp_abc123/services" \
-H "X-API-Key: your_api_key"
const response = await fetch(
'https://kodostatus.com/api/v1/status-pages/sp_abc123/services',
{ headers: { 'X-API-Key': process.env.KODO_API_KEY } }
);
const data = await response.json();
{
"services": [
{
"id": "uuid",
"service_id": "svc_abc123",
"display_order": 0,
"services": {
"id": "svc_abc123",
"name": "API Gateway",
"status": "operational"
}
},
{
"id": "uuid",
"service_id": "svc_def456",
"display_order": 1,
"services": {
"id": "svc_def456",
"name": "Web App",
"status": "degraded"
}
}
]
}
⌘I