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

# Returns the SourceDocumentData with the given ID if it exists

`GET /sdoc/data/{sdoc_id}`

## Path parameters

- `sdoc_id` integer, required

## Query parameters

- `only_if_finished` boolean

## Response `200`

Successful Response

- SourceDocumentDataRead
  - `id` integer, required — ID of the SourceDocument
  - `project_id` integer, required — ID of the Project the SourceDocument belongs to
  - `repo_url` string, required — Relative path to the SourceDocument in the repository
  - `html` string, required — Processed HTML of the SourceDocument
  - `tokens` string[], required — List of tokens in the SourceDocument
  - `token_character_offsets` array[], required — List of character offsets of each token
    - unknown[]
      - unknown
  - `sentences` string[], required — List of sentences in the SourceDocument
  - `word_level_transcriptions` WordLevelTranscription[], nullable, required — word level transcriptions, with tokens, start times and end times
    - `text` string, required
    - `start_ms` integer, required
    - `end_ms` integer, required

## Other responses

- `422` — Validation Error

---

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