Skip to main content

List the public download links you made for a document.

GET/api/v1/documents/{document_id}/permalinksdocuments:download

Your own permalinks of the document, newest first, with their url, expiry, whether they are still active and how often and when they were last opened. Links made by workflow distributions are not listed. Needs View Document Permalinks and read access to the document.

Scopedocuments:download
AsynchronousNo
MCP toollist_document_permalinks
Portal permissionsview_document_permalinks
Pagingkeyset
Default order-permalink_id
Sort fieldspermalink_id

Parameters​

NameInTypeRequiredDescription
document_idpathstringRequired
limitqueryintegerOptionalDefault: 50; ≥ 1
cursorquerystringOptional
sortquerystringOptionalComma-separated sort fields, - for descending.
Docwize-Versionheaderstring (date)Optional
If-None-MatchheaderstringOptionalAnswers 304 when the representation is unchanged (resources that publish an ETag).

Responses​

StatusDescriptionBody
200Success.application/json object
304Not modified (If-None-Match matched the ETag).
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
410cursor_expiredapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422invalid_cursor, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

200 body​

FieldTypeRequiredDescription
itemsarray of PermalinkRequired
next_cursorstring or nullRequired
warningsarray of objectRequired

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

FieldTypeRequiredDescription
access_countintegerRequiredHow often the link was opened. ≥ -2147483648; ≤ 2147483647
created_atstring (date-time) or nullRequired
document_idstringRequired
expires_atstring (date-time) or nullRequired
file_namestring or nullRequiredThe name the file downloads under.
is_activebooleanRequiredFalse once the link was closed. An expired link is still active but opens as 404.
last_accessed_atstring (date-time) or nullRequiredWhen it was last opened; null if never.
permalink_idstringRequired
urlstringRequiredThe link to share: opening it needs no sign-in, until it expires or is closed.