---
title: "Retrieve test authoring metrics over time for a workspace"
method: GET
path: "/reports/test-authoring-metrics"
tags: ["Report"]
---

# Retrieve test authoring metrics over time for a workspace

`GET /reports/test-authoring-metrics`

Returns daily counts of new and updated tests within the specified time range

## Query parameters

- `workspace_id` string, required
- `start_time` integer, required
- `end_time` integer, required
- `timezone` string
- `application_ids` string[]
- `test_name` string
- `test_labels` string[]
- `plan_labels` string[]
- `test_type` 'api' | 'browser' | 'performance' | 'mobile' — Type of test

## Response `200`

Test authoring metrics for the specified time range

- 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
- `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)
