Skip to content

Get which of a site's cron jobs are running

GET /v1/sites/{siteId}/cron-status

Reads from the site's server which of its cron jobs are running now, and how each one's latest run went (without its output), with the server's time. Poll it to follow a run started with POST …/actions/run. The site must have finished installing and its server be running.

Scopes

The token needs this scope. Without it, the request is refused with insufficient_scope (see Scopes).

sites:read
View sites. See sites and their domains, CDN, firewall, malware protection, backups, staging, resources, SMTP and Media Offload. SMTP includes who each site's recent emails went to, their subjects, and the team's sign-in addresses.

Path parameters

FieldType and description
siteId Required

string

The site's id.

Example request

curl "https://api.rabbitflare.com/v1/sites/8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d/cron-status" \
  -H "Authorization: Bearer $RABBITFLARE_TOKEN"

Response

200 OK Returns the CronStatus object in data.

The CronStatus object's fields 16 fields
FieldType and description
checkedAt

string An ISO 8601 time, in UTC

The time on the site's server when it was asked (UTC, the time zone of every schedule).

jobs

array of objects

Every cron job of the site, in the order of their ids.

jobId

string

The cron job's id.

running

boolean

Whether it's running now.

lastRun

object or null

Its latest run, without the output (GET /sites/{siteId}/cron-jobs/{jobId}/runs has it). Null when it hasn't run yet.

Show its 11 fields
FieldType and description
id

string

The run's id. It stays the same for as long as the run is kept.

startedAt

string An ISO 8601 time, in UTC

When it started. For skipped runs folded together (repeats over 1), the latest of them.

finishedAt

string or null An ISO 8601 time, in UTC

When it ended. Null while it runs.

durationMs

integer or null

How long it took, in milliseconds. Null while it runs.

exitCode

integer or null

The exit code it ended with (0 is success). Null when it didn't start, was stopped, or still runs.

status

string

How it ended: success (exit code 0), failed (another exit code, or it couldn't start), timeout (stopped at the job's timeoutSeconds) or skipped (it didn't run: see reason).

Known values: successfailedtimeoutskipped More can appear.

trigger

string

What started it: schedule, or manual (run by hand, in the panel or with POST …/actions/run).

Known values: schedulemanual More can appear.

reason

string or null

Why it was skipped, stopped or couldn't start, in a sentence (for example, the previous run was still going). Null otherwise.

outputBytes

integer

The size of everything it printed, in bytes.

truncated

boolean

Whether only the end of its output is kept: the last 16 KB of a longer output.

repeats

integer

How many runs this entry stands for: skips in a row for the same reason are folded into one entry. 1 otherwise.

Example response

200 OK
{
  "data": {
    "checkedAt": "2026-11-19T10:42:17.000Z",
    "jobs": [
      {
        "jobId": "4c1d2e3f-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
        "running": false,
        "lastRun": {
          "id": "1795057200000-48213",
          "startedAt": "2026-11-19T03:00:00.000Z",
          "finishedAt": "2026-11-19T03:00:02.000Z",
          "durationMs": 2140,
          "exitCode": 0,
          "status": "success",
          "trigger": "schedule",
          "reason": null,
          "outputBytes": 40,
          "truncated": false,
          "repeats": 1
        }
      }
    ]
  }
}

Errors

The errors this request can answer besides those every request can (a missing token, a missing scope, the rate limits). Each answer is an Error object (see Errors).

Status and codeWhen, and what to do
403 trial_locked

The site's server is on the free trial: WordPress sign-in, the File Manager and Cron Jobs switch on once it's kept.

Keep the server in the control panel: they switch on by themselves.

404 not_found

The resource doesn't exist, or isn't this account's.

Check the id. Ids of other accounts' resources answer the same way.

409 site_unavailable

The site isn't in a state that allows this (for example, it's still installing).

Wait until the site is active, then try again.

409 server_unavailable

The server isn't in a state that allows this (for example, it's off or still being set up).

Start the server, or wait until it's active, then try again.

409 server_restoring

The server is being restored, and nothing else can change it or its sites until that's done.

Wait until the restore finishes (the server's pendingAction is null again), then try again. A restore that stopped partway keeps pendingAction: "restore", with the server's lastError set, until our team has checked the server.

502 server_unreachable

The server didn't answer, or didn't finish the request.

Check that the server is running, then try again in a minute.

Rate limit

Heavy requests: 20 a minute per token, 40 per account. More in Rate limits.

Added on .

Popular

API docs