hosting

GET /v1/sites/{siteId}/scheduled-tasks/{taskId}/runs

List a scheduled task's last runs and their output.

All hosting endpoints

All developer docs →

Authentication

Send an API key as a bearer token. The endpoint checks sites.panel_access, sites.view; 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/{taskId}/runs \
  -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

Newest first, at most 20 (the server keeps 20 per task). status: ok, failed (non-zero exit code), timeout (stopped at 15 minutes), skipped (the previous run was still going) or running. trigger: schedule or manual. output keeps the first 1,000 and last 7,000 bytes of a long output. Read from the server on request, never cached.

Parameters

NameTypeRequiredWhat it is
siteId (path)UuidYesSite ID (UUIDv7).
taskId (path)stringYesThe task's id from listSiteScheduledTasks: a UUID for a task managed here, or a 16-character id for a line added to the crontab over SSH.
limit (query)integerNo—

Response

NameTypeRequiredWhat it is
dataSiteScheduledTaskRun[]Yes—

Errors this endpoint can return

401 · 403 · 404 · 422 · 429 · 503