---
title: "Get all defects"
method: GET
path: "/defect/{code}"
tags: ["defects"]
---

# Get all defects

`GET /defect/{code}`

This method allows to retrieve all defects stored in selected project.

## Path parameters

- `code` string, required

## Query parameters

- `status` 'open' | 'resolved' | 'in_progress' | 'invalid'
- `limit` integer
- `offset` integer

## Response `200`

A list of all defects.

- DefectListResponse
  - `status` boolean
  - `result` object
    - `total` integer
    - `filtered` integer
    - `count` integer
    - `entities` Defect[]
      - `id` integer
      - `title` string
      - `actual_result` string
      - `severity` string
      - `status` string
      - `milestone_id` integer, nullable
      - `custom_fields` CustomFieldValue[]
        - `id` integer
        - `value` string
      - `attachments` Attachment[]
        - `size` integer
        - `mime` string
        - `filename` string
        - `url` string, uri
      - `resolved_at` string, date-time, nullable
      - `member_id` integer — Deprecated, use `author_id` instead.
      - `author_id` integer
      - `external_data` string
      - `runs` integer[]
      - `results` string[]
      - `tags` TagValue[]
        - `title` string
        - `internal_id` integer
      - `created_at` string, date-time
      - `updated_at` string, date-time
      - `created` string — Deprecated, use the `created_at` property instead.
      - `updated` string — Deprecated, use the `updated_at` property instead.

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