API Endpoints
Folders
Create folder

Base URL

POST
https://v1.empr.cloud/api/v1/folders

Request

Request headers

Headers
Название
Тип / Значение
Описание
X-Token
String
Auth token
Content-Type
application/json

Request body

Body
Название
Тип / Значение
Описание
folder_name
String
Folder name
folder_icon
String
Folder icon. Available values: Cloud, Google, Facebook, TikTok, Amazon, Bitcoin, Meta, PayPal, Discord, Twitter, Vkontakte, Youtube, Tinder, Onlyfans, Threads
folder_color
String
Folder color. Available values: #FFC1073D, #C8E4FFCD, #3366FF3D, #54D62C3D, #FF48423D, #919EAB3D

Request examples

1const url =
2  "https://v1.empr.cloud/api/v1/folders"; 
3
4const body = {
5  "folder_name": "Google Accounts",
6  "folder_icon": "Google",
7  "folder_color": "#3366FF3D"
8}
9
10const options = {
11  method: "POST",
12  headers: {
13    "X-Token": "Your Token", 
14    "Content-Type": "application/json"
15  }, 
16  body: JSON.stringify(body)
17};
18
19fetch(url, options)
20  .then((response) => {
21    response.json().then((data) => {
22      console.log(data);
23    });
24  })
25  .catch((error) => {
26    console.error(error);
27  });

Response

Response data

Response
Название
Тип / Значение
Описание
data
Folder
Folder

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
*Types that end with a question mark (?) are optional.*