---
title: "List sites owned by the authenticated customer"
---

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

Path: Hosted EZ REST API

`GET /v1/sites`

## Authentication

- `sessionCookie`, apiKey, in cookie

## Query parameters

- `listSites.query.limit` (integer, optional)
  - min 1; max 100; default `20`
- `listSites.query.cursor` (string, optional)

## Code samples

### cURL

```curl
curl --request GET \
  --url https://api.hostedez.com/v1/sites \
  --header '__Secure-better-auth.session_token: <value>'
```

### TypeScript

```typescript
const url = 'https://api.hostedez.com/v1/sites';
const options = {method: 'GET', headers: {'__Secure-better-auth.session_token': '<value>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.hostedez.com/v1/sites"

headers = {"__Secure-better-auth.session_token": "<value>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Page of sites

#### Example

```json
{
  "nextCursor": "string",
  "sites": [
    {
      "app": "wordpress",
      "assistedMoveRequested": true,
      "createdAt": "2019-08-24T14:15:22Z",
      "currentHost": "string",
      "domain": "string",
      "failReason": "signin",
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "includesEmail": true,
      "isStaging": true,
      "kind": "new",
      "lastSyncedAt": "2019-08-24T14:15:22Z",
      "mailboxesCount": 0,
      "maintenanceEnabled": true,
      "name": "string",
      "parentSiteId": "186e495c-10c6-4f33-a5ef-3f9806a2ea6b",
      "phpVersion": "",
      "slug": "string",
      "status": "creating",
      "statusSince": 0,
      "storageBytes": 0,
      "tempAddress": "string",
      "updatedAt": "2019-08-24T14:15:22Z",
      "userId": "string"
    }
  ]
}
```

- `listSites.response.200.nextCursor` (string | null, required)
- `listSites.response.200.sites` (array<object>, required)
  - `listSites.response.200.sites.app` (string | null, required)
    - one of `"wordpress"`, `"nextcloud"`, `"laravel"`, `"drupal"`, `"php"`, `"static"`, `null`
  - `listSites.response.200.sites.assistedMoveRequested` (boolean, required)
  - `listSites.response.200.sites.createdAt` (string, required)
    - format `date-time`
  - `listSites.response.200.sites.currentHost` (string | null, required)
  - `listSites.response.200.sites.domain` (string | null, required)
  - `listSites.response.200.sites.failReason` (string | null, required)
    - one of `"signin"`, `"too_large"`, `"unsupported"`, `null`
  - `listSites.response.200.sites.id` (string, required)
    - format `uuid`
  - `listSites.response.200.sites.includesEmail` (boolean, required)
  - `listSites.response.200.sites.isStaging` (boolean, required)
  - `listSites.response.200.sites.kind` (string, required)
    - one of `"new"`, `"move"`
  - `listSites.response.200.sites.lastSyncedAt` (string | null, required)
    - format `date-time`
  - `listSites.response.200.sites.mailboxesCount` (integer, required)
    - format `int32`
  - `listSites.response.200.sites.maintenanceEnabled` (boolean, required) — Whether maintenance mode is currently active on this Hosted EZ site.
  - `listSites.response.200.sites.name` (string, required)
  - `listSites.response.200.sites.parentSiteId` (string | null, required)
    - format `uuid`
  - `listSites.response.200.sites.phpVersion` (string, required)
    - one of `""`, `"8.3"`, `"8.4"`, `"8.5"`
  - `listSites.response.200.sites.slug` (string, required)
  - `listSites.response.200.sites.status` (string, required)
    - one of `"creating"`, `"moving"`, `"ready"`, `"live_temporary"`, `"switching"`, `"live"`, `"suspended"`, `"failed"`, `"deleting"`
  - `listSites.response.200.sites.statusSince` (integer, required)
    - format `int64`
  - `listSites.response.200.sites.storageBytes` (integer, required)
    - format `int64`
  - `listSites.response.200.sites.tempAddress` (string, required)
  - `listSites.response.200.sites.updatedAt` (string, required)
    - format `date-time`
  - `listSites.response.200.sites.userId` (string, required)

### 400

Invalid limit or cursor

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string"
  }
}
```

- `listSites.response.400.error` (object, required)
  - `listSites.response.400.error.code` (string, required)
  - `listSites.response.400.error.message` (string, required)
  - `listSites.response.400.error.issues` (array<object>, optional)
    - `listSites.response.400.error.issues.message` (string, required)
    - `listSites.response.400.error.issues.path` (string, required)

### 401

Unauthenticated

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string"
  }
}
```

- `listSites.response.401.error` (object, required)
  - `listSites.response.401.error.code` (string, required)
  - `listSites.response.401.error.message` (string, required)
  - `listSites.response.401.error.issues` (array<object>, optional)
    - `listSites.response.401.error.issues.message` (string, required)
    - `listSites.response.401.error.issues.path` (string, required)


Source: https://docs.hostedez.com/api/listSites/index.md
