BeDrive icon

BeDrive

Consume BeDrive API

Get Shareable Link

AI-generated

Summary

Retrieve the shareable link URL for a specified file in a BeDrive workspace, optionally providing a password if the link is password-protected.

Inputs

  • Workspace (required) — Select the workspace where the file is stored, either from a list or by entering its numeric ID.
  • Folder Path — Select the folder containing the file from a list or enter its ID. Use root directory '/' if applicable.
  • File (required) — Select the file to get the shareable link for, either from a list filtered by workspace and folder or by entering its numeric ID.
  • Password — Enter the password if the shareable link is password-protected; leave empty if no password is required.

Output shape

a single record containing the shareable link details and metadata.

The operation returns a JSON object merged with the input data's JSON. It includes the file ID, workspace ID, a flag indicating if a password was provided, and the shareable link information as returned from the BeDrive API. If an error occurs, it throws a NodeOperationError unless 'continueOnFail' is enabled.

Examples

Example 1: Get a shareable link for a file in a workspace without password

Workspace selected from list; Folder Path set to root or specific folder; File selected from list; Password left empty; returns shareable link data.

Links

Discussion