Used by thousands of students worldwide - help us reach 150 members
Folders
/foldersFolders organise a user's notes. Every note belongs to exactly one folder, and folders are private to their owner.
/foldersList your foldersGET/folders/:folderIdGet a folderPOST/foldersCreate a folderPUT/folders/:folderIdUpdate a folderDELETE/folders/:folderIdDelete a folder and its notesList your folders
Returns all folders owned by the authenticated user, sorted by `lastModified` descending. Each folder includes a summary (`id`, `title`, `lastModified`) of the notes it contains.
Errors
401No token provided403Invalid token500Unexpected server error
curl -X GET "https://app.ummahspot.com/folders" \
-H "Authorization: Bearer $SHARH_TOKEN"{
"folders": [
{
"id": "66f19f00c4d5e6f7a8b9bf10",
"name": "Nahw",
"description": "Arabic grammar notes",
"noteCount": 1,
"notes": [
{
"id": "66f1a2b3c4d5e6f7a8b9c0d1",
"title": "Al-Ajrumiyyah study notes",
"lastModified": "2026-09-10T18:42:07.113Z"
}
],
"createdAt": "2026-08-01T07:30:00.000Z",
"lastModified": "2026-09-10T18:40:51.006Z"
}
]
}Get a folder
Returns one folder with a summary of its notes. The folder must be owned by the authenticated user.
Path parameters
folderIdstring | Folder ObjectId |
Errors
401No token provided403Invalid token, or the folder belongs to another user404No folder with the given ID exists500Unexpected server error (including a malformed folder ID)
curl -X GET "https://app.ummahspot.com/folders/:folderId" \
-H "Authorization: Bearer $SHARH_TOKEN"{
"id": "66f19f00c4d5e6f7a8b9bf10",
"name": "Nahw",
"description": "Arabic grammar notes",
"notes": [
{
"id": "66f1a2b3c4d5e6f7a8b9c0d1",
"title": "Al-Ajrumiyyah study notes",
"lastModified": "2026-09-10T18:42:07.113Z"
}
],
"createdAt": "2026-08-01T07:30:00.000Z",
"lastModified": "2026-09-10T18:40:51.006Z"
}Create a folder
Creates an empty folder owned by the authenticated user.
Body parameters
namerequiredstring | Folder name. |
descriptionstring | Folder description.Default: '' |
Errors
400`name` is missing401No token provided403Invalid token500Unexpected server error
curl -X POST "https://app.ummahspot.com/folders" \
-H "Authorization: Bearer $SHARH_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"string"}'{
"id": "66f19f00c4d5e6f7a8b9bf10",
"name": "Nahw",
"description": "Arabic grammar notes",
"notes": [],
"createdAt": "2026-09-18T10:00:12.345Z",
"lastModified": "2026-09-18T10:00:12.345Z"
}Update a folder
Renames a folder and/or changes its description. `name` is only applied when it is a non-empty value; `description` is applied whenever it is present (an empty string clears it). The folder must be owned by the authenticated user.
Path parameters
folderIdstring | Folder ObjectId |
Body parameters
namestring | New folder name. Ignored when empty. |
descriptionstring | New folder description. |
Errors
401No token provided403Invalid token, or the folder belongs to another user404No folder with the given ID exists500Unexpected server error (including a malformed folder ID)
curl -X PUT "https://app.ummahspot.com/folders/:folderId" \
-H "Authorization: Bearer $SHARH_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"string"}'{
"id": "66f19f00c4d5e6f7a8b9bf10",
"name": "Nahw & Sarf",
"description": "Arabic grammar and morphology notes",
"lastModified": "2026-09-18T10:05:47.911Z"
}Delete a folder and its notes
Permanently deletes the folder together with every note stored in it. The folder must be owned by the authenticated user.
Path parameters
folderIdstring | Folder ObjectId |
Errors
401No token provided403Invalid token, or the folder belongs to another user404No folder with the given ID exists500Unexpected server error (including a malformed folder ID)
curl -X DELETE "https://app.ummahspot.com/folders/:folderId" \
-H "Authorization: Bearer $SHARH_TOKEN"{
"message": "Folder and all its notes deleted successfully"
}