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

Get a workflow run

GET/api/v2/workflows/runs/{runId}
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.

Path parameters
runIdstringrequired

Public workflow-run identifier.

matches ^wfr_[A-Za-z0-9_-]{21}$
Header parameters
X-Request-Idstring

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

max length 128
Responses
200

Workflow run state returned.

successbooleanrequired
Allowed:true
dataWorkflowRunrequired
Show properties
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
initialPayloadany | nullrequired
resultany | nullrequired
nextStepAtstring<date-time> | nullrequired
waitingForEventstring | nullrequired
updatedAtstring<date-time>required
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
404

Not Found - Resource does not exist

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/string' \
  -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",
    "initialPayload": null,
    "result": null,
    "nextStepAt": "2019-08-24T14:15:22Z",
    "waitingForEvent": "string",
    "updatedAt": "2019-08-24T14:15:22Z"
  }
}