---
title: "Query test authoring metrics across all workspaces in account"
method: POST
path: "/accounts/{account_id}/reports/testAuthoringMetrics"
tags: ["Report"]
---

# Query test authoring metrics across all workspaces in account

`POST /accounts/{account_id}/reports/testAuthoringMetrics`

Retrieve aggregated test authoring metrics (new/updated test counts) across all workspaces in an account over a time range. Only accessible by company admins.

## Path parameters

- `account_id` string, required

## Query parameters

- `timezone` string
- `workspace_id` string

## Request body

- TestSuiteFilterOptions
  - `application_ids` string[] — Application IDs to filter by
  - `environment_ids` string[] — Environment IDs to filter by
  - `triggering_resource_ids` string[] — Triggering resource IDs to filter by
  - `test_name` string — Test name to filter by (partial match)
  - `test_type` 'api' | 'browser' | 'performance' | 'mobile' — Type of test
  - `browser` string — The browser for the run
  - `execution_source` 'mabl_cloud' | 'external' | 'mabl_local' | 'mabl_agent' — Where the test lives
  - `mobile_platform` 'android' | 'ios' — The mobile platform associated with this object
  - `test_labels` string[] — Test labels to filter by
  - `plan_labels` string[] — Plan labels to filter by
  - `start_time` integer — The start time of the time period
  - `end_time` integer — The end time of the time period

## Response `200`

Account test authoring metrics across all workspaces

- AccountTestAuthoringMetricsResult — Test authoring metrics across all workspaces in an account
  - `account_id` string — The account ID
  - `from_time` integer — Start of the query time range in epoch milliseconds
  - `to_time` integer — End of the query time range in epoch milliseconds
  - `aggregated` TestAuthoringMetricsResult — Result of querying test authoring metrics for a workspace
    - `workspace_id` string — The workspace ID
    - `start_time` integer — Start of the query time range in epoch milliseconds
    - `end_time` integer — End of the query time range in epoch milliseconds
    - `test_authoring_metrics_over_time` TestAuthoringMetricsOverTime[] — Daily breakdown of test authoring metrics
      - `start_time` integer — Start of the time bucket in epoch milliseconds
      - `end_time` integer — End of the time bucket in epoch milliseconds
      - `new_test_count` integer — Number of new tests created in this time bucket
      - `updated_test_count` integer — Number of existing tests updated in this time bucket
    - `totals` TestAuthoringMetricsTotals — Aggregate totals for test authoring metrics
      - `new_test_count` integer — Total number of new tests created
      - `updated_test_count` integer — Total number of existing tests updated
    - `by_test_type` TestAuthoringMetricsByTestType[] — Breakdown of metrics by test type (only included when test_type filter is not applied)
      - `test_type` 'api' | 'browser' | 'performance' | 'mobile' — Type of test
      - `new_test_count` integer — Number of new tests of this type
      - `updated_test_count` integer — Number of updated tests of this type
  - `by_workspace` WorkspaceTestAuthoringMetrics[] — Per-workspace breakdown of test authoring metrics
    - `workspace_id` string — The workspace ID
    - `workspace_name` string — The workspace name
    - `metrics` TestAuthoringMetricsResult — Result of querying test authoring metrics for a workspace
      - `workspace_id` string — The workspace ID
      - `start_time` integer — Start of the query time range in epoch milliseconds
      - `end_time` integer — End of the query time range in epoch milliseconds
      - `test_authoring_metrics_over_time` TestAuthoringMetricsOverTime[] — Daily breakdown of test authoring metrics
        - `start_time` integer — Start of the time bucket in epoch milliseconds
        - `end_time` integer — End of the time bucket in epoch milliseconds
        - `new_test_count` integer — Number of new tests created in this time bucket
        - `updated_test_count` integer — Number of existing tests updated in this time bucket
      - `totals` TestAuthoringMetricsTotals — Aggregate totals for test authoring metrics
        - `new_test_count` integer — Total number of new tests created
        - `updated_test_count` integer — Total number of existing tests updated
      - `by_test_type` TestAuthoringMetricsByTestType[] — Breakdown of metrics by test type (only included when test_type filter is not applied)
        - `test_type` 'api' | 'browser' | 'performance' | 'mobile' — Type of test
        - `new_test_count` integer — Number of new tests of this type
        - `updated_test_count` integer — Number of updated tests of this type

## Other responses

- `400` — Invalid or missing parameter
- `401` — User not authenticated
- `403` — User not authorized (not a company admin)
- `default` — Unexpected error

---

[API](https://skmtc.net/mabl/apis/mabl-api.md) · [All operations](https://skmtc.net/mabl/apis/mabl-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mabl/mabl-api/revisions/d0fc0114da66/schema)
