API

Obține setările profilului

GET/api/crm/v2/profilev2
operationId: profile.default

Returnează setările profilului utilizatorului curent. Sesiunea curentă este marcată cu is_current.

Autorizare

api-token + language + role

Răspunsuri

OK

object
statusstringobligatoriu

Valori:successerror

Exemplu: success

dataobject
namestring

Numele utilizatorului; poate fi gol

Exemplu: John Smith

emailstring

Loginul curent; se modifică doar prin profile.request_email_change și numai după confirmare

Exemplu: user@fs.pro

confirmedboolean

Adresa este confirmată

Exemplu: true

email_confirmationobject

Cerere activă de confirmare a adresei; null dacă nu există. Dacă email corespunde cu cel curent, cererea confirmă înregistrarea, altfel — schimbarea adresei.

emailstring

Exemplu: new@fs.pro

date_creationstring (DataTimeFormatSQL)

Exemplu: 2024-05-02 08:31:16

date_expirationstring (DataTimeFormatSQL)

Exemplu: 2024-05-02 08:31:16

phone_format_idinteger (PhoneFormatId)

Codul țării: 1-🇷🇺(+7|8), 2-🇦🇿(+994|0), 3-🇧🇾(+375|80), 4-🇰🇿(+7|8), 6-🇷🇸(+381|0), 7-🇹🇷(+90|0), 8-🇺🇦(+380|0), 9-🇵🇹(+351|0), 10-🇰🇬(+996|0), 11-🇺🇸(+1), 12-🇫🇷(+33|0), 13-🇲🇩(+373|0), 15-🇪🇪(+372), 18-🇬🇪(+995), 19-🇺🇿(+998), 22-🇵🇱(+48|0), 23-🇹🇯(+992|8), 25-🇷🇴(+40|0), 44-🇨🇭(+41|0)

Exemplu: 1

phone_numberstring

Exemplu: 9999999999

telegram_user_idstring

Exemplu: 476962294

timezonestring

Exemplu: Europe/Kaliningrad

languagestring

Exemplu: ru

photostring

Exemplu: https://cdn.foodsoul.test/users/images/b4374f57329de384b95e7abdaddb9ffa.jpg?v1744970341

otp_enabledboolean

Exemplu: false

tokenstring

Exemplu: 92f8ef94a3651255101139e6d2261785

tg_bot_namestring

Exemplu: fs_system_notifications_bot

max_bot_namestring

Exemplu: fs_system_notifications_bot

secretstringobligatoriu

Exemplu: HF4DO4LYGM2G643E

qrstringobligatoriu

Exemplu: https://api.qrserver.com/v1/create-qr-code/?data=otpauth%3A%2F%2Ftotp%2FFS%2520Partner%3Aglasscat86%40gmail.com%3Fsecret%3DNMYXKRZVOF5DQ2JW%26issuer%3DFS%2520Partner&size=520x520&margin=15

sessionsarray of object

Sesiuni active ale utilizatorului

idinteger

Exemplu: 1

date_last_usedstring

Exemplu: 2026-08-03 15:13:58

ip_addressstring

Exemplu: 78.36.200.161

user_agentstring

Exemplu: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/151.0.0.0 Safari/537.36

is_currentboolean

Exemplu: true