Files & folders
Move, copy, rename, trash, and delete files and folders, and create folders.
Paths start with the drive ID, for example /7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e/Project/Interviews/A001.mov. Renaming is a move to a new path in the same folder.
Prefer
POST /files/trashoverPOST /files/delete. Trashed files can be restored from the drive's trash, but deleted files can't.The
/batchvariants take a list of paths in one request.
To upload files, use the S3 API or the file system API. GET /workspaces/drives/{drive_id}/shade-fs-token issues the token the file system API needs.
Your Shade API key, sent as-is with no Bearer prefix. Create one under
Settings → Integrate → API keys.
Path of the file or folder, starting with the drive ID, for example /7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e/Project/Interviews/A001.mov.
The id of the drive we want to make a directory in
Successful Response
Not found
Validation Error
POST /files/directory HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 120
{
"drive_id": "7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e",
"path": "/7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e/Fall Campaign/Selects"
}No content
Your Shade API key, sent as-is with no Bearer prefix. Create one under
Settings → Integrate → API keys.
The paths to ensure directories exist at
The id of the drive we want to make a directory in
Successful Response
Not found
Validation Error
POST /files/directory/batch HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 68
{
"paths": [
"text"
],
"drive_id": "123e4567-e89b-12d3-a456-426614174000"
}No content
Move a file or folder to a new location
Your Shade API key, sent as-is with no Bearer prefix. Create one under
Settings → Integrate → API keys.
Current path of the file or folder, starting with the drive ID, for example /7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e/Project/Interviews/A001.mov.
New path for the file or folder, starting with the drive ID. To rename, keep the same folder and change the name.
The id of the drive containing the file to move
Successful Response
Not found
Validation Error
POST /files/move HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 213
{
"drive_id": "7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e",
"source": "/7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e/Inbox/A001_C003.mov",
"destination": "/7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e/Fall Campaign/Interviews/A001_C003.mov"
}No content
Your Shade API key, sent as-is with no Bearer prefix. Create one under
Settings → Integrate → API keys.
The id of the drive containing the file to move
The id of the drive to move the file to
Successful Response
Not found
Validation Error
POST /files/interdrive/move HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 147
{
"drive_id_src": "123e4567-e89b-12d3-a456-426614174000",
"drive_id_dst": "123e4567-e89b-12d3-a456-426614174000",
"paths": [
{
"src": "text",
"dst": "text"
}
]
}No content
Your Shade API key, sent as-is with no Bearer prefix. Create one under
Settings → Integrate → API keys.
The id of the drive containing the file to copy
The id of the drive to copy the file to
Successful Response
Not found
Validation Error
POST /files/interdrive/copy HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 158
{
"paths": [
{
"src": "text",
"dst": "text"
}
],
"source_drive_id": "123e4567-e89b-12d3-a456-426614174000",
"destination_drive_id": "123e4567-e89b-12d3-a456-426614174000"
}No content
NOTE: this route only works when the sources come from the same folder
Your Shade API key, sent as-is with no Bearer prefix. Create one under
Settings → Integrate → API keys.
The paths of the files or folders to move
The path to move the file or folder to
The id of the drive containing the file to move
The new paths of the files or folders
Not found
Validation Error
POST /files/move/batch HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 94
{
"sources": [
"text"
],
"destinations": [
"text"
],
"drive_id": "123e4567-e89b-12d3-a456-426614174000"
}[
"text"
]Copy a file or folder to a new location
Your Shade API key, sent as-is with no Bearer prefix. Create one under
Settings → Integrate → API keys.
Current path of the file or folder, starting with the drive ID, for example /7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e/Project/Interviews/A001.mov.
New path for the file or folder, starting with the drive ID. To rename, keep the same folder and change the name.
The id of the drive containing the file to copy
Successful Response
Not found
Validation Error
POST /files/copy HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 88
{
"source": "text",
"destination": "text",
"drive_id": "123e4567-e89b-12d3-a456-426614174000"
}No content
Move a file or folder to the trash
Your Shade API key, sent as-is with no Bearer prefix. Create one under
Settings → Integrate → API keys.
Path of the file or folder, starting with the drive ID, for example /7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e/Project/Interviews/A001.mov.
The id of the drive containing the file we want to move to trash
Successful Response
Not found
Validation Error
POST /files/trash HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 65
{
"path": "text",
"drive_id": "123e4567-e89b-12d3-a456-426614174000"
}No content
Move a file or folder to the trash
Your Shade API key, sent as-is with no Bearer prefix. Create one under
Settings → Integrate → API keys.
The paths of the files or folders to move to the trash
The id of the drive containing the file we want to move to trash
The new paths of the files or folders
Not found
Validation Error
POST /files/trash/batch HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 219
{
"drive_id": "7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e",
"paths": [
"/7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e/Fall Campaign/Interviews/A001_C001.mov",
"/7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e/Fall Campaign/Interviews/A001_C002.mov"
]
}[
"text"
]Delete a file or folder
Your Shade API key, sent as-is with no Bearer prefix. Create one under
Settings → Integrate → API keys.
Path of the file or folder, starting with the drive ID, for example /7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e/Project/Interviews/A001.mov.
The id of the drive containing the file we want to delete
Successful Response
Not found
Validation Error
POST /files/delete HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 65
{
"path": "text",
"drive_id": "123e4567-e89b-12d3-a456-426614174000"
}No content
Delete files or folders in batch
Your Shade API key, sent as-is with no Bearer prefix. Create one under
Settings → Integrate → API keys.
The paths of the files or folders to delete
The id of the drive containing the file we want to delete
Successful Response
Not found
Validation Error
POST /files/delete/batch HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 68
{
"paths": [
"text"
],
"drive_id": "123e4567-e89b-12d3-a456-426614174000"
}[
"text"
]Your Shade API key, sent as-is with no Bearer prefix. Create one under
Settings → Integrate → API keys.
Path of the file or folder, starting with the drive ID, for example /7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e/Project/Interviews/A001.mov.
The id of the drive containing to check if the file exists in
7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7eSuccessful Response
Not found
Validation Error
GET /files/exists?path=text&drive_id=123e4567-e89b-12d3-a456-426614174000 HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
trueYour Shade API key, sent as-is with no Bearer prefix. Create one under
Settings → Integrate → API keys.
Successful Response
Not found
GET /files/storage-provider HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
S3Get the total size of assets in a directory
Your Shade API key, sent as-is with no Bearer prefix. Create one under
Settings → Integrate → API keys.
Path of the file or folder, starting with the drive ID, for example /7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7e/Project/Interviews/A001.mov.
The id of the drive this path is in
7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7eWhether or not to include the trash folder in the details, if at the drive root.
trueThe details of assets in the specified path directory
Not found
Validation Error
GET /files/details?path=text&drive_id=123e4567-e89b-12d3-a456-426614174000 HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
{
"dir_size_bytes": 1,
"dir_num_items": 1
}Your Shade API key, sent as-is with no Bearer prefix. Create one under
Settings → Integrate → API keys.
ID of the drive. List a workspace's drives with GET /workspaces/{workspace_id}/drives.
7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7eThe machine ID to embed into the JWT
Successful Response
Not found
Validation Error
GET /workspaces/drives/{drive_id}/shade-fs-token HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
textGet the indexing job status for a drive
Your Shade API key, sent as-is with no Bearer prefix. Create one under
Settings → Integrate → API keys.
ID of the drive. List a workspace's drives with GET /workspaces/{workspace_id}/drives.
7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7eThe current indexing job status for the drive
A DTO that shows the indexing status of a drive
Not found
Validation Error
GET /indexing/job-status/{drive_id} HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
{
"jobs": [
{
"name": "download",
"to_do": 1
}
]
}Get the asset roots
Your Shade API key, sent as-is with no Bearer prefix. Create one under
Settings → Integrate → API keys.
The id of the drive we want to add users to
7b1e4d2c-5a6f-4e8b-9c3d-2f1a0b9c8d7eThe asset roots
00Not found
Validation Error
GET /indexing/roots?drive_id=123e4567-e89b-12d3-a456-426614174000 HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"path": "text",
"created": "2026-01-01T00:00:00.000Z",
"updated": "2026-01-01T00:00:00.000Z",
"files_found": 0,
"size_bytes": 0
}
]Add asset roots
Your Shade API key, sent as-is with no Bearer prefix. Create one under
Settings → Integrate → API keys.
The paths to add as asset roots
The ID of the drive
The ID of the new root
Not found
Validation Error
POST /indexing/roots HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 68
{
"paths": [
"text"
],
"drive_id": "123e4567-e89b-12d3-a456-426614174000"
}[
"123e4567-e89b-12d3-a456-426614174000"
]Remove an asset root
Your Shade API key, sent as-is with no Bearer prefix. Create one under
Settings → Integrate → API keys.
The ID of the root to remove
Successful Response
Not found
Validation Error
DELETE /indexing/roots/{root_id} HTTP/1.1
Host: api.shade.inc
Authorization: YOUR_API_KEY
Accept: */*
No content
Last updated
Was this helpful?

