---
title: "Get all SourceDocumentStatusDetailed for the Project with the given ID by status"
method: POST
path: "/docprocessing/project/{proj_id}/search"
tags: ["docprocessing"]
---

# Get all SourceDocumentStatusDetailed for the Project with the given ID by status

`POST /docprocessing/project/{proj_id}/search`

## Path parameters

- `proj_id` integer, required

## Query parameters

- `doctype` 'text' | 'image' | 'video' | 'audio', required
- `page` integer, required
- `page_size` integer, required

## Request body

- SdocHealthSort[]
  - `column` string, required
  - `direction` 'asc' | 'desc', required — Sort direction. `apply` appends `.nulls_last()` so rows missing a value sink to the bottom regardless of direction.

## Response `200`

Successful Response

- SdocHealthResult
  - `total_results` integer, required — Total number of sdocs in the project
  - `data` SdocStatusRow[], required — List of SourceDocument status rows (one per sdoc in the project)
    - `sdoc_id` integer, required — ID of the SourceDocument
    - `name` string, required — Name of the SourceDocument
    - `status` object, required — Processing status of the SourceDocument (the keys are the processing step/job and differ per doctype)
    - `failed_job_uuids` object, required — UUIDs of the failed processing jobs (the keys are the processing step/job and differ per doctype)
    - `failed_job_status_msgs` object, required — Status messages of the failed processing jobs (the keys are the processing step/job and differ per doctype)

## Other responses

- `422` — Validation Error

## Changes

- **2026-07-15** `1af5a8046f20` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **2025-11-21** `e649e107cfde` — 2 info
  - added the required property `data/items/failed_job_status_msgs` to the response with the `200` status
  - added the required property `data/items/failed_job_uuids` to the response with the `200` status
- **2025-09-18** `c5b78916c4e5` — 1 breaking, 1 info
  - removed the required property `data/items/filename` from the response with the `200` status
  - added the required property `data/items/name` to the response with the `200` status
- **2025-08-22** `53e769440a25` — 3 breaking, 2 warning, 1 info
  - removed the required property `data/items/failed_job_status_msgs` from the response with the `200` status
  - removed the required property `data/items/failed_job_uuids` from the response with the `200` status
  - removed the required property `data/items/name` from the response with the `200` status
  - removed the optional property `detail/items/ctx` from the response with the `422` status
  - …2 more

[Change history](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api/changes/docprocessing/project/:proj_id/search/post.md)

---

[API](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api.md) · [All operations](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/uhh-lt/discourse-analysis-tool-suite-api/revisions/a84d27ef7a0d/schema)
