Skip to content
Anlyon
Esc
↑↓navigate↵open⌘Jpreview

List workflow runs

An unknown but well-formed workflow ID returns an empty page and never falls through to unfiltered results.

GET/api/v2/workflows/runs
Authorization
AuthorizationBearer token (Anlyon API key) · headerrequired

Workspace API key sent as Authorization: Bearer <key>.

or
better-auth.session_tokenAPI key · cookierequired

Browser session used by dashboard-only operations.

Query parameters
workflowIdstring
matches ^wfl_[A-Za-z0-9_-]{21}$
statusstring
Allowed:pendingrunningwaitingcompletedfailedcancelled
startDatestring<date-time>

Start date for filtering (ISO 8601 format)

endDatestring<date-time>

End date for filtering (ISO 8601 format)

pageinteger

Page number for pagination

min 1 · default: 1
limitinteger

Number of items per page

min 1 · max 100 · default: 20
Header parameters
X-Request-Idstring

Optional caller correlation ID. Unsafe or oversized values are replaced.

max length 128
Responses
200

Workflow runs returned with page pagination.

successbooleanrequired
Allowed:true
dataWorkflowRunSummary[]required
Show properties
Array of WorkflowRunSummary
runIdstringrequired
matches ^wfr_[A-Za-z0-9_-]{21}$
workflowIdstringrequired
matches ^wfl_[A-Za-z0-9_-]{21}$
workflowNamestringrequired
statusstringrequired
Allowed:pendingrunningwaitingcompletedfailedcancelled
currentStepIndexinteger | nullrequired
min 0
errorMessagestring | nullrequired
startedAtstring<date-time> | nullrequired
completedAtstring<date-time> | nullrequired
createdAtstring<date-time>required
paginationOffsetPaginationrequired
Show properties
totalintegerrequired
min 0
pageintegerrequired
min 1
limitintegerrequired
min 1
totalPagesintegerrequired
min 0
hasMorebooleanrequired
400

Bad Request - Invalid input data

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
401

Unauthorized - Invalid or missing API key

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
403

Authenticated credential lacks the required scope or workspace access.

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
429

Too Many Requests - Rate limit exceeded

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
Try it
Server
Authorization
Parameters
Request
curl -X GET 'https://api.anlyon.com/api/v2/workflows/runs' \
  -H 'Authorization: Bearer YOUR_TOKEN'
Response
{
  "success": true,
  "data": [
    {
      "runId": "string",
      "workflowId": "string",
      "workflowName": "string",
      "status": "pending",
      "currentStepIndex": 0,
      "errorMessage": "string",
      "startedAt": "2019-08-24T14:15:22Z",
      "completedAt": "2019-08-24T14:15:22Z",
      "createdAt": "2019-08-24T14:15:22Z"
    }
  ],
  "pagination": {
    "total": 0,
    "page": 1,
    "limit": 1,
    "totalPages": 0,
    "hasMore": true
  }
}