EndpointsMake a directory

Sandboxes

Make a directory

Creates a directory, with missing parents unless parents is false. An existing directory is returned unchanged. Requires files. Commands and file operations need an ACTIVE sandbox; on any other state they answer 409.

POST/sandboxes/{id}:makeDirectory
Authorizationstringheaderrequired

Bearer token for the authenticated caller.

Optional workspace/scope context for the request. Carries a single workspace wire id (ws_…) today. Only needed for broad tokens - a workspace-owned token implies its workspace.

Required string length: 1 - 53

Example: "ws_j572abc123def4"

idstringrequired

Sandbox id (sbx_...).

Pattern: ^sbx_[A-Za-z0-9]{1,64}$

Example: "sbx_j572abc123def456"

Body

application/json
pathstringrequired

Absolute path inside the sandbox.

Required string length: 1 - 4096

Pattern: ^\/[^\0]*$

Example: "/workspace/README.md"

parentsbooleandefault:true

Response

application/json

SandboxFileInfo

pathstringrequired
typeenum<string>required

Available options: file, directory, symlink, other

sizeintegerrequired

Required range: x >= 0

modestringrequired

Permission bits in octal.

Example: "0644"

modified_atintegerrequired

Last modification (Unix seconds).

Required range: x >= 0