Docs

Get Document

GET /documents/{documentId}

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

FieldTypeRequiredDescription
documentIduuidRequired

Query Parameters

FieldTypeRequiredDescription
fromstringOptional

Response

FieldTypeDescription
iduuid
displayNamestring| null
contentstring| null
versioninteger
fileGetDocumentResponseFileInfo
countsGetDocumentResponseCountsInfo
stampsGetDocumentResponseStampInfo[]| null
filtersGetDocumentResponseFilterInfo[]| null
filesobject| null
resolvedTokensobject| null

GetDocumentResponseFileInfo

FieldTypeDescription
iduuid
namestring| null
descriptionstring| null
folderIduuid| null
levelstring| null
canDuplicateboolean

GetDocumentResponseCountsInfo

FieldTypeDescription
versionsinteger
linksinteger

GetDocumentResponseStampInfo

FieldTypeDescription
blockIdstring| null
stampobject| null
labelstring| null
termsGetDocumentResponseStampInfoTermInfo[]| null
authoredByGetDocumentResponseStampInfoAuthoredByInfo
authoredAtdate-time
brokenReasonstring| null
brokenDetailBrokenDetail| null

GetDocumentResponseFilterInfo

FieldTypeDescription
iduuid
namestring| null
filterTypestring| null
isMultiSelectboolean
isRequiredboolean
defaultValuesstring| null
optionsGetDocumentResponseFilterOption[]| null

GetDocumentResponseStampInfoTermInfo

FieldTypeDescription
labelstring| null

GetDocumentResponseStampInfoAuthoredByInfo

FieldTypeDescription
userIduuid
namestring| null

BrokenDetail

FieldTypeDescription
pathstring| null
usagestring| null
labelstring| null
v1Textstring| null

GetDocumentResponseFilterOption

FieldTypeDescription
valuestring| null
labelstring| null