---
type: api
title: Get workflow executions
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana-serverless/operation/operation-get-workflows-workflow-workflowid-executions
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana-serverless/operation/operation-get-workflows-workflow-workflowid-executions
products:
  - Kibana
---

# Get workflow executions

Availability:

- Server: `https://{kibana_url}`

## Paths

- `GET` `/api/workflows/workflow/{workflowId}/executions`
- `GET` `/s/{space_id}/api/workflows/workflow/{workflowId}/executions`

- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/kibana-serverless/authentication#apikeyauth)

#### Path Parameters

- `workflowId` (string · max: 255)
  Workflow ID

## Description

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

Retrieve a paginated list of executions for a specific workflow.<br/><br/>[Required authorization] Route required privileges: workflowsManagement:read AND workflowsManagement:readExecution. Extended privileges (optional, expand functionality when granted): workflowsManagement:managed:readExecution.

## Query String Parameters

- `statuses` ([] enum  · max: 11)
  Filter by execution status.
  Values: `pending`, `waiting`, `waiting_for_input`, `waiting_for_child`, `running`, `queued`, `completed`, `failed`, `cancelled`, `timed_out`, `skipped`
- `executionTypes` ([] enum  · max: 2)
  Filter by execution type.
  Values: `test`, `production`
- `executedBy` ([] string · max: 100)
  Filter by the user who triggered the execution.
- `concurrencyGroupKey` (string)
  Filter by evaluated concurrency group key.
- `omitStepRuns` (boolean)
  Whether to exclude step-level execution data.
- `finishedAfter` (string)
  Datemath lower bound for filtering executions by finishedAt (inclusive when parsed).
- `finishedBefore` (string)
  Datemath upper bound for filtering executions by finishedAt (inclusive when parsed with roundUp).
- `collapse` (enum)
  Field to collapse execution results by.
  Values: `concurrencyGroupKey`, `status`, `executedBy`, `triggeredBy`
- `sortField` (enum)
  Field to sort executions by.
  Values: `createdAt`, `finishedAt`
- `sortOrder` (enum)
  Sort order.
  Values: `asc`, `desc`
- `page` (number · min: 1)
  Page number.
- `size` (number · min: 1 · max: 100)
  Number of results per page.
- `searchAfter` (string · max: 4096)
  JSON-encoded search_after sort values from a prior response for cursor pagination.
- `startedAfter` (string)
  Datemath lower bound for filtering executions by startedAt (inclusive when parsed).
- `startedBefore` (string)
  Datemath upper bound for filtering executions by startedAt (inclusive when parsed with roundUp).

## Response

Indicates a successful response

## Code Examples

#### Console

```console
GET kbn://api/workflows/workflow/{workflowId}/executions?page=1&size=20&startedAfter=now-1d&startedBefore=now
```

#### curl

```curl
curl \
  -X GET "${KIBANA_URL}/api/workflows/workflow/{workflowId}/executions?page=1&size=20" \
  -H "Authorization: ApiKey ${API_KEY}"
```

## Response Examples

#### Get workflow executions response

Example response returning a paginated list of executions for a workflow

```json
{
  "page": 1,
  "results": [
    {
      "duration": 3000,
      "error": "null",
      "executedBy": "elastic",
      "finishedAt": "2025-11-20T12:00:03.000Z",
      "id": "exec-001",
      "isTestRun": false,
      "spaceId": "default",
      "startedAt": "2025-11-20T12:00:00.000Z",
      "status": "completed",
      "triggeredBy": "manual",
      "workflowId": "workflow-a1b2c3d4-e5f6-7890-abcd-ef1234567890"
    },
    {
      "duration": 2000,
      "error": {
        "message": "Step \u0027hello_world_step\u0027 failed"
      },
      "executedBy": "elastic",
      "finishedAt": "2025-11-20T13:00:02.000Z",
      "id": "exec-002",
      "isTestRun": false,
      "spaceId": "default",
      "startedAt": "2025-11-20T13:00:00.000Z",
      "status": "failed",
      "triggeredBy": "manual",
      "workflowId": "workflow-a1b2c3d4-e5f6-7890-abcd-ef1234567890"
    }
  ],
  "size": 20,
  "total": 2
}
```

