Shared links (IRPCSharedLinks)

View as Markdown

Creates and manages shared links to files for people outside the vault.

gRPC serviceMFiles.IRPCSharedLinks
Book and levelVault API, standard
Methods15
Proto filemfiles/IRPCSharedLinks.proto

Overview

Creates and manages shared links: links that give people outside the vault access to one file of a document. A link is identified by its access key, a 64-character random string that the server generates. Anyone who has the access key and the vault GUID can use the link through IRPCSharedLinksPublic without logging in, so treat access keys as secrets.

Link types (SharedLinkType):

Typical flows:

Prerequisites: sharing must be enabled on the server and in the vault; otherwise the methods fail with "Access denied." (except for the internal link types). Read-only links, and external links open to anyone, also need the vault setting that allows sharing with anyone who has the link. Anonymous sessions cannot use this service.

Times. An unset expiration time means "never expires"; the server returns it as 1601-01-01T00:00:00Z. A recipient added without an expiration time is returned with 1753-01-01T00:00:00Z.

Errors. An unknown, deleted or expired access key fails with "The link is either expired or invalid.".

Methods

MethodSummaryFacts
AddSharedLinkRecipientsAdds visitors (email recipients) to an external or visitor link and returns all its recipients.write session or assertion returns metadata structure version
CreateSharedLinkCreates a shared link to one file of an object and returns it with its new access key.write session or assertion returns metadata structure version
DeleteSharedLinkDeletes a shared link, so that its access key stops working.write session or assertion returns metadata structure version
GetExternalLinksLists the external links of an object.write session or assertion returns metadata structure version
GetExternalSharingSettingsTells whether sharing is enabled in the vault and what the caller may do with external links.write session or assertion returns metadata structure version
GetSharedLinkGets one shared link by its access key.write session or assertion returns metadata structure version
GetSharedLinkRecipientsLists the visitors (email recipients) of an external or visitor link.write session or assertion returns metadata structure version
GetSharedLinksLists the shared links that the caller created, or all links for users who can see all objects.write session or assertion returns metadata structure version
GetSharedLinksByObjectLists the shared links to one object.write session or assertion returns metadata structure version
GetWOPILockNot supported: always fails with "Not implemented.".write no session
RemoveSharedLinkRecipientsRemoves visitors from an external or visitor link.write session or assertion
RemoveWOPILockNot supported: always fails with "Not implemented.".write no session
SetSharedLinkRecipientsUpdates the expiration time and access type of visitors of external links.write session or assertion returns metadata structure version
SetSharedLinksUpdates the access type of shared links, and grants or revokes access for anyone who has the link.write session or assertion returns metadata structure version
SetWOPILockNot supported: always fails with "Not implemented.".write no session