Skip to main content
GET
/
v1
/
regions
/
global
/
workflows
/
{id}
/
runs
List workflow runs
const options = {method: 'GET'};

fetch('https://api.example.com/v1/regions/global/workflows/{id}/runs', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "success": true,
  "data": [
    {
      "id": "<string>",
      "workflowId": "<string>",
      "status": "pending",
      "createdAt": "2023-11-07T05:31:56Z",
      "triggeredBy": "<string>",
      "inputs": {},
      "outputs": {},
      "startedAt": "2023-11-07T05:31:56Z",
      "completedAt": "2023-11-07T05:31:56Z",
      "duration": 123
    }
  ],
  "meta": {
    "total": 123,
    "limit": 123,
    "offset": 123
  }
}

Path Parameters

id
string
required

Workflow identifier

Query Parameters

status
enum<string>

Filter by run status

Available options:
pending,
running,
succeeded,
failed,
cancelled
limit
number
default:50

Maximum number of results

offset
number
default:0

Number of results to skip

Response

200 - application/json

List of workflow runs

success
enum<boolean>
Available options:
true
data
object[]
meta
object