List site statuses
const url = 'https://example.com/wp-json/wp2/site-manager/v1/statuses';const options = {method: 'GET', headers: {'X-WP-Nonce': '<X-WP-Nonce>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/wp-json/wp2/site-manager/v1/statuses \ --header 'X-WP-Nonce: <X-WP-Nonce>'Site Manager status taxonomy catalog (hide_empty=false). Not the WP_Site->public flag. Requires manage_network or manage_options.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Array of StatusDto (id, name, slug).
object
Site Manager status term_id (not WP_Site->public and not a post status).
Status display name. The list may rewrite default labels.
Status term slug (sanitize_title on write).
Example
[ { "id": 12, "name": "In progress", "slug": "in-progress" }]Not authenticated. DualRest: rest_forbidden (status 401) when there is no cookie session. Cookie + X-WP-Nonce or Application Password.
object
Machine-readable error or event code.
Message text (log, PIN, or password reset).
Extra WP_Error or license payload.
object
Examplegenerated
{ "code": "example", "message": "example", "data": {}}Missing manage_network/manage_options or invalid REST nonce.
object
Machine-readable error or event code.
Message text (log, PIN, or password reset).
Extra WP_Error or license payload.
object
Examplegenerated
{ "code": "example", "message": "example", "data": {}}