---
title: "Get TestDefinition by ID"
method: GET
path: "/api/v3/test-definition/{test_definition_id}"
tags: ["Test Definition"]
---

# Get TestDefinition by ID

`GET /api/v3/test-definition/{test_definition_id}`

## Request

- Base URL: `https://{tenant_name}.benchling.com`
- URL: `https://{tenant_name}.benchling.com/api/v3/test-definition/{test_definition_id}`
- Auth: HTTP bearer

Get a single TestDefinition by ID.

## Path parameters

- `test_definition_id` string, required

## Query parameters

- `returning` string[]
- `omit` string[]

## Headers

- `EARLY-ACCESS` string

## Response `200`

OK

- TestDefinition: A Test Definition is a configuration object that specifies a type of test or assay that can be ordered against samples. Each Test Definition is associated with a `ResultSchema` that defines the structure of measurement data captured when the test is performed. Test Definitions serve as templates—when a test needs to be performed on a sample, a `TestOrder` is created referencing the appropriate Test Definition. Test Definitions are used within clinical and preclinical study workflows (see `StudySampleTestPlan`) and can be linked to `Procedure` assays for execution. Belongs to an `Organization` and can be archived when no longer needed.
  - `__typename` string
  - `archiveReason` string, nullable
  - `archived` boolean
  - `createdAt` string, datetime: Timestamp of when the test definition was created.
  - `creator` PrincipalRef
    - `__typename` string
    - `id` string, api_id
  - `description` string: The description of the test definition. Empty strings are allowed.
  - `id` string: The ID of the test definition.
  - `modifiedAt` string, datetime: Timestamp of when the test definition was last modified.
  - `name` string: The name of the test definition.
  - `organization` OrganizationRef
    - `__typename` string
    - `id` string, api_id
  - `resultSchema` ResultSchemaRef
    - `__typename` string
    - `id` string, api_id

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `429`: Too Many Requests
- `500`: Internal Server Error

---

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