Docs

Get Public File Link Document

GET /public/file-links/{linkId}/files/{documentId}/document

GET/public/file-links/{linkId}/files/{documentId}/document

Returns a doc reached by a public file link (a link on the doc, or a folder link above it) with no authentication: content, filters with their options, resolved tokens, files map, the link's preset and allowed values (none for a folder link), and linkTarget (File when the link is on the doc itself, Folder when a folder link above it reaches the doc). A filter that data tables bind offers the values over their rows, within the link's allowed values. Ids come from Drives_GetPublicFileLink. Expired links and docs the link does not reach return 404.

Path Parameters

FieldTypeRequiredDescription
linkIduuidRequired
documentIduuidRequired

Response

FieldTypeDescription
iduuid
namestring| null
displayNamestring| null
descriptionstring| null
contentstring| null
filtersGetPublicFileLinkDocumentResponseFilterInfo[]| null
filterValuesstring| null
allowedValuesstring| null
linkTargetstring| null
filesobject| null
resolvedTokensobject| null

GetPublicFileLinkDocumentResponseFilterInfo

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

GetPublicFileLinkDocumentResponseFilterOption

FieldTypeDescription
valuestring| null
labelstring| null