Parameters
Pass either
name or path, not both. path can’t be combined with parentId or
parentPath, which would make the destination ambiguous.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Create a folder with dreep.createFolder(), and set the access control assets inside will inherit.
const launch = await dreep.createFolder({ path: "2026/q1/launch" });
launch.id; // pass to uploads as folderId
launch.path; // "2026/q1/launch"
| Parameter | Type | Description |
|---|---|---|
name | string | A single folder name. Mutually exclusive with path |
path | string | Slug path to create. Creates every missing segment and returns the leaf |
parentId | string | UUID of the parent to create name under |
parentPath | string | Path of an existing parent. Mutually exclusive with parentId |
accessControlType | "public" | "private" | "signed" | Defaults to public |
defaultExpirySeconds | number | Default link lifetime for a signed folder |
signal | AbortSignal | Cancels the request |
name or path, not both. path can’t be combined with parentId or
parentPath, which would make the destination ambiguous.
{
id: "78b52933-…",
name: "launch",
slug: "launch",
path: "2026/q1/launch",
parentId: "3ba2c6aa-…",
accessControlType: "public",
}
| Type | Who can fetch it |
|---|---|
public | Anyone with the URL. The default |
private | Nobody through the public API — dashboard members only |
signed | Anyone holding an unexpired signed URL |
const avatars = await dreep.createFolder({
name: "Avatars",
accessControlType: "signed",
defaultExpirySeconds: 3600,
});