Finance OS / API

Profile

GET /api/mobile/profile
Bearer Token

Расширенный профиль с настройками

То же, что /api/mobile/user, но с дополнительными секциями: notification preferences, security settings, linked devices count, referral stats.

Response

Responses

{
  "data": {
    "user": {
      "id": "usr_5f8d7a3c...",
      "email": "you@example.com",
      "name": "Иван Петров",
      "phone": "+79001234567",
      "avatar_url": "https://fin-os.io/storage/avatars/abc.webp"
    },
    "security": {
      "two_factor_enabled": true,
      "active_sessions": 3,
      "last_password_change": "2025-12-01T10:00:00Z",
      "ip_binding_enabled": false
    },
    "notifications": {
      "email": { "deposits": true,  "withdrawals": true,  "marketing": false },
      "push":  { "deposits": true,  "withdrawals": true,  "trading_alerts": true },
      "sms":   { "deposits": false, "withdrawals": true,  "marketing": false }
    },
    "referrals": {
      "code": "REF-IVAN-2025",
      "invited_count": 12,
      "active_count": 8,
      "earnings_total_rub": "4500.00"
    },
    "preferences": {
      "language": "ru",
      "timezone": "Europe/Moscow",
      "currency_display": "RUB",
      "theme": "dark"
    }
  }
}

Обновление профиля

Поля профиля обновляются через отдельные endpoints (не PATCH на profile целиком):

  • PATCH /api/mobile/profile/preferences — language, timezone, theme, currency_display
  • PATCH /api/mobile/profile/notifications — флаги уведомлений
  • POST /api/mobile/profile/avatar — multipart upload фото
  • POST /api/mobile/profile/phone — смена телефона (требует SMS-подтверждения)
  • POST /api/mobile/profile/email — смена email (требует email-подтверждения)