---
title: "Returns the SourceDocument with the given ID if it exists"
method: GET
path: "/sdoc/{sdoc_id}"
tags: ["sourceDocument"]
---

# Returns the SourceDocument with the given ID if it exists

`GET /sdoc/{sdoc_id}`

## Path parameters

- `sdoc_id` integer, required

## Query parameters

- `only_if_finished` boolean

## Response `200`

Successful Response

- SourceDocumentRead
  - `filename` string, required — Filename of the SourceDocument
  - `name` string, required — User-defined name of the document (default is the filename)
  - `doctype` 'text' | 'image' | 'video' | 'audio', required
  - `project_id` integer, required — Project the SourceDocument belongs to
  - `id` integer, required — ID of the SourceDocument
  - `created` string, date-time, required — The created timestamp of the SourceDocument
  - `updated` string, date-time, required — Updated timestamp of the SourceDocument
  - `folder_id` integer, required — ID of the Folder this SourceDocument belongs to
  - `memo_ids` integer[] — IDs of the Memos attached to the SourceDocument

## Other responses

- `422` — Validation Error

## Changes

- **2026-08-04** `7d9df729f4fc` — 1 info
  - added the optional property `memo_ids` to the response with the `200` status
- **2026-08-03** `fab14ec2229b` — 1 warning
  - removed the optional property `memo_ids` from the response with the `200` status
- **2026-08-03** `99542cbdb5a9` — 1 info
  - added the optional property `memo_ids` to the response with the `200` status
- **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-09-18** `c5b78916c4e5` — 2 info
  - the response property `name` became required for the status `200`
  - response property `name` list-of-types was narrowed by removing types `null` from media type `application/json` of response `200`

[Full history](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api/changes/sdoc/:sdoc_id/get.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)
