How to find folder_id if I want to create a board in a folder

Hi, I wan to create a board in a folder by API Boards, where to find the folder_id? folder should also have “name” attribute, is there a query I can get folder name and id?