hosting
GET /v1/sites/{siteId}/wordpress/site-health
Run WordPress's own Site Health tests on a site.
Authentication
Send an API key as a bearer token. The key must carry the sites.view permission; a key without it is refused with 403, not 404.
This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.
Try it
Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.
curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/wordpress/site-health \
-H "Authorization: Bearer zdk_live_…"Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console
Details
Runs the tests WordPress shows under Tools > Site Health, on the site, and returns each result as critical, recommended or good, critical first. Every direct test runs, plus the async tests WordPress can run server-side, except loopback_requests and page_cache (both call the site over HTTP with long timeouts); those are named in skipped. A test that threw or returned nothing is named in failed, never dropped, so a partial run never reads as a clean one. Tests a plugin adds are not included (the site's plugins are not loaded for platform reads). Labels and descriptions are WordPress's own words, as plain text (HTML stripped on the site), in the viewer's locale when that language pack is installed on the site, otherwise in the site's language. 422 when the site gave no readable answer or its WordPress predates Site Health (5.2). Requires sites.view.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
siteId (path) | Uuid | Yes | Site ID (UUIDv7). |
locale (query) | string | No | The viewer's locale tag (de, pt-BR). Anything else is ignored. |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
tests | SiteWordPressSiteHealthTest[] | Yes | — |
counts | object | Yes | — |
skipped | string[] | Yes | Tests WordPress offers that this run did not perform. |
failed | string[] | Yes | Tests that threw or returned no result. |
Errors this endpoint can return
401 · 403 · 404 · 422 · 429 · 503