GoRunner docs
Search or askSearch⌘K

Count a workflow’s waiting runs

Since v2026.10.6

GET/api/workflows/{id}/runs/waiting

Counts a workflow’s runs waiting in line that haven’t started.

Needs an API token with the Read permission for runs (run:read).

Parameters

Path

idRequired · UUID

The workflow’s ID.

Before you unpublish

Unpublishing leaves waiting runs in line. Ask this first, and offer to cancel them too.

Responses

  • 200OK

    The count: exactly what Cancel waiting runs would cancel now.

  • id isn’t a UUID.

  • The token lacks the Read permission for runs.

  • No workflow with this ID in the token’s workspace.

  • The count failed. Try again.

Any call can also answer: 401 UNAUTHORIZED · 401 TOKEN_ENDED · 403 TOKEN_SURFACE_OFF · 403 FEATURE_OFF · 403 EMBED_NOT_ALLOWED · 403 EMBED_NOT_AVAILABLE · 403 ACCOUNT_SUSPENDED · 429 RATE_LIMITED · 503 BUSY · 503 PAUSED · 503 SERVICE_UNAVAILABLE. See Errors.

Request

GORUNNER="https://api.gorunner.io"
GORUNNER_TOKEN="grt_…"  # needs Read for runs
WORKFLOW_ID="your-workflow-id"

curl "$GORUNNER/api/workflows/$WORKFLOW_ID/runs/waiting" \
  -H "Authorization: Bearer $GORUNNER_TOKEN"

Response · 200 OK

json
{
  "data": {
    "waiting": 5
  }
}
Every field

It takes no body.

Response · 200 OK

dataobject
waitinginteger

Runs waiting in the line that have not started.