---
type: api
title: Get workflow statistics
description: Retrieve summary statistics about workflows, including total, enabled, and disabled counts; execution history metrics for the last 30 days are included only when the caller has execution read privilege.<br/><br/>[Required authorization] Route required privileges: workflowsManagement:read. Extended privileges (optional, expand functionality when granted): workflowsManagement:managed:read, workflowsManagement:readExecution, workflowsManagement:managed:readExecution.
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v0/operation/operation-get-workflows-stats
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v0/operation/operation-get-workflows-stats
products:
  - Kibana
---

# Get workflow statistics

Availability: Generally available since 9.4

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

## Paths

- `GET` `/api/workflows/stats`

## Description

Retrieve summary statistics about workflows, including total, enabled, and disabled counts; execution history metrics for the last 30 days are included only when the caller has execution read privilege.

## Required authorization

- Privileges: `workflowsManagement:read. Extended privileges (optional, expand functionality when granted): workflowsManagement:managed:read, workflowsManagement:readExecution, workflowsManagement:managed:readExecution`

## Authentication

- Api key: `Authorization: <value>`
  These APIs use key-based authentication. You must create an API key and use the encoded value in the request header. For example: `Authorization: ApiKey base64AccessApiKey`
- Basic: `Authorization: Basic <credentials>`

## Response

Indicates a successful response

`application/json`

## Code examples

#### Console

```console
GET kbn://api/workflows/stats
```

#### curl

```curl
curl \
  -X GET "${KIBANA_URL}/api/workflows/stats" \
  -H "Authorization: ApiKey ${API_KEY}"
```

## Response examples

#### Get stats response

Example response with workflow counts and 30-day execution history

```json
{
  "executions": [
    {
      "cancelled": 1,
      "completed": 45,
      "date": "2025-11-20",
      "failed": 2,
      "timestamp": "2025-11-20T00:00:00.000Z"
    },
    {
      "cancelled": 0,
      "completed": 50,
      "date": "2025-11-21",
      "failed": 0,
      "timestamp": "2025-11-21T00:00:00.000Z"
    }
  ],
  "workflows": {
    "disabled": 3,
    "enabled": 12
  }
}
```

