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

# Get workflow step executions

Availability: 9.4+

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

## Paths

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

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

#### 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 step-level execution records for a specific workflow. Optionally filter by step ID and include input or output data.<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

- `stepId` (string)
  Filter by step ID.
- `includeInput` (boolean)
  Include step input data.
- `includeOutput` (boolean)
  Include step output data.
- `page` (number · min: 1)
  Page number for pagination.
- `size` (number · min: 1 · max: 100)
  Number of results per page.
- `startedAfter` (string)
  Datemath lower bound for filtering step executions by startedAt (inclusive when parsed).
- `startedBefore` (string)
  Datemath upper bound for filtering step executions by startedAt (inclusive when parsed with roundUp).

## Response

Indicates a successful response

## Code Examples

#### Console

```console
GET kbn://api/workflows/workflow/{workflowId}/executions/steps?includeInput=true
```

#### curl

```curl
curl \
  -X GET "${KIBANA_URL}/api/workflows/workflow/{workflowId}/executions/steps?includeInput=true" \
  -H "Authorization: ApiKey ${API_KEY}"
```

## Response Examples

#### Get workflow step executions response

Example response returning step execution records for a workflow. The second entry shows a Human-In-The-Loop `wait_for_input` step that has been responded to: the `hitl` envelope is populated synchronously by the inbox respond path so every reader (Kibana Inbox UI, Slack, Agent Builder, raw API/MCP) sees a single canonical responder for the step.

```json
{
  "results": [
    {
      "executionTimeMs": 1000,
      "finishedAt": "2025-11-20T12:00:02.000Z",
      "globalExecutionIndex": 0,
      "id": "step-exec-001",
      "input": {
        "message": "hello world"
      },
      "isTestRun": false,
      "scopeStack": [],
      "spaceId": "default",
      "startedAt": "2025-11-20T12:00:01.000Z",
      "status": "completed",
      "stepExecutionIndex": 0,
      "stepId": "hello_world_step",
      "stepType": "console",
      "topologicalIndex": 0,
      "workflowId": "workflow-a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "workflowRunId": "exec-001"
    },
    {
      "executionTimeMs": 329000,
      "finishedAt": "2025-11-20T12:05:31.000Z",
      "globalExecutionIndex": 1,
      "hitl": {
        "channel": "kibana-ui",
        "respondedAt": "2025-11-20T12:05:29.000Z",
        "respondedBy": "alice"
      },
      "id": "step-exec-002",
      "input": {
        "message": "Approve change to production?"
      },
      "isTestRun": false,
      "output": {
        "respondedBy": "alice",
        "response": {
          "approved": true
        }
      },
      "scopeStack": [],
      "spaceId": "default",
      "startedAt": "2025-11-20T12:00:02.000Z",
      "status": "completed",
      "stepExecutionIndex": 0,
      "stepId": "approve_change",
      "stepType": "wait_for_input",
      "topologicalIndex": 1,
      "workflowId": "workflow-a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "workflowRunId": "exec-001"
    }
  ],
  "total": 2
}
```

