Skip to content
Hoody.com

Listing

The directory listing endpoints combine filesystem management with archive operations on the container files service. Use them to create directories, list and track archive extractions, extract full or selective entries from ZIP and TAR archives, preview archive contents or read individual files without extracting, and download directories as ZIP archives.

All endpoints on this page are served by the container-scoped files instance, addressed at:

https://{projectId}-{containerId}-files-1.{server}.containers.hoody.com

The examples below substitute a concrete container id (67e89abc123def456789abcd-890abcdef12345678901cdef) and the node-us server; replace these with your own project, container, and server identifiers in production.

GET /?extraction_history

Returns the history of past archive extractions, including both completed and failed operations. Use this endpoint to audit extraction activity or diagnose failures.

NameInTypeRequiredDescription
extraction_historyquerystringYesPresence flag (empty value) that selects the extraction-history response
Terminal window
curl -X GET "https://67e89abc123def456789abcd-890abcdef12345678901cdef-files-1.node-us.containers.hoody.com/?extraction_history" \
-H "Authorization: Bearer $HOODY_TOKEN"

GET /?extractions

Returns the progress of currently running archive extractions on the files service.

NameInTypeRequiredDescription
extractionsquerystringYesPresence flag (empty value) that selects the active-extractions response
Terminal window
curl -X GET "https://67e89abc123def456789abcd-890abcdef12345678901cdef-files-1.node-us.containers.hoody.com/?extractions" \
-H "Authorization: Bearer $HOODY_TOKEN"

GET /api/v1/extractions

Returns the progress of currently running archive extractions via the versioned API path. This endpoint takes no parameters.

Terminal window
curl -X GET "https://67e89abc123def456789abcd-890abcdef12345678901cdef-files-1.node-us.containers.hoody.com/api/v1/extractions" \
-H "Authorization: Bearer $HOODY_TOKEN"

GET /{archive}?extract

Extracts a ZIP, TAR, or compressed TAR archive to a destination directory. Pass ?extract (empty value) to extract the entire archive, or ?extract=src/ for a selective extraction that pulls only matching entries.

NameInTypeRequiredDescription
archivepathstringYesPath to the archive file to extract
extractquerystringYesEmpty value for full extraction; a path (e.g. src/ or lib/) for selective extraction
destquerystringNoDestination directory name (default: archive name)
Terminal window
curl -X GET "https://67e89abc123def456789abcd-890abcdef12345678901cdef-files-1.node-us.containers.hoody.com/uploads/release.zip?extract" \
-H "Authorization: Bearer $HOODY_TOKEN"

GET /{archive}?extract_file

Extracts a single file or directory from inside a ZIP, TAR, or compressed TAR archive to a destination directory. Only the specified entry (and its children if a directory) is extracted, leaving other archive contents untouched.

NameInTypeRequiredDescription
archivepathstringYesPath to archive file
extractquerystringYesPath of the file or directory inside the archive to extract (e.g. src/ or lib/)
destquerystringNoDestination directory name (default: archive name)
Terminal window
curl -X GET "https://67e89abc123def456789abcd-890abcdef12345678901cdef-files-1.node-us.containers.hoody.com/uploads/release.zip?extract_file&extract=src/" \
-H "Authorization: Bearer $HOODY_TOKEN"

GET /{archive}?preview

Lists the contents of a ZIP, TAR, or compressed TAR archive without extracting it, or reads a specific file from the archive. Pass ?preview (empty value) to receive a JSON listing of all entries; pass ?preview=README.md to read the raw content of that file. The ?contents parameter is an alias for ?preview.

NameInTypeRequiredDescription
archivepathstringYesPath to archive file
previewquerystringNoEmpty value lists archive contents; non-empty value reads a specific file from the archive (alias: ?contents)
contentsquerystringNoAlias for ?preview
Terminal window
curl -X GET "https://67e89abc123def456789abcd-890abcdef12345678901cdef-files-1.node-us.containers.hoody.com/uploads/release.zip?preview" \
-H "Authorization: Bearer $HOODY_TOKEN"

GET /{archive}?view_file

Reads and returns a single file from inside a ZIP, TAR, or compressed TAR archive without extracting the entire archive. The response body is the raw file content with an auto-detected MIME type, useful for inspecting individual files before deciding to extract the whole archive.

NameInTypeRequiredDescription
archivepathstringYesPath to archive file
previewquerystringYesPath of the file inside the archive to view (e.g. src/ or README.md)
Terminal window
curl -X GET "https://67e89abc123def456789abcd-890abcdef12345678901cdef-files-1.node-us.containers.hoody.com/uploads/release.zip?view_file&preview=README.md" \
-H "Authorization: Bearer $HOODY_TOKEN"

GET /{directory}?zip

Creates a ZIP archive of the given directory and streams it back as the response body. The response is served as application/zip.

NameInTypeRequiredDescription
directorypathstringYesPath to the directory to package as a ZIP archive
zipquerystringYesPresence flag (empty value) that selects the ZIP download response
Terminal window
curl -X GET "https://67e89abc123def456789abcd-890abcdef12345678901cdef-files-1.node-us.containers.hoody.com/projects/release?zip" \
-H "Authorization: Bearer $HOODY_TOKEN" \
-o release.zip

MKCOL /{path}

Creates a new directory at the specified path. The container must have upload enabled (--allow-upload) and the calling user must hold write permissions for the parent path.

NameInTypeRequiredDescription
pathpathstringYesPath of the directory to create
Terminal window
curl -X MKCOL "https://67e89abc123def456789abcd-890abcdef12345678901cdef-files-1.node-us.containers.hoody.com/projects/new-release" \
-H "Authorization: Bearer $HOODY_TOKEN"