API Documentation

Create Directory

Create a directory inside the webspace home.

Required scope: webspace:manage

Headers

Header Required Value
Authorization Yes Bearer YOUR_API_KEY
Content-Type Yes application/json

Request Body

Parameter Required Description
path Yes Absolute path inside ~/.
recursive No Default true (mkdir -p). Set to false to fail when parents are missing.

Response

{ "data": { "path": "/home/ws_0862c/uploads", "created": true, "recursive": true } }

Example

curl -X POST https://hosting.site.quest/api/v1/webspaces/69e80ac1.../sftp/mkdir \
  -H "Authorization: Bearer sq_live_..." \
  -H "Content-Type: application/json" \
  -d '{ "path": "/home/ws_0862c/uploads" }'

MCP

This action is also available via the webspace_mkdir MCP tool.