---
title: "Get Provenance"
method: GET
path: "/documents/{doc_id}/provenance"
---

# Get Provenance

`GET /documents/{doc_id}/provenance`

## Request

- Base URL: `https://app.wunel.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.wunel.com/documents/{doc_id}/provenance`
- Auth: none declared

## Path parameters

- `doc_id` string, required

## Response `200`

Successful Response

- BlockProvenance[]
  - `block_id` string, required
  - `latest` ProvenanceEntry, required
    - `block_id` string, required
    - `actor` ActorOut, required
      - `actor_kind` 'human' | 'agent', required
      - `user_id` string, nullable
      - `agent_id` string, nullable
      - `principal_user_id` string, nullable
      - `label` string
      - `guest_id` string, nullable
      - `kind_detail` string
      - `via_share` boolean
    - `created_at` string, date-time, required
    - `kept` boolean
    - `kept_at` string, date-time, nullable
    - `kept_by` string, nullable
    - `revertable` boolean
    - `inserted` boolean
    - `sharer_user_id` string, nullable
  - `history` ProvenanceEntry[], required
    - `block_id` string, required
    - `actor` ActorOut, required
      - `actor_kind` 'human' | 'agent', required
      - `user_id` string, nullable
      - `agent_id` string, nullable
      - `principal_user_id` string, nullable
      - `label` string
      - `guest_id` string, nullable
      - `kind_detail` string
      - `via_share` boolean
    - `created_at` string, date-time, required
    - `kept` boolean
    - `kept_at` string, date-time, nullable
    - `kept_by` string, nullable
    - `revertable` boolean
    - `inserted` boolean
    - `sharer_user_id` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/wunel/apis/wunel-api.md) · [All operations](https://skmtc.dev/wunel/apis/wunel-api/llms.txt) · [OpenAPI document](https://skmtc.dev/wunel/apis/wunel-api/revisions/872fe0687a60?raw)
