> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kodostatus.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Page Services

> Get services assigned to a status page

## Path Parameters

<ParamField path="id" type="string" required>
  The status page ID
</ParamField>

## Response

Returns the list of service assignments with display order and service details.

<ResponseField name="services" type="array">
  <Expandable title="service assignment object">
    <ResponseField name="id" type="string">
      Assignment record ID
    </ResponseField>

    <ResponseField name="service_id" type="string">
      Service ID
    </ResponseField>

    <ResponseField name="display_order" type="integer">
      Order in which the service appears on the page
    </ResponseField>

    <ResponseField name="services" type="object">
      <Expandable title="service object">
        <ResponseField name="id" type="string">
          Service ID
        </ResponseField>

        <ResponseField name="name" type="string">
          Service name
        </ResponseField>

        <ResponseField name="status" type="string">
          Current status: `operational`, `degraded`, `partial_outage`, `major_outage`, `maintenance`
        </ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

## Common Errors

| Status | Message                 | Description                                       |
| ------ | ----------------------- | ------------------------------------------------- |
| 404    | `Status page not found` | The ID does not match a page in your organization |

<RequestExample>
  ```bash cURL theme={null}
  curl "https://kodostatus.com/api/v1/status-pages/sp_abc123/services" \
    -H "X-API-Key: your_api_key"
  ```

  ```javascript Node.js theme={null}
  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();
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "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"
        }
      }
    ]
  }
  ```
</ResponseExample>
