List folders
GET
/folders
const url = 'https://api.engram.page/folders';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.engram.page/folders \ --header 'Authorization: Bearer <token>'Returns every folder in the current vault with its note count, plus a stable marker id and parent id so clients can rebuild the folder hierarchy. Derived (no-marker) folders and the root return a null id and are not eligible as parents.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Folders
Media typeapplication/json
FoldersResponse
object
folders
required
Array<object>
Folderobject
count
integer
id
string format: uuid
name
required
string
parent_id
string format: uuid
Examplegenerated
{ "folders": [ { "count": 1, "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "parent_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" } ]}