Skip to navigation

List websites

View as MarkdownOpen in Claude

Returns the websites your token can reach, ordered by name unless you sort otherwise. Use it to find websites by team, tag, connection state, WordPress or PHP version, or name, and to read the details of many websites at once.

A plain listing leaves out some attributes because they cost more to compute; ask for them with fields[sites]. To find out which websites are covered by Patch & Protect, filter with filter[patchstack] or read has_patchstack.

Authentication

AuthorizationBearer

Personal access token created in the Modular DS dashboard; read-only tokens can only call GET endpoints.

Query parameters

page[number]stringOptional
Page to return, starting at 1. Default 1.
page[size]stringOptional
Number of websites per page, 1 to 50. Default 15.
sortstringOptional

Sort order: name (default, ascending), created_at, is_favorite (starred websites first with -is_favorite), updatable_items_count or vulnerable_items_count. Prefix with - for descending.

includestringOptional

Related records to embed, comma-separated: team, tags, site_preset_backup, site_preset_uptime, site_preset_malware_scan, site_preset_broken_link, site_preset_patchstack. The last five embed the settings the website uses for backups, Uptime Monitor, Malware Scanner, Broken Links Checker and Patch & Protect.

fields[sites]stringOptional

Attributes to return, comma-separated; only those are returned. These computed attributes are left out unless you name them: note (the private note), is_favorite, updatable_items_count, vulnerable_items_count and has_patchstack (whether Patch & Protect is switched on for the website).

filter[s]stringOptional

Free-text search on the website's name, slug or address.

filter[team][]stringOptional
Team ids. Several values match websites in any of these teams.
filter[tags][]stringOptional
Tag ids. Several values match websites carrying any of these tags.
filter[connected]stringOptional

1 for websites whose connection works, 0 for websites that are not connected.

filter[patchstack]stringOptional

1 for websites with Patch & Protect switched on, 0 for websites without it.

filter[core_version][]stringOptional

Exact WordPress versions, for example 6.8.1. Several values match any of them.

filter[engine_version][]stringOptional

Exact PHP versions, for example 8.2.27. Several values match any of them.

filter[alerts][]stringOptional
Notification configuration ids. Several values match websites associated with any of them.
filter[id][]stringOptional
Website ids. Several values match any of them.

Response

200 - websites

datalist of objectsOptional
jsonapiobjectOptional
metaobjectOptional

Errors

403
Forbidden Error