POST
/v2/user/reg
Headers
Name | Value |
Content-Type | application/json |
Body
Name | Value |
login | Имя пользователя |
phone | Номер телефона |
Электронная почта |
JSON{ status: "Phone registration requested", id: uuid, type: 'phone' }
POST
/v2/user/reg/verify
Headers
Name | Value |
Content-Type | application/json |
Body
Name | Value |
id | ID авторизации, полученный из /user/reg |
code | Код из СМС |
JSON{ status: "Registrated", token: token }
POST
/v2/user/auth
Headers
Name | Value |
Content-Type | application/json |
Body
Name | Value |
type | Тип авторизации: 0 - телефон, 1 - email, 2 - telegram |
password? | Пароль, если тип авторизации по email |
JSON{ status: "Authorized", token: token }
POST
/v2/user/auth/reset
Headers
Name | Value |
Content-Type | application/json |
Body
Name | Value |
Электронная почта |
JSON{ status: "OK", msg: "Reset link sended" }
GET
/v2/user
Headers
Name | Value |
Content-Type | application/json |
Authorization | Bearer <token> |
Response
Вернет информацию о пользователе.JSON[ { "id": "a1b2c3d4-e5f6-7890-1234-567890abcdef", "username": "testuser", "email": "ivan.ivanov@example.com", "firstName": "Иван", "lastName": "Иванов", "phone": "+79001234567", "telegramID": "123456789", "access": 1, "notifications": [], "org": "org_test_1a2b3c", "city": "Москва", "dateBirth": "1990-01-01", "avatar": "default_avatar.jpg", "status": 1, "orgName": "Тестовая Компания", "orgLogo": "org_logo_placeholder.png", "orgAccess": [ "1", "2", "3", "4", "5" ], "orgServicesAccess": [ "0", "1", "2", "3", "6", "11", "7", "12" ], "orgPost": "Тестировщик", "orgBonus": 0, "orgServices": [ { "id": 0, "active": 1, "tariff": "starter", "connectedAt": "1756825416775" }, { "id": 13, "active": 1, "tariff": "perStorage", "connectedAt": "1758985169480" }, { "id": 1, "active": 1 }, { "id": 2, "active": 1 }, { "id": 3, "active": 1 }, { "id": 4, "active": 0 }, { "id": 5, "active": 0 }, { "id": 6, "active": 1, "tariff": "starter", "connectedAt": "1758981664033" }, { "id": 11, "active": 1 }, { "id": 7, "active": 1 }, { "id": 12, "active": 1, "tariff": "starter", "connectedAt": "1758984834773" } ] } ]
POST
/v2/user
Headers
Name | Value |
Content-Type | application/json |
Authorization | Bearer <token> |
Body
Name | Value |
first_name | Имя |
last_name | Фамилия |
bio | Описание профиля |
city | Город |
datebirth | Дата рождения |
avatar? | Аватар для загрузки (опционально) |
JSON{ status: "OK", msg: "Profile updated" }
DELETE
/v2/user
Headers
Name | Value |
Content-Type | application/json |
Authorization | Bearer <token> |
Response
JSON{ status: "OK", msg: "Deleted" }
GET
/v2/user/activity
Headers
Name | Value |
Content-Type | application/json |
Authorization | Bearer <token> |
Response
JSON[ { "activity": 0, "service": "Dashboard via Phone", "date": "2025-09-29T12:17:33.000Z", "location": "::ffff:192.168.1.101" }, { "activity": 4, "service": "CorpForge", "date": "2025-09-26T13:38:26.000Z", "location": "Accepted: fedcba98-7654-3210-fedc-ba9876543210" }, { "activity": 1, "service": "Reset password", "date": "2025-09-26T13:38:26.000Z", "location": "203.0.113.16" } ]
POST
/v2/user/phone
Headers
Name | Value |
Content-Type | application/json |
Authorization | Bearer <token> |
Body
Name | Value |
phone | Номер телефона |
JSON{ status: "OK", msg: "Requested authorization phone" }
POST
/v2/user/pass
Headers
Name | Value |
Content-Type | application/json |
Authorization | Bearer <token> |
Body
Name | Value |
old_password | Старый пароль |
new_password | Новый пароль |
JSON{ status: "OK", msg: "Password updated" }
GET
/v2/user/org
Headers
Name | Value |
Content-Type | application/json |
Authorization | Bearer <token> |
Response
JSON[ { "cid": "f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0", "name": "ООО Ромашка", "logotype": "", "access": [ "1", "2", "3", "4", "5" ], "services": [ "3", "10", "12" ], "post": "Менеджер проекта" }, { "cid": "a0b9c8d7e6f5a4b3c2d1e0f9a8b7c6d5e4f3a2b1", "name": "Project Alpha", "logotype": "", "access": [ "1", "2", "3", "4", "5" ], "services": [ "6" ], "post": "Менеджер проекта" } ]
POST
/v2/user/org
Headers
Name | Value |
Content-Type | application/json |
Authorization | Bearer <token> |
Body
Name | Value |
cid | ID организации |
JSON{ status: "OK", msg: "Organization changed" }