Folders
Get the folder tree
Every folder of the workspace in one region, nested under its parent, as the web app's sidebar shows it.
Authorization
AuthorizationstringheaderrequiredBearer <key>, where <key> is a workspace API key or a user API key. See Authentication.
workspace_id*integerThe workspace. List the ones your key can reach with GET /v1/workspaces.
region*RegionsRegion of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them
"besg""usnv"OK
application/json- response
Every folder of the workspace in one region, nested under its parent
region*Regions"besg""usnv"folders*array<>The folders at the root, each with its sub-folders
curl -X GET 'https://api.stacksync.com/v1/workspaces/0/folders/tree?region=besg'{ "region": "besg", "folders": [ { "folder_id": "<folder_id>", "folder_name": "<folder_name>", "folders": [] } ]}GETGet a folder
The folder's details in the region asked: name, resource id, parent folder and timestamps.
POSTCreate a folder
At the root, or inside another folder of the same region (parent_folder_id). A folder_resource_id or name already used in the region of the workspace is refused with 409. With validate_only, every check runs and 204 answers, nothing is created.