---
title: "Get Document"
method: GET
path: "/v1/documents/{document_id}"
tags: ["documents"]
---

# Get Document

`GET /v1/documents/{document_id}`

Fetch a document by ID.

Returns the full document content for viewing in a source modal/drawer.
Useful for citation "click to view source" functionality.

## Path parameters

- `document_id` string, uuid, required

## Query parameters

- `workspace_id` string, uuid, required

## Response `200`

Successful Response

- DocumentResponse — Full document details for source viewing.
  - `id` string, required
  - `workspace_id` string, required
  - `source_type` string, required
  - `external_id` string, required
  - `url` string, nullable
  - `title` string, nullable
  - `author_name` string, nullable
  - `author_email` string, nullable
  - `content_text` string, nullable
  - `created_at` string, required
  - `updated_at` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/ontora/apis/ontora-api.md) · [All operations](https://skmtc.dev/ontora/apis/ontora-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ontora/ontora-api/revisions/7f57037fd94b/schema)
