Get Status Page Components
Retrieves a list of all components linked to a specific status page, identified by its unique ID. Components represent individual services or subsystems displayed on the status page and reflect their current operational state. This endpoint is essential for applications or dashboards that need to display real-time service health at a granular level. Each component object typically includes details such as the name, current status (e.g., operational, degraded, offline), description, and any grouping or dependency metadata. It is commonly used to dynamically populate UI sections with component statuses, perform health checks, or support automated incident workflows. This endpoint enables better visibility and control over service-level monitoring within the status page context.


Authorization: Bearer YOUR_TOKEN


Expected Behavior:


  • On success, the system will return a list of components.
  • If the request is invalid, a 400 error will be returned.
  • If authorization fails, a 401 error will be returned.
  • If the statuspage is not found, a 404 error will be returned.
Path Parameters
  • id string
    The unique ID of the statuspage for which components are being retrieved. Example: 'c03b02ec-244f-4d2c-8f68-3910071ed5c8'
JavaScript
Response codes
const axios = require('axios');

const url = "https://statuspage-query.api.pinghome.io/v1/statuspage/c03b02ec-244f-4d2c-8f68-3910071ed5c8/components";
axios.get(url, {
  headers: {
    'Authorization': 'Bearer YOUR_TOKEN',
    'Content-Type': 'application/json'
  }
})
.then(response => {
  console.log(response.data);
})
.catch(error => {
  console.error(error);
});
ResponseThis section is used to view the possible HTTP response codes returned by the API. These codes indicate the status of a request, such as 201 (Created), 401 (Unauthorized), 409 (Conflict), or 422 (Unprocessable Entity).