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

FieldDescription
successtrue
countHow many sites are listed
sitesThe sites, most recently updated first. Each is described below

Each site has:

FieldDescription
site_nameThe handle every other Web skill takes
display_nameThe name people see, set by Rename Site, or null when the site shows as its site_name
urlWhere the site is served. It serves the live version
descriptionThe one-line description
filesThe files of the newest version
live_versionThe version visitors see
latest_versionThe newest version, which may be an unpublished draft
has_unpublished_changestrue when a draft newer than the live version is waiting for a person to publish it
statuslive, not_published (built but never published), unpublished (taken offline) or archived
visibilityWho can view the published site. public means anyone with its address
created_at, updated_atWhen 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