GET

https://send.now/api/folder/restore?key=1ltghrilhllgrx2b2&fld_id=58

Parameters Description Example Format Required
key API-Key 1ltghrilhllgrx2b2 String yes
fld_id ID of the folder to restore, as listed by Trash (type folder) 58 Number yes

cURL example


curl --include \
'https://send.now/api/folder/restore?key=1ltghrilhllgrx2b2&fld_id=58'
          

Response


          {
            "msg": "Folder restored successfully",
            "server_time": "2026-10-04 13:40:25",
            "status": 200,
            "result": {
              "restored_files": 6,
              "restored_subfolders": 3
            }
          }
          
Field Description
restored_files Number of files taken out of the trash: the files of the folder and of all folders below it
restored_subfolders Number of subfolders (on every level below the folder) taken out of the trash

Notice

The folder comes back with all its subfolders and their files, however deep they are.
If a folder above it is in the trash too, that folder comes back as well, so the restored folder is not left inside a hidden one. Its other contents stay in the trash.
If the parent folder no longer exists, the folder is restored to the root.
Files that were deleted on their own before the folder was deleted are restored with it.
Only folders that are still in the trash can be restored. A folder is removed for good once all its files have been deleted permanently. A folder that is not in the trash, one that does not exist and one that belongs to another account all return 404.

Status code

200 Everything is OK. Request succeeded
400 Bad request (fld_id missing)
403 Permission denied
404 Folder not found in the trash
451 Unavailable