Seafile

App · 13 actions

Keep your Seafile files in order: upload, download, find, move, copy, rename and delete files and folders, and make share links to send. Start a workflow when a file is added to a folder or changed.

Actions

ActionWhat it does
Copy file or folderCopy a file or folder into another folder, in the same library or another one.
Create folderMake a folder, and any folders above it that aren't there yet.
Create share linkMake a link anyone can open a file or folder with, to send to someone, with a password and end date if you like.
Delete file or folderDelete a file or folder.
Delete share linkStop a share link working, so nobody can open it any more.
Download fileDownload a file for later steps, such as attaching it to an email.
Get file detailsLook up a file or folder: its size, when it last changed and who changed it, and its link.
List folderList the files and folders in a folder, folders first, with their sizes and when they changed.
List librariesList the libraries the account can open: its own, ones shared with it, and its groups'.
Move file or folderMove a file or folder into another folder, in the same library or another one.
Rename file or folderGive a file or folder a new name, in the same folder.
Search filesFind files and folders whose name contains some words, most recently changed first.
Upload filePut a file in a folder, such as an email attachment or a PDF made in an earlier step, or save text as a file.

Copy file or folder

Copy a file or folder into another folder, in the same library or another one.

Inputs

LibrarylibrarytextRequired
The library: pick it, or type its exact name.
PathpathtextRequired
The file or folder's path in the library, such as /Invoices/invoice.pdf.
To folderdestination_foldertextRequired
The folder to copy it into, such as /Archive/2026: pick one, or type its path in To library when you choose one. It's made if it isn't there yet.
To librarydestination_librarytext
Another library to copy it to. Leave blank to keep it in the same library.

Outputs

file_idtext
Seafile's ID for the file's current content: it changes whenever the file does. Empty for a folder
librarytext
The name of the library it's in
library_idtext
The ID of the library it's in
linktext
Where to open it in Seafile, for people who can see the library
modified_attext
When it last changed (ISO 8601, UTC)
modified_bytext
The name of who last changed it, when Seafile says
modified_by_emailtext
Their email address, when Seafile says
nametext
Its name, such as invoice-1001.pdf
pathtext
Its path in the library, such as /Invoices/invoice-1001.pdf
sizenumber
Its size in bytes; 0 for a folder
typetext
file or folder
Example output
{
  "file_id": "894e505b70487aa6dbfa850c4f180e70d3091f38",
  "library": "Team Files",
  "library_id": "d61e8ac4-fed7-413e-993b-5318f8de63d8",
  "link": "https://cloud.seafile.com/lib/d61e8ac4-fed7-413e-993b-5318f8de63d8/file/Invoices/invoice-1001.pdf",
  "modified_at": "2026-11-05T09:30:00Z",
  "modified_by": "Alex Rivera",
  "modified_by_email": "alex@example.com",
  "name": "invoice-1001.pdf",
  "path": "/Archive/2026/invoice-1001.pdf",
  "size": 48213,
  "type": "file"
}

Create folder

Make a folder, and any folders above it that aren't there yet. Nothing changes if it's already there.

Inputs

LibrarylibrarytextRequired
The library: pick it, or type its exact name.
PathpathtextRequired
The folder's path, such as /Clients/Acme/2026.

Outputs

createdtrue/false
False when the folder was already there
file_idtext
Seafile's ID for the file's current content: it changes whenever the file does. Empty for a folder
librarytext
The name of the library it's in
library_idtext
The ID of the library it's in
linktext
Where to open it in Seafile, for people who can see the library
modified_attext
When it last changed (ISO 8601, UTC)
modified_bytext
The name of who last changed it, when Seafile says
modified_by_emailtext
Their email address, when Seafile says
nametext
Its name, such as invoice-1001.pdf
pathtext
Its path in the library, such as /Invoices/invoice-1001.pdf
sizenumber
Its size in bytes; 0 for a folder
typetext
file or folder
Example output
{
  "created": true,
  "file_id": "",
  "library": "Team Files",
  "library_id": "d61e8ac4-fed7-413e-993b-5318f8de63d8",
  "link": "https://cloud.seafile.com/library/d61e8ac4-fed7-413e-993b-5318f8de63d8/Team%20Files/Invoices/2026",
  "modified_at": "2026-11-05T09:30:00Z",
  "modified_by": "",
  "modified_by_email": "",
  "name": "2026",
  "path": "/Invoices/2026",
  "size": 0,
  "type": "folder"
}

Make a link anyone can open a file or folder with, to send to someone, with a password and end date if you like.

Inputs

LibrarylibrarytextRequired
The library: pick it, or type its exact name.
PathpathtextRequired
The file or folder's path in the library, such as /Invoices/invoice.pdf.
Passwordpasswordtext
A password the link asks for, of 8 characters or more unless your server says otherwise. Leave blank for none.
Expiresexpires_ondate
The last day the link works. Leave blank to keep it working.
Allow downloadallow_downloadtrue/false
Let people with the link download it, not only view it.Default: true.

Outputs

allow_downloadtrue/false
Whether people with the link can download, not only view
created_attext
When it was made (ISO 8601, UTC)
expires_attext
When it stops working (ISO 8601, UTC); empty if never
has_passwordtrue/false
Whether the link asks for a password
librarytext
The library's name
library_idtext
The library's ID
linktext
The link to send
nametext
The shared file or folder's name
pathtext
What it shares
tokentext
The link's code, the last part of the link
typetext
file or folder
view_countnumber
How many times it has been opened
Example output
{
  "allow_download": true,
  "created_at": "2026-11-05T09:31:00Z",
  "expires_at": "2026-12-31T23:59:59Z",
  "has_password": true,
  "library": "Team Files",
  "library_id": "d61e8ac4-fed7-413e-993b-5318f8de63d8",
  "link": "https://cloud.seafile.com/f/55d6b9faffa5463caadb/",
  "name": "invoice-1001.pdf",
  "path": "/Invoices/invoice-1001.pdf",
  "token": "55d6b9faffa5463caadb",
  "type": "file",
  "view_count": 0
}

Delete file or folder

Delete a file or folder. It goes to the library's trash, where it can be restored for as long as the library keeps its history.

Inputs

LibrarylibrarytextRequired
The library: pick it, or type its exact name.
PathpathtextRequired
The file or folder's path in the library, such as /Invoices/invoice.pdf.

Outputs

deletedtrue/false
True once deleted
librarytext
The library's name
library_idtext
The library's ID
pathtext
What was deleted
typetext
file or folder
Example output
{
  "deleted": true,
  "library": "Team Files",
  "library_id": "d61e8ac4-fed7-413e-993b-5318f8de63d8",
  "path": "/Inbox/old-scan.pdf",
  "type": "file"
}

Stop a share link working, so nobody can open it any more.

Inputs

Share linklinktextRequired
The link, such as https://cloud.example.com/f/55d6b9faffa5463caadb/, or its code.

Outputs

deletedtrue/false
True once the link stops working
tokentext
The link's code
Example output
{
  "deleted": true,
  "token": "55d6b9faffa5463caadb"
}

Download file

Download a file for later steps, such as attaching it to an email. A text file of 1 MB or less is also given as text.

Inputs

LibrarylibrarytextRequired
The library: pick it, or type its exact name.
PathpathtextRequired
The file's path, such as /Invoices/invoice-1001.pdf.

Outputs

content_typetext
Its type, such as application/pdf, from its name
document_reftext
The downloaded file, for a later step's file field
file_nametext
The file's name
librarytext
The library's name
library_idtext
The library's ID
pathtext
The file's path
sizenumber
Its size in bytes
texttext
What it says, for a text file of 1 MB or less; otherwise empty
Example output
{
  "content_type": "text/csv",
  "document_ref": "doc_0123456789abcdef0123456789abcdef",
  "file_name": "q1-summary.csv",
  "library": "Team Files",
  "library_id": "d61e8ac4-fed7-413e-993b-5318f8de63d8",
  "path": "/Reports/2026/q1-summary.csv",
  "size": 38,
  "text": "month,revenue\nJan,100\nFeb,120\nMar,140\n"
}

Get file details

Look up a file or folder: its size, when it last changed and who changed it, and its link.

Inputs

LibrarylibrarytextRequired
The library: pick it, or type its exact name.
PathpathtextRequired
The file or folder's path in the library, such as /Invoices/invoice.pdf.

Outputs

file_idtext
Seafile's ID for the file's current content: it changes whenever the file does. Empty for a folder
librarytext
The name of the library it's in
library_idtext
The ID of the library it's in
linktext
Where to open it in Seafile, for people who can see the library
modified_attext
When it last changed (ISO 8601, UTC)
modified_bytext
The name of who last changed it, when Seafile says
modified_by_emailtext
Their email address, when Seafile says
nametext
Its name, such as invoice-1001.pdf
pathtext
Its path in the library, such as /Invoices/invoice-1001.pdf
sizenumber
Its size in bytes; 0 for a folder
typetext
file or folder
Example output
{
  "file_id": "894e505b70487aa6dbfa850c4f180e70d3091f38",
  "library": "Team Files",
  "library_id": "d61e8ac4-fed7-413e-993b-5318f8de63d8",
  "link": "https://cloud.seafile.com/lib/d61e8ac4-fed7-413e-993b-5318f8de63d8/file/Invoices/invoice-1001.pdf",
  "modified_at": "2026-11-05T09:30:00Z",
  "modified_by": "Alex Rivera",
  "modified_by_email": "alex@example.com",
  "name": "invoice-1001.pdf",
  "path": "/Invoices/invoice-1001.pdf",
  "size": 48213,
  "type": "file"
}

List folder

List the files and folders in a folder, folders first, with their sizes and when they changed.

Inputs

LibrarylibrarytextRequired
The library: pick it, or type its exact name.
Folderfoldertext
The folder, such as /Invoices. Leave blank for the library's top folder.
Include subfoldersinclude_subfolderstrue/false
Also list everything in the folders inside it, all the way down.Default: false.
How manylimitnumber
The most to list. Defaults to 100.From 1 to 1000.

Outputs

countnumber
How many are listed
foldertext
The folder listed
itemslist
The files and folders, folders first
librarytext
The library's name
library_idtext
The library's ID
moretrue/false
True when the folder holds more than were listed
Example output
{
  "count": 2,
  "folder": "/Invoices",
  "items": [
    {
      "file_id": "",
      "library": "Team Files",
      "library_id": "d61e8ac4-fed7-413e-993b-5318f8de63d8",
      "link": "https://cloud.seafile.com/library/d61e8ac4-fed7-413e-993b-5318f8de63d8/Team%20Files/Invoices/2026",
      "modified_at": "2026-11-05T09:30:00Z",
      "modified_by": "",
      "modified_by_email": "",
      "name": "2026",
      "path": "/Invoices/2026",
      "size": 0,
      "type": "folder"
    },
    {
      "file_id": "894e505b70487aa6dbfa850c4f180e70d3091f38",
      "library": "Team Files",
      "library_id": "d61e8ac4-fed7-413e-993b-5318f8de63d8",
      "link": "https://cloud.seafile.com/lib/d61e8ac4-fed7-413e-993b-5318f8de63d8/file/Invoices/invoice-1001.pdf",
      "modified_at": "2026-11-05T09:30:00Z",
      "modified_by": "Alex Rivera",
      "modified_by_email": "alex@example.com",
      "name": "invoice-1001.pdf",
      "path": "/Invoices/invoice-1001.pdf",
      "size": 48213,
      "type": "file"
    }
  ],
  "library": "Team Files",
  "library_id": "d61e8ac4-fed7-413e-993b-5318f8de63d8",
  "more": false
}

List libraries

List the libraries the account can open: its own, ones shared with it, and its groups'.

Inputs

How manylimitnumber
The most to list. Defaults to 100.From 1 to 1000.

Outputs

countnumber
How many
librarieslist
The libraries, by name
Example output
{
  "count": 1,
  "libraries": [
    {
      "access": "mine",
      "can_edit": true,
      "encrypted": false,
      "id": "d61e8ac4-fed7-413e-993b-5318f8de63d8",
      "modified_at": "2026-11-05T09:30:00Z",
      "name": "Team Files",
      "owner": "Alex Rivera",
      "owner_email": "alex@example.com",
      "size": 1932735
    }
  ]
}

Move file or folder

Move a file or folder into another folder, in the same library or another one.

Inputs

LibrarylibrarytextRequired
The library: pick it, or type its exact name.
PathpathtextRequired
The file or folder's path in the library, such as /Invoices/invoice.pdf.
To folderdestination_foldertextRequired
The folder to move it into, such as /Archive/2026: pick one, or type its path in To library when you choose one. It's made if it isn't there yet.
To librarydestination_librarytext
Another library to move it to. Leave blank to keep it in the same library.

Outputs

file_idtext
Seafile's ID for the file's current content: it changes whenever the file does. Empty for a folder
librarytext
The name of the library it's in
library_idtext
The ID of the library it's in
linktext
Where to open it in Seafile, for people who can see the library
modified_attext
When it last changed (ISO 8601, UTC)
modified_bytext
The name of who last changed it, when Seafile says
modified_by_emailtext
Their email address, when Seafile says
nametext
Its name, such as invoice-1001.pdf
pathtext
Its path in the library, such as /Invoices/invoice-1001.pdf
sizenumber
Its size in bytes; 0 for a folder
typetext
file or folder
Example output
{
  "file_id": "894e505b70487aa6dbfa850c4f180e70d3091f38",
  "library": "Team Files",
  "library_id": "d61e8ac4-fed7-413e-993b-5318f8de63d8",
  "link": "https://cloud.seafile.com/lib/d61e8ac4-fed7-413e-993b-5318f8de63d8/file/Invoices/invoice-1001.pdf",
  "modified_at": "2026-11-05T09:30:00Z",
  "modified_by": "Alex Rivera",
  "modified_by_email": "alex@example.com",
  "name": "invoice-1001.pdf",
  "path": "/Archive/2026/invoice-1001.pdf",
  "size": 48213,
  "type": "file"
}

Rename file or folder

Give a file or folder a new name, in the same folder.

Inputs

LibrarylibrarytextRequired
The library: pick it, or type its exact name.
PathpathtextRequired
The file or folder's path in the library, such as /Invoices/invoice.pdf.
New namenew_nametextRequired
The new name, such as invoice-1001-paid.pdf. Keep a file's ending, such as .pdf.

Outputs

file_idtext
Seafile's ID for the file's current content: it changes whenever the file does. Empty for a folder
librarytext
The name of the library it's in
library_idtext
The ID of the library it's in
linktext
Where to open it in Seafile, for people who can see the library
modified_attext
When it last changed (ISO 8601, UTC)
modified_bytext
The name of who last changed it, when Seafile says
modified_by_emailtext
Their email address, when Seafile says
nametext
Its name, such as invoice-1001.pdf
pathtext
Its path in the library, such as /Invoices/invoice-1001.pdf
sizenumber
Its size in bytes; 0 for a folder
typetext
file or folder
Example output
{
  "file_id": "894e505b70487aa6dbfa850c4f180e70d3091f38",
  "library": "Team Files",
  "library_id": "d61e8ac4-fed7-413e-993b-5318f8de63d8",
  "link": "https://cloud.seafile.com/lib/d61e8ac4-fed7-413e-993b-5318f8de63d8/file/Invoices/invoice-1001.pdf",
  "modified_at": "2026-11-05T09:30:00Z",
  "modified_by": "Alex Rivera",
  "modified_by_email": "alex@example.com",
  "name": "invoice-1001-paid.pdf",
  "path": "/Invoices/invoice-1001-paid.pdf",
  "size": 48213,
  "type": "file"
}

Search files

Find files and folders whose name contains some words, most recently changed first.

Inputs

Name containsquerytextRequired
Part of the name, such as invoice.
Librarylibrarytext
Only look in this library. Leave blank to look in every library (the first 50).
How manylimitnumber
The most to list. Defaults to 100.From 1 to 1000.

Outputs

countnumber
How many
itemslist
The files and folders found, most recently changed first
querytext
What was searched for
Example output
{
  "count": 1,
  "items": [
    {
      "file_id": "",
      "library": "Team Files",
      "library_id": "d61e8ac4-fed7-413e-993b-5318f8de63d8",
      "link": "https://cloud.seafile.com/lib/d61e8ac4-fed7-413e-993b-5318f8de63d8/file/Invoices/invoice-1001.pdf",
      "modified_at": "2026-11-05T09:30:00Z",
      "modified_by": "",
      "modified_by_email": "",
      "name": "invoice-1001.pdf",
      "path": "/Invoices/invoice-1001.pdf",
      "size": 48213,
      "type": "file"
    }
  ],
  "query": "invoice"
}

Upload file

Put a file in a folder, such as an email attachment or a PDF made in an earlier step, or save text as a file.

Inputs

LibrarylibrarytextRequired
The library: pick it, or type its exact name.
Folderfoldertext
The folder to put it in, such as /Invoices/2026. It's made if it isn't there yet. Leave blank for the library's top folder.
Filefiletext
The file: upload one, pick a file from an earlier step, or paste a link to one. Use this or Text.
Texttexttext
Words to save as the file, such as a CSV or notes. Use this or File, and give a file name.
File namefile_nametext
What to call it, such as invoice-1001.pdf. Leave blank to keep the file's own name.
Replacereplacetrue/false
Write over a file with the same name. Off: Seafile keeps both, adding (1) to the new one's name.Default: false.

Outputs

file_idtext
Seafile's ID for the file's current content: it changes whenever the file does. Empty for a folder
librarytext
The name of the library it's in
library_idtext
The ID of the library it's in
linktext
Where to open it in Seafile, for people who can see the library
modified_attext
When it last changed (ISO 8601, UTC)
modified_bytext
The name of who last changed it, when Seafile says
modified_by_emailtext
Their email address, when Seafile says
nametext
Its name, such as invoice-1001.pdf
pathtext
Its path in the library, such as /Invoices/invoice-1001.pdf
sizenumber
Its size in bytes; 0 for a folder
typetext
file or folder
Example output
{
  "file_id": "894e505b70487aa6dbfa850c4f180e70d3091f38",
  "library": "Team Files",
  "library_id": "d61e8ac4-fed7-413e-993b-5318f8de63d8",
  "link": "https://cloud.seafile.com/lib/d61e8ac4-fed7-413e-993b-5318f8de63d8/file/Invoices/invoice-1001.pdf",
  "modified_at": "2026-11-05T09:30:00Z",
  "modified_by": "Alex Rivera",
  "modified_by_email": "alex@example.com",
  "name": "invoice-1001.pdf",
  "path": "/Invoices/invoice-1001.pdf",
  "size": 48213,
  "type": "file"
}

On this page