/api/user/folders
View all folders or create a new folder.
Info
This endpoint requires authentication.
GET Request
Query Parameters
Name | Type | Description |
---|---|---|
noincl | boolean | If true , returned folders will not include the files (eliminates unnecessary fetching of files). |
Response
Status: 200 OK
Content-Type: application/json
An array of Folder objects.
POST Request
Create a new folder.
Body
Content-Type: application/json
Property | Type | Description |
---|---|---|
name | string | Required. Name of the folder. |
isPublic | boolean? | Whether the folder is public (false by default). |
files | string[]? | Optional array of file IDs to associate with this folder. |
Example
Create a folder that is not public and contains two files:
{"name": "My Folder","files": ["id1", "id2"]}
Create a folder that is public:
{"name": "Public Folder","isPublic": true}
Response
Status: 200 OK
Content-Type: application/json
A Folder object representing the created folder.
Error Responses
-
400 Bad Request
Missing a folder name or the file ids provided are invalid.
/api/user/files/transaction
Perform bulk actions on your files: delete, favorite/unfavorite, or mo...
/api/user/folders/:id
View, update, or delete a specific folder by its ID.
Last updated: 6/1/2025
Edit this page on GitHub