---
title: "Get a specific test case"
method: GET
path: "/case/{code}/{id}"
tags: ["cases"]
---

# Get a specific test case

`GET /case/{code}/{id}`

This method allows to retrieve a specific test case.

## Path parameters

- `code` string, required
- `id` integer, required

## Query parameters

- `include` string

## Response `200`

A Test Case.

- TestCaseResponse
  - `status` boolean
  - `result` TestCase
    - `id` integer
    - `position` integer
    - `title` string
    - `description` string, nullable
    - `preconditions` string, nullable
    - `postconditions` string, nullable
    - `severity` integer
    - `priority` integer
    - `type` integer
    - `layer` integer
    - `is_flaky` integer
    - `behavior` integer
    - `automation` integer — Deprecated, use `isManual` and `isToBeAutomated` instead. Encodes the test case automation state as a single integer: `0` = manual, `1` = manual planned to be automated, `2` = automated.
    - `isManual` boolean — `true` if the case is manual, `false` if it is automated. Combined with `isToBeAutomated`, replaces the deprecated `automation` field.
    - `isToBeAutomated` boolean — `true` if a manual case is planned to be automated, `false` otherwise. Only meaningful when `isManual` is `true`; ignored when `isManual` is `false`.
    - `status` integer
    - `milestone_id` integer, nullable
    - `suite_id` integer, nullable
    - `custom_fields` CustomFieldValue[]
      - `id` integer
      - `value` string
    - `attachments` Attachment[]
      - `size` integer
      - `mime` string
      - `filename` string
      - `url` string, uri
    - `steps_type` 'classic' | 'gherkin', nullable
    - `steps` TestStep[]
      - `hash` string
      - `shared_step_hash` string, nullable
      - `shared_step_nested_hash` string, nullable
      - `position` integer
      - `action` string
      - `expected_result` string, nullable
      - `data` string, nullable
      - `attachments` Attachment[]
        - `size` integer
        - `mime` string
        - `filename` string
        - `url` string, uri
      - `steps` object[] — Nested steps will be here. The same structure is used for them.
    - `params` union — Deprecated, use `parameters` instead.
      - unknown[]
        - unknown
      - object
    - `parameters` object[]
      - `shared_id` string, uuid, nullable
      - `type` 'single', required
      - `item` 1, required — unresolved $ref
    - `tags` TagValue[]
      - `title` string
      - `internal_id` integer
    - `member_id` integer — Deprecated, use `author_id` instead.
    - `author_id` integer
    - `created_at` string, date-time
    - `updated_at` string, date-time
    - `deleted` string, nullable
    - `created` string — Deprecated, use the `created_at` property instead.
    - `updated` string — Deprecated, use the `updated_at` property instead.
    - `external_issues` object[]
      - `type` string
      - `issues` object[]
        - `id` string
        - `link` string

## Other responses

- `400` — Bad Request.
- `401` — Unauthorized.
- `403` — Forbidden.
- `404` — Not Found.
- `422` — Unprocessable Entity.
- `429` — Too Many Requests.

---

[API](https://skmtc.dev/qase/apis/qase-io-testops-api-v1.md) · [All operations](https://skmtc.dev/qase/apis/qase-io-testops-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/qase/qase-io-testops-api-v1/revisions/12ddc644fac5/schema)
