Directories
List directory contents
List paginated contents of a directory at a specific revision, with optional workspace support.
get/api/repos/{namespace}/{repo_name}/dir/{resource}
Request
- Base URLhttps://hub.oxen.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
namespacestring required
Namespace of the repository
repo_namestring required
Name of the repository
resourcestring required
Path to the directory (including branch/commit ID)
pageinteger nullable required
page_sizeinteger nullable required
api_versionstring nullable required
depthinteger nullable required
Depth of nested directory traversal. 0 = current directory only (default), 1 = include immediate children, -1 = unlimited.
sort_bystring nullable required
Sort entries by "name" (default) or "date" (latest commit timestamp).
reverseboolean nullable required
Reverse the sort order. Default is false (ascending).
Response
Paginated list of directory entries
Changes
No recorded changes to this operation across all 1 revision of this API.