> This page is for version v1 (default).
> For other versions, use one of these documentation indexes:
> - v1 (default): https://docs.butterix.com/llms.txt
> - v0: https://docs.butterix.com/v0/llms.txt

> For the MDX source of any page, append .mdx to the page URL.
> For a complete documentation index, see https://docs.butterix.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.butterix.com/_mcp/server.
> If something on this page is wrong or missing, POST JSON {"page": "<page URL>", "message": "<what is wrong>"} to https://docs.butterix.com/_biti/feedback/agent.

# 列出站点

`GET /orgs/{org}/sites`

Base URL: https://api.butterix.com/v1

Authentication: bearer token in Authorization header or API key in cookie `biti_session`

## Path parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `org` | string | yes | 组织 slug 或 id |

## Example request

```bash
curl https://api.butterix.com/v1/orgs/acme/sites \
     -H "Authorization: Bearer <token>"
```

## Responses

### 200

组织下的站点，按创建时间倒序

Content type: `application/json`

| Field | Type | Required | Description |
|---|---|---|---|
| `[].id` | string | no |  |
| `[].slug` | string | no |  |
| `[].name` | string | no |  |
| `[].url` | URL | no |  |
| `[].sourceType` | enum | no | 内容来源：托管仓库、外部 Git 仓库或 CLI 上传 Allowed: `hosted`, `git`, `upload`. |
| `[].status` | enum | no | 最近一次部署的状态，没有部署时为 `none` Allowed: `queued`, `building`, `ready`, `failed`, `canceled`, `none`. |
| `[].updatedAt` | integer | no |  |
| `[].pageCount` | integer | no | 生产部署的页面数 |

### Example response (200)

```json
[
  {
    "id": "site_2m4k8p",
    "slug": "acme-payments",
    "name": "Acme 文档",
    "url": "https://acme-payments-sites.butterix.com",
    "sourceType": "hosted",
    "status": "queued",
    "updatedAt": 1,
    "pageCount": 94
  }
]
```
