API

Obter configurações do perfil

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

Retorna as configurações de perfil do usuário atual. A sessão atual é marcada com is_current.

Autorização

api-token + language + role

Respostas

OK

object
statusstringobrigatório

Valores:successerror

Exemplo: success

dataobject
namestring

Nome de usuário; pode estar vazio

Exemplo: John Smith

emailstring

Login atual; só pode ser alterado via profile.request_email_change e somente após confirmação

Exemplo: user@fs.pro

confirmedboolean

Endereço confirmado

Exemplo: true

email_confirmationobject

Solicitação ativa de confirmação de endereço; null se não houver. Se o email coincidir com o atual, a solicitação confirma o registro, caso contrário — a alteração de endereço.

emailstring

Exemplo: new@fs.pro

date_creationstring (DataTimeFormatSQL)

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

date_expirationstring (DataTimeFormatSQL)

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

phone_format_idinteger (PhoneFormatId)

Código do país: 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)

Exemplo: 1

phone_numberstring

Exemplo: 9999999999

telegram_user_idstring

Exemplo: 476962294

timezonestring

Exemplo: Europe/Kaliningrad

languagestring

Exemplo: ru

photostring

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

otp_enabledboolean

Exemplo: false

tokenstring

Exemplo: 92f8ef94a3651255101139e6d2261785

tg_bot_namestring

Exemplo: fs_system_notifications_bot

max_bot_namestring

Exemplo: fs_system_notifications_bot

secretstringobrigatório

Exemplo: HF4DO4LYGM2G643E

qrstringobrigatório

Exemplo: 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

Sessões ativas do usuário

idinteger

Exemplo: 1

date_last_usedstring

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

ip_addressstring

Exemplo: 78.36.200.161

user_agentstring

Exemplo: 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

Exemplo: true