Create a Dosya sharing link in n8n
Configure the Dosya Share Link Create operation for a file or folder, apply expiry and access options, then verify the returned public-link fields.
Last reviewed
Use the dosya.dev community node with Resource: Share Link and Operation: Create. Every successful execution creates a new public link, so test with one controlled item and inspect the returned record before enabling retries.

Steps
- Add a dosya.dev node for Share Link → Create, then select a tested dosya.dev API credential.
- Under Share, choose File or Folder. Map a
file_…orfld_…ID from an earlier node; Workspace is optional when the ID is entered directly and only scopes list pickers. - Open Options. Set Access Code to at least 8 characters when needed; this recipient code is not the Dosya account password.
- Set Expires In Days.
0omits the value and uses the workspace default; the Free plan caps links at 7 days. Enable View Only to request preview without downloading. - Execute the node once and inspect
id,url,target_type,target_id,expires_at,view_only,access_code_required,access_mode, andcreated_at. - Open
urlin a signed-out browser, enter the code when configured, and verify the expected file or folder before passing the URL to another node.
A workspace role must permit share-link creation and the key needs Full access. Folder-anchored keys are refused by REST and work only over WebDAV or S3. Free accounts can hold five active share links; revoke or let one expire before another when the API returns share_free_link_limit.

Expected result
The node returns one server-created link record for the intended target, with effective expiry and access fields. The public test reaches only that file or folder and the workflow exposes no API key or access code in ordinary output.
The access code is shorter than 8 characters is validated before any request. No folder selected means the Folder target resolved to root/empty. After Could not reach dosya.dev, inspect existing links first because an ambiguous response may have arrived after creation.
Related guides
Was this helpful?
Loading helpfulness results…
Voting saves a necessary ballot cookie for up to 180 days so you can change your answer.
Questions and replies
Ask about the steps in this guide. Questions are reviewed before publication.
Keep account details, credentials and private files out of public questions. Use private support for those.
Loading questions…
Sign in to your Dosya account to ask a question.