Folder hierarchy or name via API?

On monday.com it’s possible to nest, by 1 level currently, folders in folders like this:
image

But I can’t find where in the API I can retrieve this hierarchy information, or even basic information about the folder. The only thing I’ve found so far is:

query {
	boards(workspace_ids: XXX) {
		name
		board_folder_id
	}
	docs(workspace_ids: XXX) {
		name
		doc_folder_id
	}
}

Which gives me a folder id but then how can I use that id to get basic folder info like the name or if it has a parent folder?

Hi @Spunkie,

Our API currently does not support operations with Folders.