hosting
GET /v1/sites/{siteId}/scheduled-tasks
List a site's scheduled tasks.
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}/scheduled-tasks \
-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's scheduled tasks (cron jobs): name, kind, what it runs, the schedule (UTC), whether it is on, and why it is paused if it is. Tasks managed here come first (source: panel); lines added to the crontab over SSH follow (source: crontab, read-only — they can be deleted here but are never rewritten by us). kinds lists what this site may run (wpcron only on WordPress, php not on a static site). limit_per_site/limit_per_org and used/used_in_org are the counts behind can_create; permitted is whether the plan includes scheduled tasks at all — "your plan does not include this" is not "you have used them all". Available on every hosting line whose site runs on our own servers. A task runs as the site's own user, inside its CageFS, from the site folder, and is stopped after 15 minutes. While the site is suspended its tasks are switched off on the server and come back when it is active again. Requires sites.view and sites.panel_access; 404 for a site not on our own servers.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
siteId (path) | Uuid | Yes | Site ID (UUIDv7). |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
data | SiteScheduledTask[] | Yes | — |
limit | VendorAllowance | Yes | The per-site ceiling, in the shape older clients read. |
permitted | boolean | Yes | Whether the plan includes scheduled tasks at all. |
can_create | boolean | Yes | permitted, and both the site and the account have room. |
used | integer | Yes | Managed tasks on this site. |
limit_per_site | integer | Yes | — |
limit_per_org | integer | Yes | — |
used_in_org | integer | Yes | — |
kinds | string<command, php, url, wpcron>[] | Yes | What this site may run. |
min_interval_minutes | integer | Yes | — |
Errors this endpoint can return
401 · 403 · 404 · 422 · 429 · 503