---
title: "Count tests in a workspace, optionally scoped to an application."
method: GET
path: "/test/count"
tags: ["Test"]
---

# Count tests in a workspace, optionally scoped to an application.

`GET /test/count`

Returns the count of active (non-tombstoned) tests in the workspace. When
`application_id` is provided, the count is scoped to that application.

## Query parameters

- `workspace_id` string, required
- `application_id` string

## Response `200`

Counts for the workspace (and optionally the application scope).

- TestCounts
  - `test_count` integer — The total number of tests in the workspace
  - `default_test_count` integer — Deprecated: use test_count instead
  - `non_default_test_count` integer — Deprecated: use test_count instead

## Other responses

- `400` — Invalid or missing parameter
- `401` — User not authenticated
- `403` — User not authorized
- `default` — Unknown 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)
