List sites
list_sitesList the non-deleted sites in one workspace (the one named by workspace_id, the personal space when omitted; sites live in exactly one workspace) with their ids, slugs, titles, statuses, visibilities (public or allowlist, i.e. private), share URLs, detected content kind (content_kind), SPA fallback (spa_fallback), auto-refresh on update (auto_refresh), allowed external origins (external_origins), link expiry (link_expires_at, ISO or null) with its derived link_status (no_expiry, active, expiring_soon, or expired), and whether a view password is set (has_view_password). Narrow the results with the optional visibility, status, link_status, and expires_within_days filters; all combine with AND.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | Only sites in this lifecycle state (`published` is live) | |
| visibility | No | Only sites with this visibility (`allowlist` is private/restricted) | |
| link_status | No | Only sites whose share link is in this expiry state | |
| workspace_id | No | Optional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for). | |
| expires_within_days | No | Only sites whose link expires within this many days and has not lapsed |