---
title: "GET /v1/executions/stats"
method: GET
path: "/v1/executions/stats"
---

# GET /v1/executions/stats

`GET /v1/executions/stats`

Get external execution stats for an organization

## Query parameters

- `from` integer, required
- `to` integer, required
- `granularity` string, required

## Response `200`

OK

- GetExecutionStatsSuccessResponse
  - `code` integer
  - `data` ExecutionStatsData
    - `granularity` string
    - `recentFailures` RecentExecutionFailure[]
      - `createdAt` string
      - `executionId` string
      - `finishedAt` string
      - `runId` string
      - `sourceSystem` string
      - `status` 'awaiting_payment' | 'payment_confirmed' | 'workflow_queued' | 'workflow_running' | 'workflow_waiting' | 'workflow_succeeded' | 'workflow_partial' | 'workflow_failed' | 'workflow_cancelled'
      - `statusReason` string
      - `workflowId` string
    - `sourceSystems` ExecutionSourceSystemStat[]
      - `cancelled` integer
      - `failed` integer
      - `partial` integer
      - `sourceSystem` string
      - `succeeded` integer
      - `total` integer
    - `statuses` ExecutionStatusCount[]
      - `count` integer
      - `status` 'awaiting_payment' | 'payment_confirmed' | 'workflow_queued' | 'workflow_running' | 'workflow_waiting' | 'workflow_succeeded' | 'workflow_partial' | 'workflow_failed' | 'workflow_cancelled'
    - `summary` ExecutionStatsSummary
      - `averageDurationMs` number
      - `cancelled` integer
      - `failed` integer
      - `inProgress` integer
      - `partial` integer
      - `succeeded` integer
      - `successRate` number
      - `terminal` integer
      - `total` integer
    - `timeSeries` ExecutionTimeSeriesPoint[]
      - `bucketStart` string
      - `cancelled` integer
      - `failed` integer
      - `partial` integer
      - `succeeded` integer
      - `total` integer
  - `message` string
  - `requestId` string

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

---

[API](https://skmtc.dev/b3os/apis/b3os-workflow-api.md) · [All operations](https://skmtc.dev/b3os/apis/b3os-workflow-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/b3os/b3os-workflow-api/revisions/a8c7af3c66a1/schema)
