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.

Four-step workflow for adding Share Link Create, mapping a stable item ID, setting expiry and View Only, and testing the returned URL signed out.
Four-step workflow for adding Share Link Create, mapping a stable item ID, setting expiry and View Only, and testing the returned URL signed out. Open full-size screenshot.

Steps

  1. Add a dosya.dev node for Share Link → Create, then select a tested dosya.dev API credential.
  2. Under Share, choose File or Folder. Map a file_… or fld_… ID from an earlier node; Workspace is optional when the ID is entered directly and only scopes list pickers.
  3. Open Options. Set Access Code to at least 8 characters when needed; this recipient code is not the Dosya account password.
  4. Set Expires In Days. 0 omits the value and uses the workspace default; the Free plan caps links at 7 days. Enable View Only to request preview without downloading.
  5. Execute the node once and inspect id, url, target_type, target_id, expires_at, view_only, access_code_required, access_mode, and created_at.
  6. Open url in 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.

Reference for “Create a Dosya sharing link in n8n”: Dosya n8n integration overview page.
Reference for “Create a Dosya sharing link in n8n”: Dosya n8n integration overview page. Open full-size screenshot.

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.

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.

    Check the outcome before you retry

    Use these shared checks when a task needs a second look.