Actions35
- File Actions
- Folder Actions
- Room Actions
- User Actions
File → Get File Shared Link
AI-generatedSummary
Retrieves the shared link information for a single ONLYOFFICE DocSpace file by its ID, returning the API's link response as the item's JSON.
Inputs
- Authentication (required) — Credential method used for the request: API Key (default), Basic Auth, OAuth2, or Personal Access Token. The matching DocSpace credential must be configured.
- File ID (required) — Numeric ID of the file to get the shared link for. Default is 0, so a real ID must be supplied.
Output shape
One JSON item per input item, containing the response object returned by DocSpace's GET api/2.0/files/file/{fileId}/link endpoint.
The exact fields come from the DocSpace API (the source doesn't transform them). It's a read-only call and doesn't create or change the link. If an item fails and 'Continue On Fail' is enabled, the output item is
{ error: <message> }. Otherwise the node throws an API error. The operation runs once per input item.
Examples
Example 1: Fetch the share link for a known file so it can be sent in a notification.
Authentication: API Key; File ID: 12345. Pass the output link data to a Slack or email node.
Example 2: Get links for files found by an earlier step.
File ID set to an expression such as {{ $json.id }} from a Get Folder Contents node, so it runs once per file.