---
title: "Get aggregate workflow statistics"
method: GET
path: "/v1/workflows/stats"
tags: ["Stats"]
---

# Get aggregate workflow statistics

`GET /v1/workflows/stats`

## Request

- Base URL: `https://api.paymongo.com`
- URL: `https://api.paymongo.com/v1/workflows/stats`
- Auth: HTTP basic

Returns aggregate counts for active workflows, configured triggers, and execution totals. Superuser only; may be scoped to a specific organization via the organization_id query param.

## Query parameters

- `organization_id` string

## Response `200`

Aggregate statistics

- GetStatsResponse
  - `data` StatsResponseDTO
    - `completed_executions` integer
    - `success_rate` number
    - `total_executions` integer
    - `triggers_configured` integer
    - `workflows_active` integer

## Other responses

- `400`: invalid_query_parameters when organization_id is not valid UTF-8 text or carries a NUL byte
- `401`: authentication_failed, missing_authorization_header, unsupported_auth_method or jwt_signature_invalid when the credential is missing, malformed or rejected; accountid_identity_required when a superuser or service-to-service caller sends the Account-ID header
- `403`: Forbidden
- `500`: Internal Server Error
- `502`: accountid_relationship_lookup_failed or accountid_account_lookup_failed when an upstream service does not answer
- `503`: upstream_unavailable when an upstream service does not answer
- `504`: service_timeout when the request exceeds its deadline

---

[API](https://skmtc.dev/paymongo/apis/workflow.md) - [All operations](https://skmtc.dev/paymongo/apis/workflow/llms.txt) - [OpenAPI document](https://skmtc.dev/paymongo/apis/workflow/revisions/859719cfffa2?raw)
