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

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

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

## Request

- The document declares no server URL.
- Auth: OAuth 2
  - Password
  - Token URL: `/authentication/login`

## Path parameters

- `project_id` integer, required

## Query parameters

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

## Request body

- SdocHealthSort[]
  - `column` string, required: SourceDocument column to sort by
  - `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

---

[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.dev/uhh-lt/apis/discourse-analysis-tool-suite-api/revisions/e498207e29f4?raw)
