GET
/
api
/
v1
/
folders
Get all folders
const url = 'https://studyfetchapi.com/api/v1/folders';
const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}, body: undefined};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}

Authorizations

x-api-key
string
header
required

API Key for authentication

Query Parameters

parentId
any

Filter by parent folder

Response

200

Folders retrieved successfully