Create a folder

Create directories on your server. Safe to call if the folder already exists.

POST Endpoint

POST https://pushftp.com/api/mkdir/{connectionId}

Requires: Authorization: Bearer pftp_your_key

Create a folder

curl -X POST https://pushftp.com/api/mkdir/YOUR_CONNECTION_ID \
  -H "Authorization: Bearer pftp_your_key" \
  -H "Content-Type: application/json" \
  -d '{"path": "/uploads/2026/april"}'

Log in to see your connection IDs pre-filled.

pathrequired
Full path of the folder to create. Parent folders are created automatically.

Response

{
  "success": true,
  "path": "/uploads/2026/april",
  "created": true
}

If the folder already exists, created will be false — no error is returned.