Base URL
GET
https://v1.empr.cloud/api/v1/folders
Request
Request headers
Headers
Название
Тип / Значение
Описание
X-Token
String
Auth token
Request example
1const url =
2 "https://v1.empr.cloud/api/v1/folders";
3
4const options = {
5 method: "GET",
6 headers: {
7 "X-Token": "Your Token",
8 },
9};
10
11fetch(url, options)
12 .then((response) => {
13 response.json().then((data) => {
14 console.log(data);
15 });
16 })
17 .catch((error) => {
18 console.error(error);
19 });
Response
Response data
Response
Название
Тип / Значение
Описание
data
Array<Folder>
Array of folders
Response example
1{
2 "data": [
3 {
4 "id": "cf4003e0-e630-4bc3-9961-61d81c2f3aa5",
5 "owner": "28a3abfc-6892-4dd0-a4f1-57b449851865",
6 "folder_name": "Google Accounts",
7 "folder_icon": "Google",
8 "folder_color": "#3366FF3D",
9 "created_at": "2023-06-22T17:35:58.373758Z",
10 "updated_at": "2023-06-22T17:35:58.373758Z",
11 "deleted_at": null
12 },
13 ]
14}
15
Types
Folder
Название
Тип / Значение
Описание
id
String
ID
owner
String
Owner ID
folder_name
String
Name
folder_icon
String
Icon
folder_color
String
Color
created_at
String
Creation date
updated_at
String
Last update date
deleted_at
String?
Folder deletion date