For the complete documentation index, see llms.txt. This page is also available as Markdown.

Files

Ensure a directory exists at the given path, creating if needed

post
Header parameters
passwordstring · nullableOptional

The password header to use to fetch the preview

Body
pathstring · pathRequired

The path to ensure a directory exists at

drive_idstring · uuidRequired

The id of the drive we want to make a directory in

Responses
200

Successful Response

application/json
anyOptional
post/files/directory
POST /files/directory HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 111

{
  "path": "text",
  "drive_id": "123e4567-e89b-12d3-a456-426614174000",
  "body": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  }
}

No content

Ensure a list of directories exist at the given path, creating if needed

post
Header parameters
passwordstring · nullableOptional

The password header to use to fetch the preview

Body
pathsstring · path[]Required

The paths to ensure directories exist at

drive_idstring · uuidRequired

The id of the drive we want to make a directory in

Responses
200

Successful Response

application/json
anyOptional
post/files/directory/batch
POST /files/directory/batch HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 114

{
  "paths": [
    "text"
  ],
  "drive_id": "123e4567-e89b-12d3-a456-426614174000",
  "body": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  }
}

No content

Move a file or folder to a new location

post

Move a file or folder to a new location

Header parameters
passwordstring · nullableOptional

The password header to use to fetch the preview

Body
sourcestring · pathRequired

The path of the file or folder to move

destinationstring · pathRequired

The path to move the file or folder to

drive_idstring · uuidRequired

The id of the drive containing the file to move

Responses
200

The new path of the file or folder

application/json
anyOptional
post/files/move
POST /files/move HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 134

{
  "source": "text",
  "destination": "text",
  "drive_id": "123e4567-e89b-12d3-a456-426614174000",
  "body": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  }
}

No content

Move a batch of files or folders to a new location

post

NOTE: this route only works when the sources come from the same folder

Header parameters
passwordstring · nullableOptional

The password header to use to fetch the preview

Body
sourcesstring · path[]Required

The paths of the files or folders to move

destinationsstring · path[]Required

The path to move the file or folder to

drive_idstring · uuidRequired

The id of the drive containing the file to move

Responses
200

The new path of the file or folder

application/json
string · path[]Optional
post/files/move/batch
POST /files/move/batch HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 140

{
  "sources": [
    "text"
  ],
  "destinations": [
    "text"
  ],
  "drive_id": "123e4567-e89b-12d3-a456-426614174000",
  "body": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  }
}
[
  "text"
]

Copy a file to a new location

post

Copy a file or folder to a new location

Header parameters
passwordstring · nullableOptional

The password header to use to fetch the preview

Body
sourcestring · pathRequired

The path of the file or folder to copy

destinationstring · pathRequired

The path to copy the file or folder to

drive_idstring · uuidRequired

The id of the drive containing the file to copy

Responses
200

The new path of the file

application/json
anyOptional
post/files/copy
POST /files/copy HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 134

{
  "source": "text",
  "destination": "text",
  "drive_id": "123e4567-e89b-12d3-a456-426614174000",
  "body": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  }
}

No content

Move a file or folder to the trash

post

Move a file or folder to the trash

Header parameters
passwordstring · nullableOptional

The password header to use to fetch the preview

Body
pathstring · pathRequired

The path of the file or folder to move to the trash

drive_idstring · uuidRequired

The id of the drive containing the file we want to move to trash

share_idstring · uuid · nullableOptional

The id of the shared root folder

Responses
200

The new path of the file or folder

application/json
anyOptional
post/files/trash
POST /files/trash HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 161

{
  "path": "text",
  "drive_id": "123e4567-e89b-12d3-a456-426614174000",
  "share_id": "123e4567-e89b-12d3-a456-426614174000",
  "body": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  }
}

No content

Move a file or folder to the trash

post

Move a file or folder to the trash

Header parameters
passwordstring · nullableOptional

The password header to use to fetch the preview

Body
pathsstring · path[]Required

The paths of the files or folders to move to the trash

drive_idstring · uuidRequired

The id of the drive containing the file we want to move to trash

share_idstring · uuid · nullableOptional

The id of the shared root folder

Responses
200

The new path of the file or folder

application/json
string · path[]Optional
post/files/trash/batch
POST /files/trash/batch HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 164

{
  "paths": [
    "text"
  ],
  "drive_id": "123e4567-e89b-12d3-a456-426614174000",
  "share_id": "123e4567-e89b-12d3-a456-426614174000",
  "body": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  }
}
[
  "text"
]

Delete a file or folder

post

Delete a file or folder

Header parameters
passwordstring · nullableOptional

The password header to use to fetch the preview

Body
pathstring · pathRequired

The path of the file or folder to delete

drive_idstring · uuidRequired

The id of the drive containing the file we want to delete

share_idstring · uuid · nullableOptional

The id of the shared root folder

Responses
200

The path that was deleted

application/json
anyOptional
post/files/delete
POST /files/delete HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 161

{
  "path": "text",
  "drive_id": "123e4567-e89b-12d3-a456-426614174000",
  "share_id": "123e4567-e89b-12d3-a456-426614174000",
  "body": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  }
}

No content

Delete files or folders in batch

post

Delete files or folders in batch

Header parameters
passwordstring · nullableOptional

The password header to use to fetch the preview

Body
pathsstring · path[]Required

The paths of the files or folders to delete

drive_idstring · uuidRequired

The id of the drive containing the file we want to delete

Responses
200

Successful Response

application/json
string · path[]Optional
post/files/delete/batch
POST /files/delete/batch HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 114

{
  "paths": [
    "text"
  ],
  "drive_id": "123e4567-e89b-12d3-a456-426614174000",
  "body": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  }
}
[
  "text"
]

Retrieve if a path exists or not on filesystem

get
Query parameters
pathstring · pathRequired

The path to determine if it exists in the filesystem or not

drive_idstring · uuidRequired

The id of the drive containing to check if the file exists in

Header parameters
passwordstring · nullableOptional

The password header to use to fetch the preview

Body
Responses
200

Successful Response

application/json
booleanOptional
get/files/exists
GET /files/exists?path=text&drive_id=123e4567-e89b-12d3-a456-426614174000 HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 47

{
  "body": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  }
}
true

Retrieve the storage provider for the files

get
Responses
200

Successful Response

application/json
string · enumOptionalPossible values:
get/files/storage-provider
GET /files/storage-provider HTTP/1.1
Accept: */*
S3

Get the details of assets in a path directory

get

Get the total size of assets in a directory

Query parameters
pathstringRequired

The path to retrieve the total size for

drive_idstring · uuidRequired

The id of the drive this path is in

exclude_trashbooleanOptional

Whether or not to include the trash folder in the details, if at the drive root.

Default: true
Header parameters
passwordstring · nullableOptional

The password header to use to fetch the preview

Body
Responses
200

The details of assets in the specified path directory

application/json
dir_size_bytesintegerRequired
dir_num_itemsintegerRequired
get/files/details
GET /files/details?path=text&drive_id=123e4567-e89b-12d3-a456-426614174000 HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 47

{
  "body": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  }
}
{
  "dir_size_bytes": 1,
  "dir_num_items": 1
}

Last updated

Was this helpful?