---
title: "Get a test type. Roles: admin, member."
method: GET
path: "/api/test-types/{testTypeId}"
tags: ["Tests"]
---

# Get a test type. Roles: admin, member.

`GET /api/test-types/{testTypeId}`

## Request

- Base URL: `https://api.mobilecoach.org` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mobilecoach.org/api/test-types/{testTypeId}`
- Auth: none declared

## Path parameters

- `testTypeId` integer, required

## Response `200`

OK

- TestTypeResponseTestTypeFull
  - `success` boolean
  - `error` string
  - `testType` TestTypeFull
    - `audit` Audit
      - `createdTime` string, date-time
      - `modifiedTime` string, date-time
      - `modifiedBy` string
    - `testTypeId` integer
    - `membershipId` integer
    - `code` string
    - `name` string
    - `description` string
    - `external` boolean
    - `testVariables` TestVariableCore[]
      - `audit` Audit
        - `createdTime` string, date-time
        - `modifiedTime` string, date-time
        - `modifiedBy` string
      - `testVariableId` integer
      - `uomId` integer
      - `code` string
      - `contextCode` 'STEP' | 'TEST'
      - `datatypeCode` 'BOOLEAN' | 'DATE' | 'DATETIME' | 'HTML' | 'NUMBER' | 'STRING' | 'TIME'
      - `required` boolean
      - `name` string
      - `abbr` string
      - `seq` integer
      - `numScale` integer
    - `stepVariables` TestVariableCore[]
      - `audit` Audit
        - `createdTime` string, date-time
        - `modifiedTime` string, date-time
        - `modifiedBy` string
      - `testVariableId` integer
      - `uomId` integer
      - `code` string
      - `contextCode` 'STEP' | 'TEST'
      - `datatypeCode` 'BOOLEAN' | 'DATE' | 'DATETIME' | 'HTML' | 'NUMBER' | 'STRING' | 'TIME'
      - `required` boolean
      - `name` string
      - `abbr` string
      - `seq` integer
      - `numScale` integer

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `500`: Internal server error

## Changes

- **2026-09-02** `870f28ba2607`: 5 info
  - added the optional property `error/errorId` to the response with the `400` status
  - added the optional property `error/errorId` to the response with the `401` status
  - added the optional property `error/errorId` to the response with the `403` status
  - added the optional property `error/errorId` to the response with the `404` status
  - …1 more

[Operation history](https://skmtc.dev/mobilecoach/apis/mobilecoach-api/changes/api/test-types/:testTypeId/get.md)

---

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