- API
- Folder names list
GET
https://send.now/api/folder/names_list?key=1ltghrilhllgrx2b2&fld_id=58&per_page=20
| Parameters |
Description |
Example |
Format |
Required |
| key |
API-Key |
1ltghrilhllgrx2b2 |
String |
yes |
| fld_id |
Folder id. 0 or not sent = the top level |
58 |
Number |
no |
| per_page |
Files per page, used for total_pages (default 20) |
20 |
Number |
no |
cURL example
curl --include \
'https://send.now/api/folder/names_list?key=1ltghrilhllgrx2b2&fld_id=58'
Response
{
"msg": "OK",
"result": {
"current_folder": {
"fld_id": 58,
"fld_name": "Videos",
"total_files": 61,
"total_pages": 4,
"per_page": 20
},
"folders": [
{
"fld_id": 395485,
"fld_name": "Holidays",
"fld_code": null,
"fld_files": 4,
"fld_parent_id": 58,
"has_children": 1
}
]
},
"status": 200,
"server_time": "2024-08-26 12:19:28"
}
Notice
|
The subfolders of a folder without the files: what a folder tree needs. Open a folder by asking again with its fld_id; has_children tells which ones have subfolders. |
|
A folder that does not exist, was deleted or is not yours returns 403. |
Status code
| 200 |
Everything is OK. Request succeeded |
| 400 |
Bad request (e.g. wrong parameters) |
| 403 |
Permission denied |
| 404 |
File not found |
| 451 |
Unavailable
|