---
title: "Get test run result by code"
method: GET
path: "/result/{code}/{hash}"
tags: ["results"]
---

# Get test run result by code

`GET /result/{code}/{hash}`

This method allows to retrieve a specific test run result by Hash.

## Path parameters

- `code` string, required
- `hash` string, required

## Response `200`

A test run result.

- ResultResponse
  - `status` boolean
  - `result` Result
    - `hash` string
    - `result_hash` string
    - `comment` string, nullable
    - `stacktrace` string, nullable
    - `run_id` integer
    - `case_id` integer
    - `steps` TestStepResult[], nullable
      - `status` integer — 1 - passed, 2 - failed, 3 - blocked, 5 - skipped, 7 - in_progress
      - `position` integer
      - `comment` string — Comment left for the step.
      - `start_time` integer, nullable — Unix timestamp of the step start time.
      - `end_time` integer, nullable — Unix timestamp of the step end time.
      - `duration_ms` integer, nullable — Step duration in milliseconds.
      - `attachments` Attachment[]
        - `size` integer
        - `mime` string
        - `filename` string
        - `url` string, uri
      - `steps` TestStepResult[] — Nested steps results will be here. The same structure is used for them.
    - `status` string
    - `is_api_result` boolean
    - `time_spent_ms` integer
    - `end_time` string, date-time, nullable
    - `attachments` Attachment[]
      - `size` integer
      - `mime` string
      - `filename` string
      - `url` string, uri

## Other responses

- `400` — Bad Request.
- `401` — Unauthorized.
- `403` — Forbidden.
- `404` — Not Found.
- `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)
