Skill: List Sites
List every site your organization owns, with its address, versions, publish state and status. Takes no parameters.
List Sites returns every site your organization owns. The Web Builder uses it to find the site_name the other skills take, and to see whether a site has a draft waiting to be published.
Parameters
None. The skill lists the calling organization’s sites, whoever in the organization built them.
Response
| Field | Description |
|---|---|
success | true |
count | How many sites are listed |
sites | The sites, most recently updated first. Each is described below |
Each site has:
| Field | Description |
|---|---|
site_name | The handle every other Web skill takes |
display_name | The name people see, set by Rename Site, or null when the site shows as its site_name |
url | Where the site is served. It serves the live version |
description | The one-line description |
files | The files of the newest version |
live_version | The version visitors see |
latest_version | The newest version, which may be an unpublished draft |
has_unpublished_changes | true when a draft newer than the live version is waiting for a person to publish it |
status | live, not_published (built but never published), unpublished (taken offline) or archived |
visibility | Who can view the published site. public means anyone with its address |
created_at, updated_at | When the site was created and last changed |
There is no paging; every site comes back in one response. A site that has been deleted isn’t listed.
Related skills: Read Site | Update Site | Rename Site