---
title: "Get execution stats for a flow"
method: GET
path: "/flows/{id}/stats"
tags: ["Flows"]
---

# Get execution stats for a flow

`GET /flows/{id}/stats`

## Request

- Base URL: `https://www.sociahive.com/api/v1`
- URL: `https://www.sociahive.com/api/v1/flows/{id}/stats`
- Auth: one of:
  - API key in header `X-API-Key`
  - OAuth 2 (authorization code, authorization URL `/api/oauth/authorize`, token URL `/api/oauth/token`, scopes: `flows:read`)

## Path parameters

- `id` string, required: MongoDB ObjectId (24-character hex string)

## Response `200`

Flow stats

- FlowStats: Bare (un-enveloped) body returned by GET /flows/{id}/stats.
  - `total_triggers` number, required
  - `total_button_clicks` number, required
  - `unique_users` number, required
  - `status_breakdown` object, required
    - `active` number, required
    - `completed` number, required
    - `error` number, required
    - `abandoned` number, required
    - `waiting` number, required
  - `daily_timeline` object[], required
    - `date` string, required
    - `triggers` number, required

## Other responses

- `400`: Bad request — invalid parameters
- `401`: Authentication required — provide X-API-Key or Bearer token
- `403`: Insufficient scope for this operation
- `429`: Rate limit exceeded
- `500`: Internal server error

---

[API](https://skmtc.dev/sociahive/apis/sociahive-api.md) · [All operations](https://skmtc.dev/sociahive/apis/sociahive-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sociahive/apis/sociahive-api/revisions/791b8548d288?raw)
