---
title: "Get Artifact Document"
method: GET
path: "/api/workflows/runs/{run_id}/artifact/document"
---

# Get Artifact Document

`GET /api/workflows/runs/{run_id}/artifact/document`

## Request

- Base URL: `https://app.tin.computer` (the document declares no server; this is the origin it was published from)
- URL: `https://app.tin.computer/api/workflows/runs/{run_id}/artifact/document`
- Auth: HTTP bearer

## Path parameters

- `run_id` string, uuid, required

## Query parameters

- `source` 'canonical' | 'retained'

## Response `200`

Successful Response

- MarkdownDocumentView
  - `markdown` string, required
  - `html` string, required
  - `filename` string, required
  - `source_url` string, required
  - `timestamp` string, date-time, nullable, required
  - `word_count` integer, required
  - `reading_minutes` integer, required
  - `headings` MarkdownHeadingView[], required
    - `id` string, required
    - `title` string, required
  - `path` string, nullable
  - `revision` string, nullable
  - `size_bytes` integer, nullable
  - `related_documents` object[]
  - `sha256` string, nullable
  - `assets` MarkdownAssetView[]
    - `path` string, required
    - `media_type` string, required
  - `asset_notes` string[]

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tin/apis/tin-lite-switchboard.md) · [All operations](https://skmtc.dev/tin/apis/tin-lite-switchboard/llms.txt) · [OpenAPI document](https://skmtc.dev/tin/apis/tin-lite-switchboard/revisions/c800ca3406f4?raw)
