AI makes mistakes! Undisk makes recovery instant: every write is versioned, every file is reversible.
See it heal →

Public Sharing (experimental)

The share_with_public tool provides authenticated link sharing for workspace files (unlisted links). This is an experimental feature that must be enabled per-workspace at /keys.
Important: Recipients must be signed in to Undisk. These are not anonymously public URLs.

How it works

  1. Enable the experiment toggle in your workspace settings at /keys
  2. Use share_with_public with action: "create" to generate a share link
  3. Anyone with an Undisk account who has the link can view the file content
  4. Shares always serve the latest file version
  5. Revoke any share at any time with action: "revoke"

Parameters

ParameterTypeRequiredNotes
action"create" | "revoke" | "list"yesOperation to perform
pathstringfor create/revokeFile path to share or revoke

Example: share a file

share_with_public({
  "action": "create",
  "path": "reports/q1-summary.md"
})

Security and behavior

  • Authentication required: viewers must have an Undisk account — links are not truly “public”
  • No metadata exposed: shared content pages show only file content, no paths, workspace info, or owner details
  • Not indexed: all share pages include noindex, nofollow and X-Robots-Tag: noindex headers
  • Content moderation: files flagged by content moderation cannot be shared; existing shares become inaccessible if the file is later flagged
  • Limit: up to 100 active shares per workspace
  • Shares follow moves: if you move a shared file, the share link continues to work
  • Immediate revocation: revoking a share takes effect instantly; the share ID cannot be reused
  • Cloudflare only: this feature is currently available on the Cloudflare provider only