hosting

GET /v1/sites/{siteId}/cleaner

Read a site's Site Cleaner state.

All hosting endpoints

All developer docs →

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}/cleaner \
  -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

The Site Cleaner (site_cleaner, s1014 B01, docs/1081 §7) for this site: whether the add-on is on sale to the organisation and active on the account (one subscription cleans every website), its prices in the caller's currency (site_cleaner monthly, site_cleaner_yearly yearly), the scheduled clean, the latest scan (the free preview, with every item that could go), the job in flight and the recent jobs. supported is false for a site not hosted on our own servers or not online. Buy it through purchaseExtra. Requires sites.view.

Parameters

NameTypeRequiredWhat it is
siteId (path)UuidYesSite ID (UUIDv7).

Response

NameTypeRequiredWhat it is
site_idstringYes—
offeredbooleanYesWhether the add-on is on sale to this organisation.
activebooleanYesWhether the account holds it and may clean now.
supportedbooleanYes—
unsupported_reasonstringNo—
can_buybooleanYes—
refusalstringNo—
pricesobject[]Yes—
purchase_idstringNo—
renews_onstringNo—
ends_onstringNo—
schedulestring<off, daily, weekly, monthly>Yes—
next_run_atstringNo—
skipstring[]Yes—
last_scanSiteCleanerJobNo—
in_flightSiteCleanerJobNo—
jobsSiteCleanerJob[]Yes—

Errors this endpoint can return

401 · 403 · 404 · 429