GET /api/workflows/stats

Spaces method and path for this operation:

get /s/{space_id}/api/workflows/stats

Refer to Spaces for more information.

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] Route required privileges: workflowsManagement:read OR workflowsManagement:readExecution.

Responses

  • 200 application/json

    Indicates a successful response

GET /api/workflows/stats
curl \
  -X GET "${KIBANA_URL}/api/workflows/stats" \
  -H "Authorization: ApiKey ${API_KEY}"
GET kbn://api/workflows/stats
Response examples (200)
Example response with workflow counts and 30-day execution history
{
  "workflows": {
    "enabled": 12,
    "disabled": 3
  },
  "executions": [
    {
      "date": "2025-11-20",
      "failed": 2,
      "cancelled": 1,
      "completed": 45,
      "timestamp": "2025-11-20T00:00:00.000Z"
    },
    {
      "date": "2025-11-21",
      "failed": 0,
      "cancelled": 0,
      "completed": 50,
      "timestamp": "2025-11-21T00:00:00.000Z"
    }
  ]
}