Get task directory token

Returns a zip_token for downloading a folder (one entry in dirents) or several items (multiple dirents) as ZIP.

Workflow: get the token, poll Query task progress (/api/v2.1/query-zip-progress/?token=...) until zipped equals total, then download https://<server>/seafhttp/zip/{zip_token}.

The GET variant is marked as deprecated in SecureCloud (long dirents lists can exceed the URL length); SecureCloud also accepts the same parameters as POST body.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$

The unique identifier of a library

Query Params
string
required

Path to the parent_dir

dirents
array of strings
required

Name of an item in parent_dir. Repeat the parameter for several items (dirents=a&dirents=b).

dirents*
Responses

Language
Credentials
Bearer
Account-Token
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json