Docs

Add File Link

POST /files/{fileId}/file-links

POST/files/{fileId}/file-links

Creates a public link to the file, which anyone with its URL opens without signing in; a file link is View only. On a doc, filterValues pre-sets its filters and allowedValues limits what a viewer may pick (JSON objects keyed by the doc's filter ids); both are refused on any other file. Optional expiresAt must be in the future. Requires Manage on the file. Returns the link, whose id is the public credential.

Path Parameters

FieldTypeRequiredDescription
fileIduuidRequired

Request Body

FieldTypeRequiredDescription
namestringOptional
levelstringOptional
expiresAtdate-timeOptional
filterValuesstringOptional
allowedValuesstringOptional

Response

FieldTypeDescription
iduuid
namestring| null
levelstring| null
expiresAtdate-time| null
createdAtdate-time
createdBystring| null
filterValuesstring| null
allowedValuesstring| null