GET/documents/{documentId}
Returns one doc: its TipTap JSON content, filters, resolved tokens and files map, its file (name,
description, folder, the caller's level, whether they can duplicate it) and counts for the delete confirm. Needs
View on the doc's file. The doc id is its file id, from Drives_GetFiles.
ResolvedTokens holds each variable's value, keyed by the built-in path, the attributeId, or a path token's
canonical key (Event/Role:{id}/Field:Name); a variable that cannot resolve has no entry.
When the caller has no level on the doc but opened it from a record whose file value holds it, pass from
({hostKind}:{hostId}, hostKind one of Event, Collaborator, EventCrew, Area, Order); the doc then opens read-only,
with no file.level. At Edit and above, stamps lists each data table's access stamp, label, author and broken
detail, which never appear in content. A filter that data tables bind carries options: its values over their rows.
Path Parameters
| Field | Type | Required | Description |
|---|
| documentId | uuid | Required | |
Query Parameters
| Field | Type | Required | Description |
|---|
| from | string | Optional | |
Response
| Field | Type | Description |
|---|
| id | uuid | |
| displayName | string| null | |
| content | string| null | |
| version | integer | |
| file | GetDocumentResponseFileInfo | |
| counts | GetDocumentResponseCountsInfo | |
| stamps | GetDocumentResponseStampInfo[]| null | |
| filters | GetDocumentResponseFilterInfo[]| null | |
| files | object| null | |
| resolvedTokens | object| null | |
GetDocumentResponseFileInfo
| Field | Type | Description |
|---|
| id | uuid | |
| name | string| null | |
| description | string| null | |
| folderId | uuid| null | |
| level | string| null | |
| canDuplicate | boolean | |
GetDocumentResponseCountsInfo
| Field | Type | Description |
|---|
| versions | integer | |
| links | integer | |
GetDocumentResponseStampInfo
| Field | Type | Description |
|---|
| blockId | string| null | |
| stamp | object| null | |
| label | string| null | |
| terms | GetDocumentResponseStampInfoTermInfo[]| null | |
| authoredBy | GetDocumentResponseStampInfoAuthoredByInfo | |
| authoredAt | date-time | |
| brokenReason | string| null | |
| brokenDetail | BrokenDetail| null | |
GetDocumentResponseFilterInfo
| Field | Type | Description |
|---|
| id | uuid | |
| name | string| null | |
| filterType | string| null | |
| isMultiSelect | boolean | |
| isRequired | boolean | |
| defaultValues | string| null | |
| options | GetDocumentResponseFilterOption[]| null | |
GetDocumentResponseStampInfoTermInfo
| Field | Type | Description |
|---|
| label | string| null | |
GetDocumentResponseStampInfoAuthoredByInfo
| Field | Type | Description |
|---|
| userId | uuid | |
| name | string| null | |
BrokenDetail
| Field | Type | Description |
|---|
| path | string| null | |
| usage | string| null | |
| label | string| null | |
| v1Text | string| null | |
GetDocumentResponseFilterOption
| Field | Type | Description |
|---|
| value | string| null | |
| label | string| null | |