Get your free beta license ↗
API operation · files group
POST

/files/{user}/download

First published 14 Oct 20260.2.0Unchanged since publication

Download entries from one directory as a ZIP archive

Who may call it
AdministratorResellerCustomer
Token scope, any of
filesall
Answers200 OK

Supply 1 to 1000 paths in the request body's paths field. The entries can be files or directories and must share a parent directory. An invalid list returns 400. The operation is read-only.

For multiple entries, UrbeStack generates and streams one application/zip archive. The archive excludes symbolic links, and the response omits Content-Length and ignores Range. A single path follows the file or directory download behavior of GET /files/{user}/download. The same concurrency limits and streaming failure behavior apply.

Parameters

userpath ·UsernameRequired
Username of the customer who owns the home directory. Administrators can specify any customer, and customers can specify only themselves.

Request body

JSON ·FilePaths· 1 field
pathsarray of HomePathRequired

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X POST "$API/files/alice/download" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "paths": [
      "text"
    ]
  }'
Response · 200 OK
The response body is the file itself.

Errors

12 errors, each a status and a sentence
400<name> is an administrator: administrators have no home
400<what> climbs out of the home with ..
400<what> has a name over 255 characters
400<what> holds a control character
400<what> is required
400<what> is too long
400<what> may hold at most 1000 paths
400<what> must be a list of at least one path
400<what> must start with /, which is the home
400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter
400Username '<value>' is reserved
401Authentication required
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.2.0 on 14 Oct 2026.
urbestack.com/docs/api/post-files-user-download/