API

Files and spaces.

Spaces are how people open storage. A path is relative to the space, uses /, and has no leading slash. kind on a space is shared or personal. level is view, edit, or full. icon is folder, home, users, film, image, music, or briefcase. The older root-and-path calls still work.

While Trash is on (Admin → System → Maintenance), deleting a file or folder moves it to the caller's Trash, and it is deleted for good after the number of days the administrator chose. Send permanent=true to delete it for good at once. A service account's key always deletes for good, because nobody would see its Trash. The Trash calls list, restore, and delete what is there.

Authentication, errors, and paging are in the API reference. Sending the key is described once there.

Spaces

GET /api/v1/home/live

What is moving now that the caller can see, with the 24-hour counts. Polled by the home screen.

Who. Any user with a key that has the read scope. A key with the admin scope includes the others. The key needs a license that includes the REST API.

storage is a StorageSummary: the room the caller has left in their private folders and in shared spaces, and for an administrator every location and everything nearly full.

Success. 200.

FieldTypeMeaning
asOfstringrequiredWhen the counts were read. The list and the rate are always current.
countsobjectrequired

It is an object:

FieldTypeMeaning
runningintegerrequired
queuedintegerrequired
pausedintegerrequired
done24hintegerrequired
failed24hintegerrequired
moved24hintegerrequiredBytes moved by transfers that finished in the last 24 hours.
sendingBpsintegerrequiredSum of the visible running transfers, bits per second.
ceilingBpsintegeroptional, left out when emptyThe last speed check's sending ceiling, bits per second.
runningarray of objectsrequiredUp to five, fastest first.

Each item is an object:

FieldTypeMeaning
idstringrequiredThe id.
namestringrequiredThe name.
directionstringrequiredupload, download or move.
kindstringrequiredtransfer for a person's, automation for a hot folder's or sync's.
ownerobjectrequired

It is an object:

FieldTypeMeaning
kindstringrequiredyou, person, hotFolder or sync.
namestringrequiredThe name.
farEndstringoptionalThe Place, or the address of the far end. Absent when unknown.
bpsintegerrequiredBits per second now. Zero when paused or waiting.
doneintegerrequired
sizeintegerrequiredSize in bytes.
locationItemPlaceoptionalWhere the far end is, when the map is on and the place is known.

It is an object:

FieldTypeMeaning
placeobjectrequired

It is an object:

FieldTypeMeaning
namestringrequiredThe name.
latnumberrequired
lonnumberrequired
approximatebooleanrequiredFrom the network address rather than a saved place.
pausedarray of objectsrequired

Each item is an object:

FieldTypeMeaning
idstringrequiredThe id.
namestringrequiredThe name.
directionstringrequiredupload, download or move.
kindstringrequiredtransfer for a person's, automation for a hot folder's or sync's.
ownerobjectrequired

It is an object:

FieldTypeMeaning
kindstringrequiredyou, person, hotFolder or sync.
namestringrequiredThe name.
farEndstringoptionalThe Place, or the address of the far end. Absent when unknown.
bpsintegerrequiredBits per second now. Zero when paused or waiting.
doneintegerrequired
sizeintegerrequiredSize in bytes.
locationItemPlaceoptionalWhere the far end is, when the map is on and the place is known.

It is an object:

FieldTypeMeaning
placeobjectrequired

It is an object:

FieldTypeMeaning
namestringrequiredThe name.
latnumberrequired
lonnumberrequired
approximatebooleanrequiredFrom the network address rather than a saved place.
queuedarray of objectsrequired

Each item is an object:

FieldTypeMeaning
idstringrequiredThe id.
namestringrequiredThe name.
directionstringrequiredupload, download or move.
kindstringrequiredtransfer for a person's, automation for a hot folder's or sync's.
ownerobjectrequired

It is an object:

FieldTypeMeaning
kindstringrequiredyou, person, hotFolder or sync.
namestringrequiredThe name.
farEndstringoptionalThe Place, or the address of the far end. Absent when unknown.
bpsintegerrequiredBits per second now. Zero when paused or waiting.
doneintegerrequired
sizeintegerrequiredSize in bytes.
locationItemPlaceoptionalWhere the far end is, when the map is on and the place is known.

It is an object:

FieldTypeMeaning
placeobjectrequired

It is an object:

FieldTypeMeaning
namestringrequiredThe name.
latnumberrequired
lonnumberrequired
approximatebooleanrequiredFrom the network address rather than a saved place.
moreintegerrequiredRunning, paused and queued items not listed.
mapMapoptional, left out when empty

It is an object:

FieldTypeMeaning
serverPlaceoptionalAbsent until an administrator saves the server's place.

It is an object:

FieldTypeMeaning
namestringrequiredThe name.
latnumberrequired
lonnumberrequired
pointsarray of objectsrequiredUp to [MAP_POINTS], fastest first.

Each item is an object:

FieldTypeMeaning
placeobjectrequired

It is an object:

FieldTypeMeaning
placeobjectrequired
approximatebooleanrequiredFrom the network address rather than a saved place.
kindstringrequiredtransfer or automation: the kind of the fastest one here.
flowstringrequiredout the far end is receiving, in it is sending, both when a place has each. A move counts as out.
pausedbooleanrequiredEvery transfer here is paused.
countintegerrequired
bpsintegerrequired
idstringoptionalThe transfer to open, when there is only one.
moreintegerrequiredPlaces past the cap.
withoutLocationintegerrequiredRunning or paused transfers with no known place.
storageobjectrequiredThe caller's storage: room left in their private folders and in shared spaces, and for an administrator every location and what is nearly full.

It is an object:

FieldTypeMeaning
homeobjectrequired

It is an object:

FieldTypeMeaning
usedintegerrequired
limitintegeroptionalNone when no level limits it.
remainingintegeroptional
levelLeveloptional
scopeScopeoptional

It is an object:

FieldTypeMeaning
eventvaluerequired
ruleobjectrequired
nowintegerrequired
stepsvaluerequiredsteps.<name>.output for the steps that have run.
secrets'a BTreeMap<String, String>optionalsecret.<name>. None leaves secret undefined, which is how a command's arguments are kept free of secrets: argv is readable by every user on the machine.
command_root'a PathoptionalFor a command step: the storage root on disk. file.path then becomes the full path inside it, since a program cannot be handed a path relative to a root it has never heard of.
namestringrequiredThe space, location or group the limit belongs to.
idstringoptionalThe id.
warnbooleanrequiredAt 90% of the limit or more.
overbooleanrequired
countingbooleanrequired
lowSpacebooleanrequiredUnder 5 % of the disk under the location is free. Unknown is false.
volumeVolumeoptionalThe disk under the location, for an administrator on a folder with no limit. Left out for everyone else; null when it could not be read.

It is an object:

FieldTypeMeaning
totalBytesintegerrequired
freeBytesintegerrequired
measuredAtstringrequiredA time, as RFC 3339.
cloudbooleanoptionalThe location is cloud storage, which has no fixed size. Administrators only.
historyarray of SampleoptionalUp to 31 days of used, oldest first, with the disk beside each day. Administrators only, on a local folder with no limit.

Each item is an object:

FieldTypeMeaning
daystringrequired
usedBytesintegerrequired
volumeUsedBytesintegeroptionalThe disk's used bytes that day; None when it could not be read.
trashintegeroptionalHow much of the person's own Trash counts in used, when a limit applies. Left out when there is none.
sharedobjectrequired

It is an object:

FieldTypeMeaning
usedintegerrequired
limitintegeroptionalNone when no level limits it.
remainingintegeroptional
levelLeveloptional
scopeScopeoptional

It is an object:

FieldTypeMeaning
eventvaluerequired
ruleobjectrequired
nowintegerrequired
stepsvaluerequiredsteps.<name>.output for the steps that have run.
secrets'a BTreeMap<String, String>optionalsecret.<name>. None leaves secret undefined, which is how a command's arguments are kept free of secrets: argv is readable by every user on the machine.
command_root'a PathoptionalFor a command step: the storage root on disk. file.path then becomes the full path inside it, since a program cannot be handed a path relative to a root it has never heard of.
namestringrequiredThe space, location or group the limit belongs to.
idstringoptionalThe id.
warnbooleanrequiredAt 90% of the limit or more.
overbooleanrequired
countingbooleanrequired
lowSpacebooleanrequiredUnder 5 % of the disk under the location is free. Unknown is false.
volumeVolumeoptionalThe disk under the location, for an administrator on a folder with no limit. Left out for everyone else; null when it could not be read.

It is an object:

FieldTypeMeaning
totalBytesintegerrequired
freeBytesintegerrequired
measuredAtstringrequiredA time, as RFC 3339.
cloudbooleanoptionalThe location is cloud storage, which has no fixed size. Administrators only.
historyarray of SampleoptionalUp to 31 days of used, oldest first, with the disk beside each day. Administrators only, on a local folder with no limit.

Each item is an object:

FieldTypeMeaning
daystringrequired
usedBytesintegerrequired
volumeUsedBytesintegeroptionalThe disk's used bytes that day; None when it could not be read.
trashintegeroptionalHow much of the person's own Trash counts in used, when a limit applies. Left out when there is none.
receivedintegerrequiredBytes received through this person's receive links.
countedSoFarintegeroptionalFiles counted so far, while a count runs.
locationsarray of LocationUseoptional

Each item is an object:

FieldTypeMeaning
idstringrequiredThe id.
namestringrequiredThe name.
kindstringrequired
quotaintegeroptional
usageobjectrequired

It is an object:

FieldTypeMeaning
usedintegerrequired
filesintegerrequired
countedAtstringoptionalA time, as RFC 3339.
countingbooleanrequiredNo count has finished yet, or one is walking the location now.
capacityCapacityoptional

It is an object:

FieldTypeMeaning
freeintegerrequired
totalintegerrequiredHow many matched, including ones not on this page.
nearlyFullarray of Nearlyoptional

Each item is an object:

FieldTypeMeaning
levelobjectrequired
scopeScopeoptional

It is an object:

FieldTypeMeaning
eventvaluerequired
ruleobjectrequired
nowintegerrequired
stepsvaluerequiredsteps.<name>.output for the steps that have run.
secrets'a BTreeMap<String, String>optionalsecret.<name>. None leaves secret undefined, which is how a command's arguments are kept free of secrets: argv is readable by every user on the machine.
command_root'a PathoptionalFor a command step: the storage root on disk. file.path then becomes the full path inside it, since a program cannot be handed a path relative to a root it has never heard of.
idstringrequiredThe id.
namestringrequiredThe name.
usedintegerrequired
limitintegerrequired
{
  "asOf": "example",
  "counts": {
    "running": 1,
    "queued": 1,
    "paused": 1,
    "done24h": 1,
    "failed24h": 1,
    "moved24h": 1
  },
  "sendingBps": 1,
  "running": [
    {
      "id": "k7Qm2sLp9vX4aB1c",
      "name": "Rush delivery",
      "direction": "download",
      "kind": "file",
      "owner": {
        "kind": "file",
        "name": "Rush delivery"
      },
      "bps": 1,
      "done": 1,
      "size": 1048576
    }
  ],
  "paused": [
    {
      "id": "k7Qm2sLp9vX4aB1c",
      "name": "Rush delivery",
      "direction": "download",
      "kind": "file",
      "owner": {
        "kind": "file",
        "name": "Rush delivery"
      },
      "bps": 1,
      "done": 1,
      "size": 1048576
    }
  ],
  "queued": [
    {
      "id": "k7Qm2sLp9vX4aB1c",
      "name": "Rush delivery",
      "direction": "download",
      "kind": "file",
      "owner": {
        "kind": "file",
        "name": "Rush delivery"
      },
      "bps": 1,
      "done": 1,
      "size": 1048576
    }
  ],
  "more": 1,
  "storage": {
    "home": {
      "used": 1,
      "name": "Rush delivery",
      "warn": true,
      "over": true,
      "counting": true,
      "lowSpace": true
    },
    "shared": {
      "used": 1,
      "name": "Rush delivery",
      "warn": true,
      "over": true,
      "counting": true,
      "lowSpace": true
    },
    "received": 1,
    "countedSoFar": 1,
    "locations": [
      {
        "id": "k7Qm2sLp9vX4aB1c",
        "name": "Rush delivery",
        "kind": "shared",
        "quota": 1,
        "usage": {
          "used": 1,
          "files": 1,
          "countedAt": "2026-10-05T18:00:00Z",
          "counting": true
        },
        "capacity": {
          "free": 1,
          "total": 1
        }
      }
    ],
    "nearlyFull": [
      {
        "level": {},
        "scope": {
          "event": {
            "file": {
              "name": "rush.mov"
            }
          },
          "rule": {},
          "now": 1,
          "steps": {
            "file": {
              "name": "rush.mov"
            }
          },
          "secrets": {},
          "command_root": {}
        },
        "id": "k7Qm2sLp9vX4aB1c",
        "name": "Rush delivery",
        "used": 1,
        "limit": 50
      }
    ]
  }
}

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
403forbiddenthe key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "unauthenticated",
    "message": "sign in to continue"
  }
}

GET /api/v1/home/series

Throughput the caller can see, in 48 half-hour points over the last 24 hours.

Who. Any user with a key that has the read scope. A key with the admin scope includes the others. The key needs a license that includes the REST API.

Success. 200.

FieldTypeMeaning
pointsarray of objectsrequired

Each item is an object:

FieldTypeMeaning
tsintegerrequiredUnix seconds at the start of the half hour.
bpsintegerrequiredAverage over the half hour, bits per second. The current half hour is averaged over the part that has passed.
ceilingBpsintegeroptional, left out when empty
{
  "points": [
    {
      "ts": 1,
      "bps": 1
    }
  ],
  "ceilingBps": 1
}

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
403forbiddenthe key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "unauthenticated",
    "message": "sign in to continue"
  }
}

GET /api/v1/home

The spaces this caller can open. Personal spaces come first. Each has usage, a Room: the room the caller has left there.

Who. Any user with a key that has the read scope. A key with the admin scope includes the others. The key needs a license that includes the REST API.

Success. 200.

FieldTypeMeaning
spacesarray of objectsrequired

Each item is an object:

FieldTypeMeaning
idstringrequiredThe id.
namestringrequiredThe name.
iconstringrequiredfolder, home, users, film, image, music, or briefcase.
kindstringrequired
levelstringrequiredview, edit or full. The best access this person has anywhere in the space.
usageobjectrequiredThe room this person has left here.

It is an object:

FieldTypeMeaning
usedintegerrequired
limitintegeroptionalNone when no level limits it.
remainingintegeroptional
levelLeveloptional
scopeScopeoptional

It is an object:

FieldTypeMeaning
eventvaluerequired
ruleobjectrequired
nowintegerrequired
stepsvaluerequiredsteps.<name>.output for the steps that have run.
secrets'a BTreeMap<String, String>optionalsecret.<name>. None leaves secret undefined, which is how a command's arguments are kept free of secrets: argv is readable by every user on the machine.
command_root'a PathoptionalFor a command step: the storage root on disk. file.path then becomes the full path inside it, since a program cannot be handed a path relative to a root it has never heard of.
namestringrequiredThe space, location or group the limit belongs to.
idstringoptionalThe id.
warnbooleanrequiredAt 90% of the limit or more.
overbooleanrequired
countingbooleanrequired
lowSpacebooleanrequiredUnder 5 % of the disk under the location is free. Unknown is false.
volumeVolumeoptionalThe disk under the location, for an administrator on a folder with no limit. Left out for everyone else; null when it could not be read.

It is an object:

FieldTypeMeaning
totalBytesintegerrequired
freeBytesintegerrequired
measuredAtstringrequiredA time, as RFC 3339.
cloudbooleanoptionalThe location is cloud storage, which has no fixed size. Administrators only.
historyarray of SampleoptionalUp to 31 days of used, oldest first, with the disk beside each day. Administrators only, on a local folder with no limit.

Each item is an object:

FieldTypeMeaning
daystringrequired
usedBytesintegerrequired
volumeUsedBytesintegeroptionalThe disk's used bytes that day; None when it could not be read.
trashintegeroptionalHow much of the person's own Trash counts in used, when a limit applies. Left out when there is none.
anySpacesbooleanrequiredWhether this server has any space at all. An empty list means "nothing has been set up yet" when this is false and "none of it is yours" when it is true, and the two need different words.
{
  "spaces": [
    {
      "id": "k7Qm2sLp9vX4aB1c",
      "name": "Rush delivery",
      "icon": "folder",
      "kind": "shared",
      "level": "edit",
      "usage": {
        "used": 1,
        "name": "Rush delivery",
        "warn": true,
        "over": true,
        "counting": true,
        "lowSpace": true
      }
    }
  ],
  "anySpaces": true
}

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
403forbiddenthe key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "unauthenticated",
    "message": "sign in to continue"
  }
}
Personal spaces are listed first. This is the call to make before you browse files.

GET /api/v1/spaces/{id}

One space: name, icon, kind and the caller's level. An administrator also gets the location's name.

Who. Any user with a key that has the read scope. A key with the admin scope includes the others. The key needs a license that includes the REST API.

Parameters.

NameInTypeMeaning
idpathstringrequiredThe resource's id.

Success. 200.

FieldTypeMeaning
idstringrequiredThe id.
namestringrequiredThe name.
iconstringrequiredfolder, home, users, film, image, music, or briefcase.
kindstringrequired
levelstringrequired
locationNamestringoptional, left out when empty
{
  "id": "k7Qm2sLp9vX4aB1c",
  "name": "Rush delivery",
  "icon": "folder",
  "kind": "shared",
  "level": "edit",
  "locationName": "example"
}

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
404not_foundnot there, or not visible to this caller
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
403forbiddenthe key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "not_found",
    "message": "not found"
  }
}

GET /api/v1/spaces/{id}/files

One folder inside a space.

Who. Any user with a key that has the read scope. A key with the admin scope includes the others. The key needs a license that includes the REST API.

Each entry has a level: view, edit, full, or traverse when the folder is only on the way to a grant. A file also has its version and preview: ok, none, tooLarge, kindOff or spaceOff. The listing's usage is a Room: the room the caller has left in this folder.

Parameters.

NameInTypeMeaning
idpathstringrequiredThe space.
pathquerystringoptionalFolder, relative to the space.

Encode the query value. A slash in a path may stay as / or be written %2F; the server reads the decoded value. Do not put a leading slash on the path.

Success. 200.

FieldTypeMeaning
pathstringrequiredA path relative to the space or the storage location, with / between folders and no leading slash.
levelstringrequired
itemsarray of objectsrequiredThe records in this reply.

Each item is an object:

FieldTypeMeaning
namestringrequiredThe name.
pathstringrequiredA path relative to the space or the storage location, with / between folders and no leading slash.
kindstringrequired
sizeintegerrequiredSize in bytes.
modifiedstringoptional
levelstringrequiredview, edit, full, or traverse when the folder is only on the way to a grant further down.
versionstringoptionalThe storage's version marker for a file, so a cached thumbnail can tell the file changed.
previewstringoptionalFor a file, whether it could be previewed: ok, none, tooLarge, kindOff or spaceOff. From the settings alone; its bytes are checked when it is opened.
usageobjectrequiredThe room this person has left in this folder.

It is an object:

FieldTypeMeaning
usedintegerrequired
limitintegeroptionalNone when no level limits it.
remainingintegeroptional
levelLeveloptional
scopeScopeoptional

It is an object:

FieldTypeMeaning
eventvaluerequired
ruleobjectrequired
nowintegerrequired
stepsvaluerequiredsteps.<name>.output for the steps that have run.
secrets'a BTreeMap<String, String>optionalsecret.<name>. None leaves secret undefined, which is how a command's arguments are kept free of secrets: argv is readable by every user on the machine.
command_root'a PathoptionalFor a command step: the storage root on disk. file.path then becomes the full path inside it, since a program cannot be handed a path relative to a root it has never heard of.
namestringrequiredThe space, location or group the limit belongs to.
idstringoptionalThe id.
warnbooleanrequiredAt 90% of the limit or more.
overbooleanrequired
countingbooleanrequired
lowSpacebooleanrequiredUnder 5 % of the disk under the location is free. Unknown is false.
volumeVolumeoptionalThe disk under the location, for an administrator on a folder with no limit. Left out for everyone else; null when it could not be read.

It is an object:

FieldTypeMeaning
totalBytesintegerrequired
freeBytesintegerrequired
measuredAtstringrequiredA time, as RFC 3339.
cloudbooleanoptionalThe location is cloud storage, which has no fixed size. Administrators only.
historyarray of SampleoptionalUp to 31 days of used, oldest first, with the disk beside each day. Administrators only, on a local folder with no limit.

Each item is an object:

FieldTypeMeaning
daystringrequired
usedBytesintegerrequired
volumeUsedBytesintegeroptionalThe disk's used bytes that day; None when it could not be read.
trashintegeroptionalHow much of the person's own Trash counts in used, when a limit applies. Left out when there is none.
{
  "path": "projects/rush",
  "level": "edit",
  "items": [
    {
      "name": "Rush delivery",
      "path": "projects/rush",
      "kind": "file",
      "size": 1048576,
      "modified": "example",
      "level": "edit",
      "version": "example",
      "preview": "example"
    }
  ],
  "usage": {
    "used": 1,
    "name": "Rush delivery",
    "warn": true,
    "over": true,
    "counting": true,
    "lowSpace": true
  }
}

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
400bad_requestthe request is not valid
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
403forbiddenthe key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "bad_request",
    "message": "the request is not valid"
  }
}

DELETE /api/v1/spaces/{id}/files

Delete a file or a folder inside a space. While Trash is on, a person's delete moves it to Trash; see /api/v1/trash.

Who. Any user with a key that has the delete scope. A key with the admin scope includes the others. The key needs a license that includes the REST API.

Moves the file or folder to the caller's Trash while the Trash setting (trashDays in the maintenance settings) is on. It leaves the listing at once. permanent=true, a service account's key, or Trash being off deletes it for good instead.

Parameters.

NameInTypeMeaning
idpathstringrequiredThe space.
pathquerystringoptionalWhat to delete, relative to the space.
permanentquerybooleanoptionalDelete for good even when Trash is on.

Encode the query value. A slash in a path may stay as / or be written %2F; the server reads the decoded value. Do not put a leading slash on the path.

Success. 200.

The reply has no body.

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
400bad_requestname a file or a folder
404not_foundnot there, or not visible to this caller
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
403forbiddenthe key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "bad_request",
    "message": "name a file or a folder"
  }
}

POST /api/v1/spaces/{id}/folder

Make a folder inside a space. Body: {path}.

Who. Any user with a key that has the write scope. A key with the admin scope includes the others. The key needs a license that includes the REST API.

Parameters.

NameInTypeMeaning
idpathstringrequiredThe resource's id.

Request body. JSON.

A field the server does not know is ignored.

FieldTypeMeaning
pathstringoptionalA path relative to the space or the storage location, with / between folders and no leading slash.
{
  "path": "projects/rush"
}

Success. 200.

FieldTypeMeaning
namestringrequiredThe name.
pathstringrequiredA path relative to the space or the storage location, with / between folders and no leading slash.
kindstringrequired
sizeintegerrequiredSize in bytes.
modifiedstringoptional, left out when empty
{
  "name": "Rush delivery",
  "path": "projects/rush",
  "kind": "file",
  "size": 1048576,
  "modified": "example"
}

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
400bad_requestname the folder
409conflictsomething is already there
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
403forbiddenthe key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "bad_request",
    "message": "name the folder"
  }
}

POST /api/v1/spaces/{id}/rename

Rename or move inside a space. Body: {from, to}.

Who. Any user with a key that has the write scope. A key with the admin scope includes the others. The key needs a license that includes the REST API.

Parameters.

NameInTypeMeaning
idpathstringrequiredThe resource's id.

Request body. JSON.

A field the server does not know is ignored.

FieldTypeMeaning
fromstringoptional
tostringrequired
{
  "from": "projects/rush",
  "to": "projects/rush"
}

Success. 200.

FieldTypeMeaning
namestringrequiredThe name.
pathstringrequiredA path relative to the space or the storage location, with / between folders and no leading slash.
kindstringrequired
sizeintegerrequiredSize in bytes.
modifiedstringoptional, left out when empty
{
  "name": "Rush delivery",
  "path": "projects/rush",
  "kind": "file",
  "size": 1048576,
  "modified": "example"
}

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
400bad_requestname a file or a folder
409conflictsomething is already there
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
403forbiddenthe key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "bad_request",
    "message": "name a file or a folder"
  }
}

POST /api/v1/spaces/{id}/move

Move files and folders into a folder of this space or another one. Body: {paths, toSpace, toPath}. Replies {transferId, done}; when done is false the move carries on as a transfer with direction move.

Who. Any user with a key that has the write scope. A key with the admin scope includes the others. The key needs a license that includes the REST API.

Parameters.

NameInTypeMeaning
idpathstringrequiredThe resource's id.

Request body. JSON.

A field the server does not know is ignored.

FieldTypeMeaning
pathsarray of stringrequiredFiles and folders in this space.
toSpacestringrequiredThe space they go to, which may be this one.
toPathstringoptionalThe folder in that space they go into. Empty for its top.
{
  "paths": [
    "projects/rush"
  ],
  "toSpace": "example",
  "toPath": "projects/rush"
}

Success. 200.

FieldTypeMeaning
transferIdstringrequiredThe id.
donebooleanrequiredTrue when everything is already in its new place. False while the files are being copied there; the transfer says how it is going.
{
  "transferId": "k7Qm2sLp9vX4aB1c",
  "done": true
}

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
400bad_requesteverything chosen is already in that folder
409conflictsomething is already there
404not_foundnot there, or not visible to this caller
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
403forbiddenthe key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "bad_request",
    "message": "everything chosen is already in that folder"
  }
}

Managing spaces

GET /api/v1/admin/spaces

Every space, and storage locations that are not shared yet.

Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.

Success. 200.

FieldTypeMeaning
spacesarray of objectsrequired

Each item is an object:

FieldTypeMeaning
idstringrequiredThe id.
namestringrequiredThe name.
iconstringrequiredfolder, home, users, film, image, music, or briefcase.
kindstringrequired
rootIdstringrequiredThe id.
basePathstringrequired
templatestringoptional
forGroupstringoptional
positionintegerrequired
createdAtstringrequiredA time, as RFC 3339.
allowPreviewsbooleanrequired
locationNamestringrequired
locationKindstringrequired
locationPathstringrequired
privateFoldersintegeroptionalHow many people have a private folder in a personal space.
quotaintegeroptionalBytes the space may hold; on a personal space, all its private folders together. None is no limit.
usageobjectrequired

It is an object:

FieldTypeMeaning
usedintegerrequired
filesintegerrequired
countedAtstringoptionalA time, as RFC 3339.
countingbooleanrequiredNo count has finished yet, or one is walking the location now.
effectiveEffectiveoptional

It is an object:

FieldTypeMeaning
bytesintegerrequiredSize in bytes.
cappedBystringoptionallocation, space, group or disk.
warningsarray of stringrequiredLimits that cannot all be met. Saving is never refused for these.
unsharedarray of objectsrequired

Each item is an object:

FieldTypeMeaning
idstringrequiredThe id.
namestringrequiredThe name.
kindstringrequired
signInOpenToAnyonearray of stringrequiredThe sign-in methods that let in anybody the directory or provider accepts, each of whom gets a folder in a personal space for everyone.
{
  "spaces": [
    {
      "id": "k7Qm2sLp9vX4aB1c",
      "name": "Rush delivery",
      "icon": "folder",
      "kind": "shared",
      "rootId": "k7Qm2sLp9vX4aB1c",
      "basePath": "projects/rush",
      "position": 1,
      "createdAt": "2026-10-05T18:00:00Z",
      "allowPreviews": true,
      "locationName": "example",
      "locationKind": "example",
      "locationPath": "projects/rush",
      "usage": {
        "used": 1,
        "files": 1,
        "countedAt": "2026-10-05T18:00:00Z",
        "counting": true
      },
      "warnings": [
        "example"
      ]
    }
  ],
  "unshared": [
    {
      "id": "k7Qm2sLp9vX4aB1c",
      "name": "Rush delivery",
      "kind": "shared"
    }
  ],
  "signInOpenToAnyone": [
    "example"
  ]
}

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
403forbiddenthe key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "unauthenticated",
    "message": "sign in to continue"
  }
}

POST /api/v1/admin/spaces

Create a space.

Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.

Body: {name, icon, rootId, basePath, kind: shared|personal, template, forGroup, allowPreviews, quota}. allowPreviews is true when left out. quota is bytes; on a personal space it is the total for all its private folders. Each space in a reply has quota, usage (a Usage), effective {bytes, cappedBy} and warnings.

Request body. JSON.

A field the server does not know is ignored.

FieldTypeMeaning
namestringrequiredThe name.
iconstringoptionalfolder, home, users, film, image, music, or briefcase.
rootIdstringrequiredThe id.
basePathstringoptional
kindstringrequired
templatestringoptional
forGroupstringoptional
allowPreviewsbooleanoptionalOn when left out.
quotaintegeroptionalBytes. Absent or null is no limit.
{
  "name": "Rush delivery",
  "rootId": "k7Qm2sLp9vX4aB1c",
  "kind": "shared"
}

Success. 200.

FieldTypeMeaning
idstringrequiredThe id.
namestringrequiredThe name.
iconstringrequiredfolder, home, users, film, image, music, or briefcase.
kindstringrequired
rootIdstringrequiredThe id.
basePathstringrequired
templatestringoptional
forGroupstringoptional
positionintegerrequired
createdAtstringrequiredA time, as RFC 3339.
allowPreviewsbooleanrequired
locationNamestringrequired
locationKindstringrequired
locationPathstringrequired
privateFoldersintegeroptional, left out when emptyHow many people have a private folder in a personal space.
quotaintegeroptionalBytes the space may hold; on a personal space, all its private folders together. None is no limit.
usageobjectrequired

It is an object:

FieldTypeMeaning
usedintegerrequired
filesintegerrequired
countedAtstringoptionalA time, as RFC 3339.
countingbooleanrequiredNo count has finished yet, or one is walking the location now.
effectiveEffectiveoptional, left out when empty

It is an object:

FieldTypeMeaning
bytesintegerrequiredSize in bytes.
cappedBystringoptionallocation, space, group or disk.
warningsarray of stringrequiredLimits that cannot all be met. Saving is never refused for these.
{
  "id": "k7Qm2sLp9vX4aB1c",
  "name": "Rush delivery",
  "icon": "folder",
  "kind": "shared",
  "rootId": "k7Qm2sLp9vX4aB1c",
  "basePath": "projects/rush",
  "position": 1,
  "createdAt": "2026-10-05T18:00:00Z",
  "allowPreviews": true,
  "locationName": "example",
  "locationKind": "example",
  "locationPath": "projects/rush",
  "usage": {
    "used": 1,
    "files": 1,
    "countedAt": "2026-10-05T18:00:00Z",
    "counting": true
  },
  "warnings": [
    "example"
  ]
}

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
400bad_requestthe name, kind or template is not usable
409conflictthe name is taken
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
403forbiddenthe key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "bad_request",
    "message": "the name, kind or template is not usable"
  }
}

POST /api/v1/admin/spaces/preview

The warnings a new space would raise, without saving it. Same body as creating one.

Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.

Request body. JSON.

A field the server does not know is ignored.

FieldTypeMeaning
namestringrequiredThe name.
iconstringoptionalfolder, home, users, film, image, music, or briefcase.
rootIdstringrequiredThe id.
basePathstringoptional
kindstringrequired
templatestringoptional
forGroupstringoptional
allowPreviewsbooleanoptionalOn when left out.
quotaintegeroptionalBytes. Absent or null is no limit.
{
  "name": "Rush delivery",
  "rootId": "k7Qm2sLp9vX4aB1c",
  "kind": "shared"
}

Success. 200.

FieldTypeMeaning
warningsarray of stringrequired
{
  "warnings": [
    "example"
  ]
}

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
403forbiddenthe key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "unauthenticated",
    "message": "sign in to continue"
  }
}

GET /api/v1/admin/spaces/{id}

One space, including the location path. A personal space includes the people who have opened their folder; a shared space includes topUsers, the people whose files take the most room.

Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.

Parameters.

NameInTypeMeaning
idpathstringrequiredThe resource's id.

Success. 200.

FieldTypeMeaning
spaceobjectrequired

It is an object:

FieldTypeMeaning
idstringrequiredThe id.
namestringrequiredThe name.
iconstringrequiredfolder, home, users, film, image, music, or briefcase.
kindstringrequired
rootIdstringrequiredThe id.
basePathstringrequired
templatestringoptional
forGroupstringoptional
positionintegerrequired
createdAtstringrequiredA time, as RFC 3339.
allowPreviewsbooleanrequired
locationNamestringrequired
locationKindstringrequired
locationPathstringrequired
privateFoldersintegeroptionalHow many people have a private folder in a personal space.
quotaintegeroptionalBytes the space may hold; on a personal space, all its private folders together. None is no limit.
usageobjectrequired

It is an object:

FieldTypeMeaning
usedintegerrequired
filesintegerrequired
countedAtstringoptionalA time, as RFC 3339.
countingbooleanrequiredNo count has finished yet, or one is walking the location now.
effectiveEffectiveoptional

It is an object:

FieldTypeMeaning
bytesintegerrequiredSize in bytes.
cappedBystringoptionallocation, space, group or disk.
warningsarray of stringrequiredLimits that cannot all be met. Saving is never refused for these.
peoplearray of objectsrequired

Each item is an object:

FieldTypeMeaning
userIdstringrequiredThe id.
emailstringrequiredAn email address.
displayNamestringrequired
signInOpenToAnyonearray of stringrequired
topUsersarray of objectsrequiredIn a shared space, the people whose files take the most room.

Each item is an object:

FieldTypeMeaning
userIdstringrequiredThe id.
namestringrequiredThe name.
usedintegerrequired
{
  "space": {
    "id": "k7Qm2sLp9vX4aB1c",
    "name": "Rush delivery",
    "icon": "folder",
    "kind": "shared",
    "rootId": "k7Qm2sLp9vX4aB1c",
    "basePath": "projects/rush",
    "position": 1,
    "createdAt": "2026-10-05T18:00:00Z",
    "allowPreviews": true,
    "locationName": "example",
    "locationKind": "example",
    "locationPath": "projects/rush",
    "usage": {
      "used": 1,
      "files": 1,
      "countedAt": "2026-10-05T18:00:00Z",
      "counting": true
    },
    "warnings": [
      "example"
    ]
  },
  "people": [
    {
      "userId": "k7Qm2sLp9vX4aB1c",
      "email": "[email protected]",
      "displayName": "example"
    }
  ],
  "signInOpenToAnyone": [
    "example"
  ],
  "topUsers": [
    {
      "userId": "k7Qm2sLp9vX4aB1c",
      "name": "Rush delivery",
      "used": 1
    }
  ]
}

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
403forbiddenthe key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "unauthenticated",
    "message": "sign in to continue"
  }
}

PATCH /api/v1/admin/spaces/{id}

Rename a space, change its icon or position, change which group a personal space is for, turn previews in it on or off (allowPreviews), or set its quota in bytes (null for no limit).

Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.

Parameters.

NameInTypeMeaning
idpathstringrequiredThe resource's id.

Request body. JSON.

A field the server does not know is ignored.

FieldTypeMeaning
namestringoptionalThe name.
iconstringoptionalfolder, home, users, film, image, music, or briefcase.
positionintegeroptional
forGroupstringoptional
allowPreviewsbooleanoptional
quotaintegeroptionalBytes. Left out keeps the quota; null removes it.
{
  "name": "Rush delivery",
  "icon": "folder",
  "position": 1,
  "forGroup": "example",
  "allowPreviews": true,
  "quota": 1
}

Success. 200.

FieldTypeMeaning
idstringrequiredThe id.
namestringrequiredThe name.
iconstringrequiredfolder, home, users, film, image, music, or briefcase.
kindstringrequired
rootIdstringrequiredThe id.
basePathstringrequired
templatestringoptional
forGroupstringoptional
positionintegerrequired
createdAtstringrequiredA time, as RFC 3339.
allowPreviewsbooleanrequired
locationNamestringrequired
locationKindstringrequired
locationPathstringrequired
privateFoldersintegeroptional, left out when emptyHow many people have a private folder in a personal space.
quotaintegeroptionalBytes the space may hold; on a personal space, all its private folders together. None is no limit.
usageobjectrequired

It is an object:

FieldTypeMeaning
usedintegerrequired
filesintegerrequired
countedAtstringoptionalA time, as RFC 3339.
countingbooleanrequiredNo count has finished yet, or one is walking the location now.
effectiveEffectiveoptional, left out when empty

It is an object:

FieldTypeMeaning
bytesintegerrequiredSize in bytes.
cappedBystringoptionallocation, space, group or disk.
warningsarray of stringrequiredLimits that cannot all be met. Saving is never refused for these.
{
  "id": "k7Qm2sLp9vX4aB1c",
  "name": "Rush delivery",
  "icon": "folder",
  "kind": "shared",
  "rootId": "k7Qm2sLp9vX4aB1c",
  "basePath": "projects/rush",
  "position": 1,
  "createdAt": "2026-10-05T18:00:00Z",
  "allowPreviews": true,
  "locationName": "example",
  "locationKind": "example",
  "locationPath": "projects/rush",
  "usage": {
    "used": 1,
    "files": 1,
    "countedAt": "2026-10-05T18:00:00Z",
    "counting": true
  },
  "warnings": [
    "example"
  ]
}

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
400bad_requestthe request is not valid
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
403forbiddenthe key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "bad_request",
    "message": "the request is not valid"
  }
}

DELETE /api/v1/admin/spaces/{id}

Remove a space.

Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.

Access another shared space also holds moves to the innermost such space; all other access on the space is removed, and one space.deleted audit entry lists both. The files stay on the storage location. Jobs keep their location and path.

Parameters.

NameInTypeMeaning
idpathstringrequiredThe resource's id.

Success. 200.

The reply has no body.

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
409conflicta personal space whose private folders shared access on the location would then reach
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
403forbiddenthe key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "conflict",
    "message": "a personal space whose private folders shared access on the location would then reach"
  }
}

GET /api/v1/admin/spaces/{id}/removal

What removing the space would do, without doing it: {name, kind, locationName, lose, keep, exposes}.

Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.

lose is the access that would be removed, keep the access that would move to another space (with spaceId and spaceName), and exposes the shared access that stops a personal space from being removed.

Parameters.

NameInTypeMeaning
idpathstringrequiredThe resource's id.

Success. 200.

FieldTypeMeaning
namestringrequiredThe name.
kindstringrequired
locationNamestringrequired
losearray of objectsrequiredAccess that goes with the space, because no other space holds its folder. Paths are relative to the space.

Each item is an object:

FieldTypeMeaning
idstringrequiredThe id.
kindstringrequired
principalIdstringrequiredThe id.
principalNamestringrequired
pathstringrequiredA path relative to the space or the storage location, with / between folders and no leading slash.
levelstringrequired
keeparray of objectsrequiredAccess another shared space also holds. It moves there and keeps working.

Each item is an object:

FieldTypeMeaning
accessobjectrequired

It is an object:

FieldTypeMeaning
idstringrequiredThe id.
kindstringrequired
principalIdstringrequiredThe id.
principalNamestringrequired
pathstringrequiredA path relative to the space or the storage location, with / between folders and no leading slash.
levelstringrequired
spaceIdstringrequiredThe id.
spaceNamestringrequired
exposesarray of objectsrequiredShared access on the location that would reach into this personal space's private folders once the space no longer marks them as private. Paths are relative to the location. While there is any, the space is not removed.

Each item is an object:

FieldTypeMeaning
idstringrequiredThe id.
kindstringrequired
principalIdstringrequiredThe id.
principalNamestringrequired
pathstringrequiredA path relative to the space or the storage location, with / between folders and no leading slash.
levelstringrequired
{
  "name": "Rush delivery",
  "kind": "shared",
  "locationName": "example",
  "lose": [
    {
      "id": "k7Qm2sLp9vX4aB1c",
      "kind": "shared",
      "principalId": "k7Qm2sLp9vX4aB1c",
      "principalName": "example",
      "path": "projects/rush",
      "level": "edit"
    }
  ],
  "keep": [
    {
      "access": {
        "id": "k7Qm2sLp9vX4aB1c",
        "kind": "shared",
        "principalId": "k7Qm2sLp9vX4aB1c",
        "principalName": "example",
        "path": "projects/rush",
        "level": "edit"
      },
      "spaceId": "k7Qm2sLp9vX4aB1c",
      "spaceName": "example"
    }
  ],
  "exposes": [
    {
      "id": "k7Qm2sLp9vX4aB1c",
      "kind": "shared",
      "principalId": "k7Qm2sLp9vX4aB1c",
      "principalName": "example",
      "path": "projects/rush",
      "level": "edit"
    }
  ]
}

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
403forbiddenthe key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "unauthenticated",
    "message": "sign in to continue"
  }
}

GET /api/v1/admin/spaces/{id}/access

Grants on this space, paths relative to the space.

Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.

Parameters.

NameInTypeMeaning
idpathstringrequiredThe resource's id.

Success. 200.

The body is an array.

FieldTypeMeaning
idstringrequiredThe id.
kindstringrequired
principalIdstringrequiredThe id.
principalNamestringrequired
pathstringrequiredA path relative to the space or the storage location, with / between folders and no leading slash.
levelstringrequired
[
  {
    "id": "k7Qm2sLp9vX4aB1c",
    "kind": "shared",
    "principalId": "k7Qm2sLp9vX4aB1c",
    "principalName": "example",
    "path": "projects/rush",
    "level": "edit"
  }
]

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
403forbiddenthe key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "unauthenticated",
    "message": "sign in to continue"
  }
}

PUT /api/v1/admin/spaces/{id}/access

Give a person or a group view, edit or full access on the space or a folder in it.

Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.

Parameters.

NameInTypeMeaning
idpathstringrequiredThe resource's id.

Request body. JSON.

A field the server does not know is ignored.

FieldTypeMeaning
userIdstringoptionalThe id.
groupIdstringoptionalThe id.
pathstringoptionalA path relative to the space or the storage location, with / between folders and no leading slash.
accessstringrequired
{
  "userId": "k7Qm2sLp9vX4aB1c",
  "groupId": "k7Qm2sLp9vX4aB1c",
  "path": "projects/rush",
  "access": "edit"
}

Success. 200.

FieldTypeMeaning
idstringrequiredThe id.
kindstringrequired
principalIdstringrequiredThe id.
principalNamestringrequired
pathstringrequiredA path relative to the space or the storage location, with / between folders and no leading slash.
levelstringrequired
{
  "id": "k7Qm2sLp9vX4aB1c",
  "kind": "shared",
  "principalId": "k7Qm2sLp9vX4aB1c",
  "principalName": "example",
  "path": "projects/rush",
  "level": "edit"
}

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
400bad_requestneither or both of userId and groupId, or a personal space
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
403forbiddenthe key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "bad_request",
    "message": "neither or both of userId and groupId, or a personal space"
  }
}

DELETE /api/v1/admin/spaces/{id}/access/{grant_id}

Take one space grant away.

Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.

Parameters.

NameInTypeMeaning
idpathstringrequiredThe space.
grant_idpathstringrequiredThe grant.

Success. 200.

The reply has no body.

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
403forbiddenthe key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "unauthenticated",
    "message": "sign in to continue"
  }
}

GET /api/v1/admin/spaces/{id}/personal/{user_id}/files

Open one person's personal folder. Writes space.personal.opened to the audit log.

Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.

Parameters.

NameInTypeMeaning
idpathstringrequiredThe space.
user_idpathstringrequiredThe person.
pathquerystringoptionalFolder, relative to their folder.

Encode the query value. A slash in a path may stay as / or be written %2F; the server reads the decoded value. Do not put a leading slash on the path.

Success. 200.

FieldTypeMeaning
pathstringrequiredA path relative to the space or the storage location, with / between folders and no leading slash.
levelstringrequired
itemsarray of objectsrequiredThe records in this reply.

Each item is an object:

FieldTypeMeaning
namestringrequiredThe name.
pathstringrequiredA path relative to the space or the storage location, with / between folders and no leading slash.
kindstringrequired
sizeintegerrequiredSize in bytes.
modifiedstringoptional
levelstringrequiredview, edit, full, or traverse when the folder is only on the way to a grant further down.
versionstringoptionalThe storage's version marker for a file, so a cached thumbnail can tell the file changed.
previewstringoptionalFor a file, whether it could be previewed: ok, none, tooLarge, kindOff or spaceOff. From the settings alone; its bytes are checked when it is opened.
usageobjectrequiredThe room this person has left in this folder.

It is an object:

FieldTypeMeaning
usedintegerrequired
limitintegeroptionalNone when no level limits it.
remainingintegeroptional
levelLeveloptional
scopeScopeoptional

It is an object:

FieldTypeMeaning
eventvaluerequired
ruleobjectrequired
nowintegerrequired
stepsvaluerequiredsteps.<name>.output for the steps that have run.
secrets'a BTreeMap<String, String>optionalsecret.<name>. None leaves secret undefined, which is how a command's arguments are kept free of secrets: argv is readable by every user on the machine.
command_root'a PathoptionalFor a command step: the storage root on disk. file.path then becomes the full path inside it, since a program cannot be handed a path relative to a root it has never heard of.
namestringrequiredThe space, location or group the limit belongs to.
idstringoptionalThe id.
warnbooleanrequiredAt 90% of the limit or more.
overbooleanrequired
countingbooleanrequired
lowSpacebooleanrequiredUnder 5 % of the disk under the location is free. Unknown is false.
volumeVolumeoptionalThe disk under the location, for an administrator on a folder with no limit. Left out for everyone else; null when it could not be read.

It is an object:

FieldTypeMeaning
totalBytesintegerrequired
freeBytesintegerrequired
measuredAtstringrequiredA time, as RFC 3339.
cloudbooleanoptionalThe location is cloud storage, which has no fixed size. Administrators only.
historyarray of SampleoptionalUp to 31 days of used, oldest first, with the disk beside each day. Administrators only, on a local folder with no limit.

Each item is an object:

FieldTypeMeaning
daystringrequired
usedBytesintegerrequired
volumeUsedBytesintegeroptionalThe disk's used bytes that day; None when it could not be read.
trashintegeroptionalHow much of the person's own Trash counts in used, when a limit applies. Left out when there is none.
{
  "path": "projects/rush",
  "level": "edit",
  "items": [
    {
      "name": "Rush delivery",
      "path": "projects/rush",
      "kind": "file",
      "size": 1048576,
      "modified": "example",
      "level": "edit",
      "version": "example",
      "preview": "example"
    }
  ],
  "usage": {
    "used": 1,
    "name": "Rush delivery",
    "warn": true,
    "over": true,
    "counting": true,
    "lowSpace": true
  }
}

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
400bad_requestthe request is not valid
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
403forbiddenthe key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "bad_request",
    "message": "the request is not valid"
  }
}

GET /api/v1/admin/access/folder

Who can reach this folder, and why.

Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.

Parameters.

NameInTypeMeaning
spacequerystringrequiredThe space.
pathquerystringoptionalFolder, relative to the space.

Encode the query value. A slash in a path may stay as / or be written %2F; the server reads the decoded value. Do not put a leading slash on the path.

Success. 200.

The body is an array.

FieldTypeMeaning
kindstringrequired
namestringrequiredThe name.
pathstringrequiredA path relative to the space or the storage location, with / between folders and no leading slash.
levelstringrequired
whystringrequired
[
  {
    "kind": "shared",
    "name": "Rush delivery",
    "path": "projects/rush",
    "level": "edit",
    "why": "example"
  }
]

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
400bad_requestthe request is not valid
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
403forbiddenthe key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "bad_request",
    "message": "the request is not valid"
  }
}

GET /api/v1/admin/users/{id}/access

Every space and folder one person can reach, and why.

Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.

Parameters.

NameInTypeMeaning
idpathstringrequiredThe resource's id.

Success. 200.

The body is an array.

FieldTypeMeaning
idstringrequiredThe id.
namestringrequiredThe name.
kindstringrequired
pathsarray of objectsrequired

Each item is an object:

FieldTypeMeaning
kindstringrequired
namestringrequiredThe name.
pathstringrequiredA path relative to the space or the storage location, with / between folders and no leading slash.
levelstringrequired
whystringrequired
[
  {
    "id": "k7Qm2sLp9vX4aB1c",
    "name": "Rush delivery",
    "kind": "shared",
    "paths": [
      {
        "kind": "shared",
        "name": "Rush delivery",
        "path": "projects/rush",
        "level": "edit",
        "why": "example"
      }
    ]
  }
]

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
403forbiddenthe key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "unauthenticated",
    "message": "sign in to continue"
  }
}

Files and folders

GET /api/v1/roots

The storage locations this caller may see. GET /api/v1/home lists their spaces.

Who. Any user with a key that has the read scope. A key with the admin scope includes the others. The key needs a license that includes the REST API.

Success. 200.

The body is an array.

FieldTypeMeaning
idstringrequiredThe id.
namestringrequiredThe name.
kindstringrequired
canWritebooleanrequiredWhat this caller may do anywhere in the storage location. The portal uses these to decide which buttons to draw; the server checks again per path, because a grant can cover one folder and not another.
canDeletebooleanrequired
[
  {
    "id": "k7Qm2sLp9vX4aB1c",
    "name": "Rush delivery",
    "kind": "shared",
    "canWrite": true,
    "canDelete": true
  }
]

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
403forbiddenthe key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "unauthenticated",
    "message": "sign in to continue"
  }
}

GET /api/v1/files

One folder's contents: {items, total, nextCursor}.

Who. Any user with a key that has the read scope. A key with the admin scope includes the others. The key needs a license that includes the REST API.

Parameters.

NameInTypeMeaning
rootquerystringrequiredWhich storage location.
pathquerystringoptionalFolder, relative to the storage location. / separated, no leading slash.
sortquerystringoptionalname, size or modified. Defaults to name.
dirquerystringoptionalasc or desc. Defaults to asc.
filterquerystringoptionalNarrow the listing. Matched against the name, ignoring case.
cursorquerystringoptionalWhere to resume: the previous reply's nextCursor. Omit to start.
limitqueryintegeroptionalHow many entries, from 1 to 1000. Defaults to 200.

Encode the query value. A slash in a path may stay as / or be written %2F; the server reads the decoded value. Do not put a leading slash on the path.

Success. 200.

FieldTypeMeaning
itemsarray of objectsrequiredThe records in this reply.

Each item is an object:

FieldTypeMeaning
namestringrequiredThe name.
pathstringrequiredA path relative to the space or the storage location, with / between folders and no leading slash.
kindstringrequired
sizeintegerrequiredSize in bytes.
modifiedstringoptional
totalintegerrequiredHow many matched, including ones not on this page.
nextCursorstringoptionalSend this back as cursor to get the next page. Left out when this is the last page.
{
  "items": [
    {
      "name": "Rush delivery",
      "path": "projects/rush",
      "kind": "file",
      "size": 1048576,
      "modified": "example"
    }
  ],
  "total": 1,
  "nextCursor": "example"
}

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
400bad_requestthe request is not valid
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
403forbiddenthe key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "bad_request",
    "message": "the request is not valid"
  }
}
The cursor is how many entries to skip after sorting, from the previous nextCursor. limit defaults to 200 and must be from 1 to 1000. A folder this caller may not see is 404, the same answer as a folder that is not there.

DELETE /api/v1/files

Delete a file or a folder. Body: {root, path, permanent}.

Who. Any user with a key that has the delete scope. A key with the admin scope includes the others. The key needs a license that includes the REST API.

While the Trash setting is on, a person's delete moves the file or folder to their Trash (see /api/v1/trash). permanent: true, a service account's key, or Trash being off deletes it for good.

Request body. JSON.

A field the server does not know is ignored.

FieldTypeMeaning
rootstringrequired
pathstringrequiredA path relative to the space or the storage location, with / between folders and no leading slash.
permanentbooleanoptionalDelete for good even when Trash is on.
{
  "root": "k7Qm2sLp9vX4aB1c",
  "path": "projects/rush",
  "permanent": true
}

Success. 200.

The reply has no body.

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
400bad_requestthe request is not valid
404not_foundnot there, or this caller may not delete it
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
403forbiddenthe key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "bad_request",
    "message": "the request is not valid"
  }
}

POST /api/v1/files/folder

Make a folder.

Who. Any user with a key that has the write scope. A key with the admin scope includes the others. The key needs a license that includes the REST API.

Request body. JSON.

A field the server does not know is ignored.

FieldTypeMeaning
rootstringrequired
pathstringrequiredA path relative to the space or the storage location, with / between folders and no leading slash.
{
  "root": "k7Qm2sLp9vX4aB1c",
  "path": "projects/rush"
}

Success. 200.

FieldTypeMeaning
namestringrequiredThe name.
pathstringrequiredA path relative to the space or the storage location, with / between folders and no leading slash.
kindstringrequired
sizeintegerrequiredSize in bytes.
modifiedstringoptional, left out when empty
{
  "name": "Rush delivery",
  "path": "projects/rush",
  "kind": "file",
  "size": 1048576,
  "modified": "example"
}

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
400bad_requestthe request is not valid
409conflictsomething is already there
404not_foundnot there, or not visible to this caller
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
403forbiddenthe key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "bad_request",
    "message": "the request is not valid"
  }
}

POST /api/v1/files/rename

Rename or move within a storage location.

Who. Any user with a key that has the write scope. A key with the admin scope includes the others. The key needs a license that includes the REST API.

Request body. JSON.

A field the server does not know is ignored.

FieldTypeMeaning
rootstringrequired
fromstringrequired
tostringrequired
{
  "root": "k7Qm2sLp9vX4aB1c",
  "from": "projects/rush",
  "to": "projects/rush"
}

Success. 200.

FieldTypeMeaning
namestringrequiredThe name.
pathstringrequiredA path relative to the space or the storage location, with / between folders and no leading slash.
kindstringrequired
sizeintegerrequiredSize in bytes.
modifiedstringoptional, left out when empty
{
  "name": "Rush delivery",
  "path": "projects/rush",
  "kind": "file",
  "size": 1048576,
  "modified": "example"
}

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
400bad_requestthe request is not valid
409conflictsomething is already there
404not_foundnot there, or not visible to this caller
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
403forbiddenthe key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "bad_request",
    "message": "the request is not valid"
  }
}

POST /api/v1/files/download/done

A browser says its download of a file is over, so the transfer ends now rather than after two minutes without a request.

Who. Any user with a key that has the read scope. A key with the admin scope includes the others. The key needs a license that includes the REST API.

Body: {transfer, outcome, reused}: transfer is the id from x-farwing-transfer, outcome is done or cancelled, and the optional reused is how many bytes the browser took from an older copy instead of downloading them. A download that fetched only part of the file, because the rest came from an older copy, ends as done with the bytes that were sent and the bytes it reused. A download that is no longer open is answered the same way. Listed as download.done in /api/v1/version.

Request body. JSON.

A field the server does not know is ignored.

FieldTypeMeaning
transferstringrequiredThe download, as x-farwing-transfer named it.
outcomestringrequireddone when the browser asks for nothing more, cancelled when the person stopped it.
reusedintegeroptionalBytes the browser took from an older copy already on the computer instead of downloading them.
{
  "transfer": "example",
  "outcome": "example",
  "reused": 1
}

Success. 200.

JSON object.

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
400bad_requestoutcome is neither done nor cancelled
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
403forbiddenthe key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "bad_request",
    "message": "outcome is neither done nor cancelled"
  }
}

GET /api/v1/files/manifest

The chunk list of a file, to fetch only the ranges an older copy lacks.

Who. Any user with a key that has the read scope. A key with the admin scope includes the others. The key needs a license that includes the REST API.

200 with the binary chunk list and x-farwing-mtime; 202 with {"checking": {"done", "total"}} while the server reads the file; 204 when the file is too small to be worth it. Listed under delta in /api/v1/version.

Parameters.

NameInTypeMeaning
rootquerystringoptionalThe location, for a caller that still names storage directly.
pathquerystringrequiredThe file, relative to the storage location.
spacequerystringoptionalThe space, when path is relative to one.

Encode the query value. A slash in a path may stay as / or be written %2F; the server reads the decoded value. Do not put a leading slash on the path.

Success. 200.

JSON object.

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
400bad_requestname a file, not the whole root
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
403forbiddenthe key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "bad_request",
    "message": "name a file, not the whole root"
  }
}

GET /api/v1/files/checksum

The BLAKE3 checksum of one exact source file version, used to verify a saved browser download.

Who. Any user with a key that has the read scope. A key with the admin scope includes the others. The key needs a license that includes the REST API.

Parameters.

NameInTypeMeaning
rootquerystringoptionalThe location, for a caller that still names storage directly.
pathquerystringrequiredThe file, relative to the storage location.
spacequerystringoptionalThe space, when path is relative to one.

Encode the query value. A slash in a path may stay as / or be written %2F; the server reads the decoded value. Do not put a leading slash on the path.

Success. 200.

FieldTypeMeaning
algorithmstringrequired
checksumstringrequired
{
  "algorithm": "example",
  "checksum": "example"
}

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
400bad_requestthe request is not valid
404not_foundnot there, or not visible to this caller
409conflictthis storage location cannot identify a stable file version
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
403forbiddenthe key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "bad_request",
    "message": "the request is not valid"
  }
}

POST /api/v1/files/set

List the individual files and empty folders represented by a selection.

Who. Any user with a key that has the read scope. A key with the admin scope includes the others. The key needs a license that includes the REST API.

Body: {space, paths} or {root, paths}, with paths relative to the space or location. Answers {name, files, empty, bytes}; each file has its source path, destination relativePath, and byte size. A folder-capable browser uses this to save each file under a folder the person chose.

Request body. JSON.

A field the server does not know is ignored.

FieldTypeMeaning
spacestringoptionalThe space the paths are relative to.
rootstringoptionalThe location, for a caller that still names storage directly.
pathsarray of stringrequired
{
  "space": "k7Qm2sLp9vX4aB1c",
  "paths": [
    "projects/rush"
  ]
}

Success. 200.

FieldTypeMeaning
namestringrequiredThe name.
filesarray of objectsrequired

Each item is an object:

FieldTypeMeaning
pathstringrequiredThe source path, relative to the space or location in the request.
relativePathstringrequiredWhere to put it under the folder the person chooses.
bytesintegerrequiredSize in bytes.
emptyarray of stringrequiredEmpty folders to create under the chosen folder.
bytesintegerrequiredSize in bytes.
{
  "name": "Rush delivery",
  "files": [
    {
      "path": "projects/rush",
      "relativePath": "projects/rush",
      "bytes": 1048576
    }
  ],
  "empty": [
    "example"
  ],
  "bytes": 1048576
}

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
400bad_requestnothing was named, the whole space was named, or there are too many files
404not_founda path is not there, or this caller may not see it
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
403forbiddenthe key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "bad_request",
    "message": "nothing was named, the whole space was named, or there are too many files"
  }
}

Trash

GET /api/v1/trash

One page of the caller's Trash: {purgeAfterDays, summary, items, nextCursor}.

Who. Any user with a key that has the delete scope. A key with the admin scope includes the others. The key needs a license that includes the REST API.

summary is {items, bytes} for everything that matches, not only this page. Each item is {id, name, kind, bytes, files, originalDisplayPath, trashedAt, purgeAt}; purgeAt is when it is deleted for good under the setting now, null while Trash is off. An administrator's items also have location and path, the storage location and the path in it. purgeAfterDays is the setting, null when off. Items still being moved to or from Trash are not listed.

Parameters.

NameInTypeMeaning
limitqueryintegeroptionalHow many items, from 1 to 200. Defaults to 100.
cursorquerystringoptionalWhere to resume: the previous reply's nextCursor. Omit to start.
sortquerystringoptionaltrashedAt or bytes. Defaults to trashedAt.
dirquerystringoptionaldesc or asc. Defaults to desc.
qquerystringoptionalPart of the name, ignoring case.
userquerystringoptionalAdministrators only: whose Trash to list. Defaults to the caller.

Success. 200.

FieldTypeMeaning
purgeAfterDaysintegeroptional
summaryobjectrequired

It is an object:

FieldTypeMeaning
itemsintegerrequiredThe records in this reply.
bytesintegerrequiredSize in bytes.
itemsarray of objectsrequiredThe records in this reply.

Each item is an object:

FieldTypeMeaning
idstringrequiredThe id.
namestringrequiredThe name.
kindstringrequired
bytesintegerrequiredSize in bytes.
filesintegerrequired
originalDisplayPathstringrequired
trashedAtstringrequiredA time, as RFC 3339.
purgeAtstringoptionalWhen the sweep deletes it under the setting now; null with Trash off.
locationstringoptionalFor administrators: the storage location and the path in it.
pathstringoptionalA path relative to the space or the storage location, with / between folders and no leading slash.
nextCursorstringoptionalSend this back as cursor to get the next page. Left out when this is the last page.
{
  "purgeAfterDays": 1,
  "summary": {
    "items": 1,
    "bytes": 1048576
  },
  "items": [
    {
      "id": "k7Qm2sLp9vX4aB1c",
      "name": "Rush delivery",
      "kind": "shared",
      "bytes": 1048576,
      "files": 1,
      "originalDisplayPath": "projects/rush",
      "trashedAt": "2026-10-05T18:00:00Z"
    }
  ],
  "nextCursor": "example"
}

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
400bad_requesta limit, sort, dir or cursor that is not usable
403forbidden`user` names someone else and the caller is not an administrator
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "bad_request",
    "message": "a limit, sort, dir or cursor that is not usable"
  }
}

DELETE /api/v1/trash

Empty the caller's Trash: everything in it is deleted for good. Answers {removed, bytes}.

Who. Any user with a key that has the delete scope. A key with the admin scope includes the others. The key needs a license that includes the REST API.

Written to the audit log as trash.empty.

Parameters.

NameInTypeMeaning
userquerystringoptionalAdministrators only: whose Trash to empty. Defaults to the caller.

Success. 200.

FieldTypeMeaning
removedintegerrequired
bytesintegerrequiredSize in bytes.
{
  "removed": 1,
  "bytes": 1048576
}

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
403forbidden`user` names someone else and the caller is not an administrator
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "forbidden",
    "message": "you do not have access to this"
  }
}

GET /api/v1/trash/summary

Administrators only: how much each person has in Trash. Answers {purgeAfterDays, total: {items, bytes, users}, rows}.

Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.

One row per person with anything in Trash, largest first: {userId, name, items, bytes, nextPurgeAt}. nextPurgeAt is when their oldest item is deleted for good under the setting now, null while Trash is off. Open one person's items with GET /api/v1/trash?user=.

Parameters.

NameInTypeMeaning
byquerystringoptionaluser, the only grouping.

Success. 200.

FieldTypeMeaning
purgeAfterDaysintegeroptional
totalobjectrequiredHow many matched, including ones not on this page.

It is an object:

FieldTypeMeaning
itemsintegerrequiredThe records in this reply.
bytesintegerrequiredSize in bytes.
usersintegerrequired
rowsarray of objectsrequired

Each item is an object:

FieldTypeMeaning
userIdstringrequiredThe id.
namestringrequiredThe name.
itemsintegerrequiredThe records in this reply.
bytesintegerrequiredSize in bytes.
nextPurgeAtstringoptionalWhen the oldest item goes; null with Trash off.
{
  "purgeAfterDays": 1,
  "total": {
    "items": 1,
    "bytes": 1048576,
    "users": 1
  },
  "rows": [
    {
      "userId": "k7Qm2sLp9vX4aB1c",
      "name": "Rush delivery",
      "items": 1,
      "bytes": 1048576,
      "nextPurgeAt": "2026-10-05T18:00:00Z"
    }
  ]
}

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
400bad_request`by` is not user
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
403forbiddenthe key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "bad_request",
    "message": "`by` is not user"
  }
}

DELETE /api/v1/trash/{id}

Delete one item in the caller's Trash for good.

Who. Any user with a key that has the delete scope. A key with the admin scope includes the others. The key needs a license that includes the REST API.

Written to the audit log as trash.delete.

Parameters.

NameInTypeMeaning
idpathstringrequiredThe resource's id.

Success. 200.

JSON object.

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
404not_foundnot in the caller's Trash
409conflictit is still being moved to or from Trash
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
403forbiddenthe key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "not_found",
    "message": "not found"
  }
}

POST /api/v1/trash/{id}/restore

Put an item back where it was. Answers {restoredTo, renamed, done, spaceId, spacePath}; the last two name the space and the path in it, and are absent when no space held it.

Who. Any user with a key that has the delete scope. A key with the admin scope includes the others. The key needs a license that includes the REST API.

Never replaces anything: when something else now has its name it comes back as name (restored).ext, and renamed is true. Folders on the way that are gone are made again. restoredTo is the path people see. On a storage location that cannot rename in place the copy back carries on as a transfer with direction move, and done is false until it ends. Written to the audit log as trash.restore.

Parameters.

NameInTypeMeaning
idpathstringrequiredThe resource's id.

Request body. None.

Success. 200.

FieldTypeMeaning
restoredTostringrequiredWhere it is now, as people see the path.
renamedbooleanrequiredSomething else had taken its old name, so it came back as name (restored).
donebooleanrequiredFalse while a copy back is still running on a bucket.
spaceIdstringoptional, left out when emptyThe space it is back in and its path there, for a link to its folder. Absent when no space held it.
spacePathstringoptional, left out when empty
{
  "restoredTo": "example",
  "renamed": true,
  "done": true,
  "spaceId": "k7Qm2sLp9vX4aB1c",
  "spacePath": "projects/rush"
}

Errors. The body always has the shape in Errors. Match on code.

StatuscodeWhen
404not_foundnot in the caller's Trash
409conflictit is still being moved, or trash_no_access: the caller can no longer write where it was
401unauthenticatedno key, or a key that is unknown, expired, revoked, or owned by a disabled account
403forbiddenthe key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator
402licence_requiredthe license does not include the REST API
{
  "error": {
    "code": "not_found",
    "message": "not found"
  }
}