API

Pobierz dane użytkownika

GET/api/crm/v2/application.user_infov2
operationId: application.userInfo

Zwraca dane konta.

Autoryzacja

api-token + language + role

Odpowiedzi

OK

object
statusstringwymagane

Wartości:successerror

Przykład: success

dataobject
user_idnumberwymagane

Przykład: 1

user_namestring

Przykład: Juan Carlos II | Pizza

namestring

Przykład: John Smith

emailstring

Adres e-mail użytkownika, będący jednocześnie loginem

Przykład: user@example.com

confirmedboolean

Czy e-mail użytkownika został potwierdzony

Przykład: true

timezonestringwymagane

Przykład: Europe/Kaliningrad

languagestringwymagane

Przykład: ru

photostring

Przykład: https://cdn.foodsoul.dev/users/images/5f90d2fced4d461aea09e1cd41787d9d.jpg?v1755515629

confirmation_of_actions_enabledboolean

Przykład: true

otp_enabledbooleanwymagane

Przykład: true

ios_account_infoboolean

Przykład: true

translator_settingsobject
section_enabledboolean

Przykład: true

language_available_filesarray of string
language_not_available_filesarray of string
language_codesarray of string
language_platformsarray of string
edit_actions_enabledbooleanwymagane

Przykład: true

compilation_action_enabledbooleanwymagane

Przykład: true

permissionsarray of stringwymagane

Nazwy wszystkich ról użytkownika; dostęp przyznany, jeśli pozwala na to przynajmniej jedna rola

metadataobjectmoże być null

Osobiste ustawienia użytkownika w CRM; null — brak zapisanych ustawień

themestring

Wartości:darklight

Przykład: dark

menustring

Wartości:horizontalvertical

Przykład: horizontal

pinned_sectionsarray of integer
permission_role_idsarray of integer

Identyfikatory ról użytkownika; kolejność odpowiada permissions

percent_rateinteger

Przykład: 10

socialobject
free_pushobjectwymagane
activebooleanwymagane

Przykład: false

linkstringwymagane

Przykład: push_notifications

sitesobjectwymagane
activebooleanwymagane

Przykład: false

linkstringwymagane

Przykład: sites_domains

vkobject
activebooleanwymagane

Przykład: false

linkstringwymagane

Może być linkiem zewnętrznym

Przykład: social_apps

fbobject
activebooleanwymagane

Przykład: false

linkstringwymagane

Może być linkiem zewnętrznym

Przykład: social_apps

iosobjectwymagane
activebooleanwymagane

Przykład: false

linkstringwymagane

Może być linkiem zewnętrznym

Przykład: https://app

androidobjectwymagane
activebooleanwymagane

Przykład: false

linkstringwymagane

Może być linkiem zewnętrznym

Przykład: https://app

huaweiobjectwymagane
activebooleanwymagane

Przykład: false

linkstringwymagane

Może być zewnętrznym linkiem

Przykład: https://app

hierarchyobject
chainsobject
idsarray of integer
branchesobject
idsarray of integer
citiesobject
idsarray of integer