---
title: "List Customer Domains (Org)"
description: "Lists customer domains within an organization (pagination + search)."
---

`GET /api/customer-domains`

## Query Parameters

- `organizationId` (optional): defaults to your session organization
- `customerId` (optional): accepts the customer public UUID (recommended) or a legacy numeric customer ID
- `search` (optional)
- `page` (optional, default `1`)
- `perPage` (optional, default `50`, max `200`)

## Example (cURL)

```bash
BASE_URL="https://uptimeify.io"
TOKEN="<your-api-token>"

curl -X GET "$BASE_URL/api/customer-domains?organizationId=1&page=1&perPage=50" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Accept: application/json"
```

## Response

Returns a paginated response:

```json
{
  "items": [
    {
      "id": 1,
      "publicId": "34eb0ec1-315d-45c4-aefe-0e5d12b11183",
      "customerId": 2,
      "customerName": "Zaskoku & Haupt GbR",
      "customerPublicId": "6764e84f-f02a-43e6-a46d-cecaec556723",
      "label": null,
      "domainName": "digitalduett.com",
      "status": "active",
      "expiryWarningDays": 30,
      "expiryErrorDays": 7,
      "createdAt": "2026-02-13T21:21:03.001Z",
      "updatedAt": "2026-02-13T21:21:03.001Z",
      "expiry": {
        "domainExpiresAt": "2026-12-20T20:44:45.000Z",
        "domainRegistrar": "NameCheap, Inc.",
        "isExpired": false,
        "lastError": null,
        "lastCheckedAt": "2026-04-03T10:59:00.321Z",
        "lastChangedAt": "2026-04-03T10:59:00.321Z",
        "lastNotifiedWarningAt": null,
        "lastNotifiedErrorAt": null,
        "lastNotifiedExpiredAt": null
      }
    }
  ],
  "total": 0,
  "page": 1,
  "perPage": 50
}
```

Each item includes flat customer fields plus an `expiry` object (or `null`).

## Common errors

- `400 Organization ID required` when the organization cannot be derived
- `400` query validation errors (e.g. invalid `organizationId`, `customerId`, `page`, `perPage`)
- `401 Unauthorized` when you are not logged in
- `403 Forbidden` when you cannot access the organization

