---
title: "List your company's websites"
url: https://docs.corefinity.com/api/reference/sites/list-managed-websites
type: endpoint
last_updated: 2026-11-13
feature: sites
related:
  - https://docs.corefinity.com/guides/sites/create-and-manage/site-overview.md
---
# List your company's websites

Lists the websites of your own company and the CoreStack sites you can open that belong to another company: a
client's site your company manages as its agency. Each comes with its environments, most recently changed
first. A client's other websites are the client's own and are not listed. Paged by page number: `page`, up to
100000, and `per_page`.

```http
GET /api/corestack/websites
```

- Scope: `read`
- Two-factor: required on your account (all)
- Rate limit: 120 a minute
- Try it in the console: on

## Query parameters

- `search` (string): Part of the website's name or address, its company's name, or an environment's name or address. Up to 200 characters.
- `kind` (string): Only websites of this product.
- `status` (integer): Only websites in this status: 0 inactive, 1 pending setup, 2 onboarding, 3 active.
- `platform` (string): Only websites on this platform, such as `wordpress`.
- `region` (string): Only websites in this region, by its code, such as `uk`.
- `cluster_id` (integer): Only websites in this CoreCluster of yours. One that is not yours is refused `422` on `cluster_id`.
- `attention` (boolean): Send `1` for only the websites that need attention.
- `sort` (string): What to sort by.
- `dir` (string): The direction to sort in.
- `page` (integer): The page to read, starting at 1.
- `per_page` (integer): Items a page: 25, 50 or 100, default 25.

## Request

### curl

```bash
curl https://manage.corefinity.com/api/corestack/websites \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json"
```

### PHP

```php
use Illuminate\Support\Facades\Http;

$response = Http::withToken(env('COREFINITY_TOKEN'))
    ->acceptJson()
    ->get('https://manage.corefinity.com/api/corestack/websites');

$data = $response->json();
```

### Node

```javascript
const res = await fetch('https://manage.corefinity.com/api/corestack/websites', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.COREFINITY_TOKEN}`,
    Accept: 'application/json',
  },
});

// An answer with no body (204) has nothing to parse.
const text = await res.text();
const data = text && JSON.parse(text);
```

### Python

```python
import os
import requests

res = requests.get(
    "https://manage.corefinity.com/api/corestack/websites",
    headers={
        "Authorization": f"Bearer {os.environ['COREFINITY_TOKEN']}",
        "Accept": "application/json",
    },
)

data = res.json() if res.content else None
```

## Responses

### 200 A page of websites.

```json
{
  "can_create": {
    "corecluster": true,
    "corestack": true,
    "enterprise": false
  },
  "counts": {
    "all": 2,
    "corecluster": 1,
    "corestack": 0,
    "enterprise": 1,
    "mixed": 0
  },
  "page": 1,
  "per_page": 25,
  "rows": [
    {
      "attention": 2,
      "badge": {
        "kind": "corecluster",
        "label": "CoreCluster"
      },
      "cluster": {
        "href": "https://manage.corefinity.com/managed-clusters/clusters/17",
        "id": 1017,
        "kind": "customer",
        "label": "Northwind UK 1"
      },
      "company": {
        "id": 1204,
        "name": "Harbour & Finch"
      },
      "environment_count": 2,
      "environments": [
        {
          "group": "production",
          "hosting_kind": "corestack",
          "href": "https://manage.corefinity.com/managed-clusters/sites/1042",
          "id": 3110,
          "label": "Production",
          "name": "Production",
          "pending_changes": 0,
          "reseller_site_id": 1042,
          "role": "production",
          "state": "ready"
        },
        {
          "group": "staging",
          "hosting_kind": "corestack",
          "href": "https://manage.corefinity.com/managed-clusters/sites/1043",
          "id": 3111,
          "label": "Staging",
          "name": "Staging",
          "pending_changes": 0,
          "reseller_site_id": 1043,
          "role": "staging",
          "state": "ready",
          "uat_size": null
        }
      ],
      "hrefs": {
        "open": "https://manage.corefinity.com/managed-clusters/sites/1042"
      },
      "id": 1302,
      "name": "harbourandfinch.example.com",
      "pending_changes": 0,
      "platform": {
        "key": "wordpress",
        "label": "WordPress"
      },
      "region": null,
      "status": {
        "key": 3,
        "label": "Active"
      },
      "updated_at": "2026-11-10T00:59:44Z",
      "url": "https://harbourandfinch-example-com.northwind.cfstack.example.net"
    },
    {
      "attention": 0,
      "badge": {
        "kind": "enterprise",
        "label": "CoreStack Enterprise"
      },
      "cluster": null,
      "company": {
        "id": 1204,
        "name": "Harbour & Finch"
      },
      "environment_count": 0,
      "environments": [],
      "hrefs": {
        "open": "https://manage.corefinity.com/resources/websites/951"
      },
      "id": 1310,
      "name": "Harbour & Finch trade",
      "pending_changes": 0,
      "platform": null,
      "region": null,
      "status": {
        "key": 1,
        "label": "Pending setup"
      },
      "updated_at": "2026-11-10T00:51:39Z",
      "url": "https://trade.harbourandfinch.example.com"
    }
  ],
  "sort": {
    "dir": "desc",
    "key": "updated"
  },
  "total": 2
}
```

### 401 No token, or a token that is not valid.

```json
{
  "message": "Unauthenticated."
}
```

### 403 The token lacks the scope (`scope_required`, with the `scope` to use), or your company requires two-factor authentication and you have not set it up. For routes outside Managed Clusters.

```json
{
  "code": "company_unavailable",
  "message": "Your company is unavailable.",
  "reason": "company_unavailable"
}
```

### 404 The feature is not on for your company.

```json
{
  "code": "feature_off",
  "message": "Not found.",
  "reason": "feature_off"
}
```

### 422 A filter or the paging is wrong.

```json
{
  "code": "invalid",
  "errors": {
    "cluster_id": [
      "The selected cluster is invalid."
    ]
  },
  "field": "cluster_id",
  "message": "The selected cluster is invalid.",
  "reason": "invalid"
}
```

### 429 Too many requests (`rate_limited`). Wait for the number of seconds in `Retry-After`, which `retry_after_seconds` repeats.

```json
{
  "code": "rate_limited",
  "message": "Too many requests. Try again in 60 seconds.",
  "reason": "rate_limited",
  "retry_after_seconds": 60
}
```

## If it is refused

| Status | Reason | What to do |
|---|---|---|
| 401 |  | Send a valid token as `Authorization: Bearer <token>`. |
| 403 | `company_unavailable` | Your company is unavailable. |
| 403 | `scope_required` | Use a token with the scope named in `scope`. |
| 403 | `two_factor_required` | Turn on two-factor on your account, then send again. |
| 404 | `feature_off` | This feature is not on for your organisation yet. |
| 422 | `invalid` | Fix the field named in `field`; `errors` says why. |
| 429 | `rate_limited` | Wait for the seconds in `Retry-After`. |

## The same task elsewhere

- Guide: [Site overview](https://docs.corefinity.com/guides/sites/create-and-manage/site-overview.md)
