Skip to main content

Generate Direct Links

Script

Enumerate files and folders in a filespace path and export a CSV with a shareable direct link for each entry. Works in Admin Assistant app mode or standalone from the command line.

Running from the command line

python generate-direct-links.py \  --base-url http://localhost:3003/api/v1 \  --token your-bearer-token \  --filespace-id fs_abc123 \  --path /Projects/Campaign-2026 \  --output-dir ~/Desktop

Example output (CSV)

path,name,type,direct_link,size/Projects/Campaign-2026/brief.pdf,brief.pdf,file,https://lucidlink.com/d/abc123,204800/Projects/Campaign-2026/assets/,assets,folder,https://lucidlink.com/d/xyz456,