- API
- Deleted Files
GET
https://send.now/api/files/deleted?key=1ltghrilhllgrx2b2&last=1440
| Parameters |
Description |
Example |
Format |
Required |
| key |
API-Key |
1ltghrilhllgrx2b2 |
STRING |
yes |
| last |
Only files deleted within the last N minutes. Default 1440 (24 hours). Folders are always listed |
1440 |
INT |
no |
cURL example
curl --include \
'https://send.now/api/files/deleted?key=1ltghrilhllgrx2b2&last=1440'
Response
{
"msg": "OK",
"server_time": "2022-01-23 04:28:53",
"status": 200,
"result": [
{
"type": "file",
"file_code": "jfru5kl9dhrt",
"name": "video.mp4",
"size": 10485760,
"file_fld_id": 0,
"deleted": "2022-01-23 20:00:01",
"deleted_ago_sec": 435316
},
{
"type": "folder",
"fld_id": "469505",
"name": "Old projects",
"fld_parent_id": 0,
"full_path": "Old projects",
"depth": 0,
"is_main_folder": 1,
"deleted": "0000-00-00 00:00:00",
"deleted_ago_sec": 0
}
]
}
Notice
|
Each entry has a type: file or folder. A deleted folder has no deletion time. |
|
A folder with is_main_folder 1 is the one that was deleted; the folders listed under it were deleted with it. Restore folder with its fld_id brings the folder back together with everything below it. |
Status code
| 200 |
Everything is OK. Request succeeded |
| 400 |
Bad request (e.g. wrong parameters) |
| 403 |
Permission denied |
| 404 |
File not found |
| 451 |
Unavailable
|