| English | Русский |
SberDisk web API notes
Observed from the official web app (files.sberdisk.ru), November 2026. Undocumented; may change without notice.
Common
- API base:
https://apigw.sberdisk.ru; uploads:https://upload.sberdisk.ru; downloads:https://download.sberdisk.ru. - Auth: session cookie (httpOnly) set by the web login.
- Required headers:
Origin: https://files.sberdisk.ru(without it —422 InvalidHeaderOrigin, checked before the session),Language: ru(without it —422 InvalidLanguage),Platform: web. The client also sendsReferer. - A missing or anonymous session:
401 InvalidAuthorization. The session cookie isapi_sessiononapigw.sberdisk.ru(httpOnly). - Errors: JSON
{"codeId": ..., "code": "...", "message": "..."}. - A missing folder:
422 ParentDirectoryNotFound(not 404). - Names (checked 27.11.2026):
: * ? " < > | \ #→400 InvalidFiles.0.toPath; spaces around a name are trimmed. A folder named..and a name of mixed punctuation got403, and then every request got403for several minutes — a filter in front of the API, presumably. - A listing right after an upload, a rename or a delete can lag for seconds (a trashed file has stayed listed
for more than 7 s). Trashing an item already in the trash:
422 ErrorPostDelete(“Файл не найден.”).
Endpoints
| Method | Path | Body / query | Notes |
|---|---|---|---|
| GET | /files |
cnt, page, parent (folder path), sort, direction |
data[] of items; a numeric id in parent → 404 ParentDirectoryNotFound |
| GET | /quote |
— | all.bytes, used.bytes, categories.{image,video,audio,document,other,trash}.bytes |
| GET | /search |
cnt, searchRequest, page |
|
| POST | /files/create |
{filePath, fileName, autoRename} |
creates a folder; 201; duplicate → 409 TargetFileExists |
| POST | /files/delete |
{fileIds: [...]} |
moves to trash ("... перемещен в корзину") |
| POST | /files/rename/{id} |
{fileName, autoRename} |
a file keeps its extension: a.partial → a.txt gives a.partial, d.txt → e gives e.txt; a file without an extension and a folder take the new name whole |
| POST | /files/move, /files/copy |
{files: [{fromPath, toPath}], autoRename} |
toPath is the destination folder; the item keeps its name. Move keeps the ID, copy makes new IDs and copies folders with their contents. Errors: missing source → 400 InvalidFiles; missing folder → 422 MoveToFilePathNotFoundFailed / CopyDestinationNotFound; into itself → 422 MoveParentFileToChildrenFolder / CopyFilesError; a move onto an existing name (also into the same folder) → 422 MoveFilesTransactionFailed; a copy onto an existing name answers 200 and does nothing (checked live 28.11.2026; the format was read from the web app’s code) |
| POST | /trash/files/delete, /trash/restore |
{fileIds} |
permanent delete / restore |
| POST | /trash/delete |
— | empty the trash |
| POST | /archive/get-link |
{ids} |
zip download link |
| POST | upload: /upload/session |
{autoRename, category: "Autoload", createsFolders, filePath, fileType, size} |
fileType must be a bare MIME type ("document" or "text/plain; charset=utf-8" → 400 InvalidFiles.0.mimeType); returns {sessionId, fileId, filePath, size}, fileId is the file’s id in listings; an existing file or a path whose upload was interrupted (kept for more than four minutes) → 409 UploadReserveError |
| POST | upload: /upload/multisessions |
{files: [...]} |
batch sessions |
| POST | upload: /upload/file/{sessionId} |
multipart: file, path (empty) |
single request, no resume |
| GET | download: /download/file/{id}?purpose=download |
— | the item’s downloadUrl |
Item fields
uploadAt looks like Fri Nov 27 2026 03:43:11 GMT+0000.
id, name, ext, mimeType, size (human), bytes, type, systemType, filePath (parent folder), isFolder, createdAt, uploadAt, lastChangeAt, downloadUrl, preview{...}, isPasswordProtected.