---
title: "Exact per-day plan run counts for a workspace (fast Spanner aggregation)"
method: GET
path: "/planRuns/workspace/{workspace_id}/aggregate/daily"
tags: ["PlanRun"]
---

# Exact per-day plan run counts for a workspace (fast Spanner aggregation)

`GET /planRuns/workspace/{workspace_id}/aggregate/daily`

Returns exact passed/failed/total plan run counts per calendar day for a workspace window, computed by one Spanner query over terminal runs only. Ordered oldest first; only days with runs are included. Ad-hoc runs are excluded, matching aggregateWorkspacePlanRuns.

## Path parameters

- `workspace_id` string, required

## Query parameters

- `environment_id` string
- `application_id` string
- `min_created_time` integer, required
- `max_created_time` integer, required
- `day_offset_minutes` integer

## Response `200`

Exact per-day workspace plan run counts

- WorkspaceDailyRunCounts — Exact per-day run counts for a workspace window, ordered oldest first, only days with runs.
  - `days` WorkspaceDailyRunCountEntry[], required
    - `day` string, required — Calendar day, ISO date (YYYY-MM-DD).
    - `total_runs` integer, required
    - `passed_runs` integer, required
    - `failed_runs` integer, required

## Other responses

- `400` — Invalid or missing parameter
- `401` — User not authenticated
- `403` — User not authorized
- `default` — Unknown error

## Changes

- **2026-09-30** `598f76d12bd1` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/mabl/apis/mabl-api/changes/planRuns/workspace/:workspace_id/aggregate/daily/get.md)

---

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