Share a File
Share a File makes a download link to a stored file that anyone can open
without signing in, for as many hours as you set. It is how a flow hands a file
to someone outside your workspace when an email attachment is not the right
fit: a link in a chat message, on a portal page, or in a reply to a customer.
You find it on the node picker’s Storage shelf.
The node has one input handle and one output handle.
Naming a file
Section titled “Naming a file”The node accepts every reference form the file nodes share:
| Form | Example | Shares |
|---|---|---|
| A version id | 01K3... |
Exactly those bytes. |
| An object id | 01K2... |
The version that is current when the node runs. |
Store name/path |
Drawings/site/plan.pdf |
The version current at that path when the node runs. |
| An attachment id | 01K4... |
A file that arrived on an inbound email. |
Whichever form you use, the link is to the version current when the node runs. Replacing the file afterwards does not change what the recipient downloads.
In the node’s settings you pick the file rather than type its reference. Type
part of its path, and File lists the matching files of every file store in
your workspace as Store › path, the newest first, 50 at most. A picked file is
saved as its object id. A reference typed in before the field became a picker
stays as it was. To share a file another node produced, or one that arrived by
mail, click Insert a value ({x}) and write an expression.
A reference belonging to another workspace is refused. So is a file whose contents a retention policy has already removed, and an email attachment with no stored copy.
How long the link works
Section titled “How long the link works”Link lasts (hours) is 24 when you leave it empty, and at most 168 (one week). A longer value fails the node rather than quietly making a shorter link.
A link cannot be taken back once it is sent, except by deleting the file. Ask for no more time than the recipient needs.
A link outlives a replaced file only as long as the store keeps old versions. With Versions to keep at its default of one, the old version is removed the night after the file is replaced, and from then on the link tells the recipient the file is no longer available.
Configuration
Section titled “Configuration”

| Field | Type | Default | Description |
|---|---|---|---|
File (object) | string ✦ (required) | — | The file to share: an object id, a version id, “Store name/path/to/file.pdf”, or an inbound email attachment id. |
Link lasts (hours) (expiresInHours) | integer ✦ (optional) | — | How long the link works, in hours. 24 when empty; at most 168 (a week). |
Fields marked ✦ accept expressions.
Try this node — run it once against your own workspace, with your credentials, without building a flow first.
Output
Section titled “Output”{ "url": "https://publicus.cloud/files/01K3...?expires=1760630400&signature=...", "expiresAt": "2026-10-16T14:00:00+00:00", "object": { "id": "01K3...", "filename": "plan.pdf", "mediaType": "application/pdf", "sizeBytes": 48213 }}expiresAt is the moment the link stops working. object.id is the version
the link serves.
Someone who opens the link after it expires, or after the file was deleted, sees a short page saying so and asking them to contact whoever sent it. The page does not name your workspace.


Agents
Section titled “Agents”An agent can call this node as a tool. Because a link publishes a file to anyone who holds it, an agent asks a person first under the Ask first and Auto-write approval modes, and shares without asking only under Autopilot. See Approvals.
Worked example
Section titled “Worked example”Send a customer the quote a flow just generated:
- A Create a PDF node writes the quote to a store.
- Share a File, with File set to
{!! $prev->object->versionId !!}and Link lasts (hours) set to72. - A channel node sends
{!! $prev->url !!}with a line saying the link works for three days.
What it costs
Section titled “What it costs”Each download through the link counts toward your workspace’s egress, like a download from the Files screen.
Related
Section titled “Related”- Files: stores, versions, retention and the Share button.
- Store a File: put a file into a store.
- File Details: check a file before sharing it.
- Expressions: the grammar used in every ✦ field.