Skip to content

User Object

The User Object represents an individual user (client or expert) within the platform.

AttributeDescription
email stringUser's email address.
phone string, nullableUser's phone number.
role enumUser role. See User Roles.
firstName string, nullableUser's first name.
lastName string, nullableUser's last name.
billingAddress object, nullableUser's billing address. See Address.
shippingAddress object, nullableUser's shipping address. See Address.
bankAccount object, nullableUser's bank account (experts only). See Bank Account.
company object, nullableUser's company details. See Company.
regions array, nullableArray of regions where expert provides services (experts only). See Regions.
emailVerified booleanWhether the user's email address has been verified.
newsletterSubscribed booleanWhether the user is subscribed to the newsletter.

User Roles

ValueDescription
expertExpert - Provides testimony services
clientClient - Requests and pays for testimony services

Regions

For experts, the regions field contains an array of region codes:

json
"regions": ["nr", "tt", "ba"]

Available region values:

CodeRegion
baBratislavský kraj
bbBanskobystrický kraj
keKošický kraj
nrNitriansky kraj
poPrešovský kraj
tnTrenčiansky kraj
ttTrnavský kraj
zaŽilinský kraj