---
title: "Get test invariant IDs for a workspace scoped to an application."
method: GET
path: "/test/references/by-application"
tags: ["Test"]
---

# Get test invariant IDs for a workspace scoped to an application.

`GET /test/references/by-application`

Returns the full set of canonical application-associated test invariant IDs using
the same four-leg association logic as semantic search (plan-based, training-app,
run-history, and unassociated fallback). The caller intersects the returned IDs
with its locally-loaded test list to apply the application filter.

Requires `application_id`; use `GET /test/count` for workspace-wide counts.

## Query parameters

- `workspace_id` string, required
- `application_id` string, required
- `limit` integer
- `cursor` string

## Response `200`

The set of test invariant IDs associated with the application.

- TestsByApplicationResult
  - `test_invariant_ids` string[], required — The set of test invariant IDs associated with the given application.
  - `cursor` string — Pagination cursor.

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