Get workflow statistics
Base URL
https://{kibana_url}
GET
/api/workflows/stats
GET
/s/{space_id} /api/workflows/stats
Auth
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.
Privileges
workflowsManagement:read. Extended privileges (optional, expand functionality when granted): workflowsManagement:managed:read, workflowsManagement:readExecution, workflowsManagement:managed:readExecution
Expand all
space_id
string
optional
An identifier for the space. If space_id is not provided in the URL, the default space is used. Refer to Spaces for more information.
200
Indicates a successful response
application/json
Thank you for your feedback.
Base URL
https://{kibana_url}
Examples
Request
Console
1 / 2 languages
‹
›
1
GET kbn://api/workflows/stats
1
2
3
curl \
-X GET "${KIBANA_URL}/api/workflows/stats" \
-H "Authorization: ApiKey ${API_KEY}"
Response
Example response with workflow counts and 30-day execution history
Show more
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
"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
}
}