Skip to main content

User model

Users are visitors (or contacts) interacting with your website. A User Model provides details on user attributes and parameters that can be used within API.

Note: In the current application UI, the entity previously called “user” is now labeled as “contact”. In the API, the term "user" is still used (e.g., User model, /users endpoints), and both terms refer to the same object.

Properties​

Attributes

idinteger
A unique identifier for the user which is given by User.com automatically.
assigned_tointeger
ID of the agent group the contact is assigned to, or null.
browserstring
A name of user's browser last used to visit your website.
browser_languagestring
A user's browser language
citystring
City of the contact's last visit, based on the IP address.
companieslist(objects)
Companies the contact is a member of, each with id, name and member_since (despite the name, the company's creation date).
company_custom_idstring
Write-only, on create and update: your own ID of a company to add the contact to. A company with that ID is created if it doesn't exist. Not returned; see companies.
countrystring
Country of the contact's last visit, based on the IP address.
created_atdatetime
A creation date of a user.
custom_idstring
The unique identifier for the user which is provided by the client.
emailstring(email)
A user email
email_mx_validboolean
Whether the email address passed User's validation; set to false after a hard bounce.
email_opt_inboolean
Email marketing consent: true given, false refused, null not recorded.
email_tracking_optinboolean
Consent to email open and click tracking: true given, false refused, null not recorded.
facebook_urlstring
A URL of user's Facebook profile.
first_seenstring
A date for user's first website visit.
genderstring
unknown (default), male or female. Not detected automatically.
google_urlstring
A URL of user's Google+ profile.
gravatar_urlstring
A user avatar url from gravatar.
hardbouncedboolean
true once an email to the contact hard-bounced or was dropped.
last_contacteddatetime
A date of last contact with user - any communication (email or chat, automated or otherwise) sent from your team to the user.
last_heard_fromdatetime
When the contact last sent your team a message (chat or email). Emails count only once your inbox is connected over IMAP.
last_ipstring
An address IP (identifier assigned to each device, e.g., laptop, printer, mobile etc.) from the last user visit.
last_seendatetime
A date of last user's website visit.
linkedin_urlstring
A URL of user's LinkedIn profile.
listslist(objects)
Lists the contact is on, each with id, name and description.
lt_clicked_emaildatetime
When the contact last clicked a link in one of your emails.
lt_opened_emaildatetime
When the contact last opened one of your emails.
marked_email_as_spamboolean
Defaults to true and isn't changed when emails bounce; check spambounced for spam bounces.
most_active_timestring
Most Active Time is an attribute that is based on historical data determined by the hours of previous use and the most likely active use. Time in this attribute is positioned in the UTC timezone, and there's no possible way to change the timezone for the attribute.
namestring
Read-only attribute, made from the combination of the first_name and last_name attributes.
notificationsboolean
A flag true/false informing if your team is receiving notifications about new chat messages from this user.
os_typestring
An operating system of the user’s device
page_viewsinteger
A total number of user's page visits occurrences.
phone_numberstring
A user phone number
referrerstring
URL of the page the contact came to your website from.
regionstring
Region of the contact's last visit, based on the IP address.
resolutionstring
A screen resolution of the device the user has visited your website.
scoreinteger
A number of points assinged to the user.
softbouncedboolean
true once an email to the contact soft-bounced.
spambouncedboolean
true once an email to the contact bounced as spam.
statusstring
user if the contact's email address has been sent to User through the code on your website, otherwise visitor.
tagslist(objects)
Tags on the contact, each with id and name.
timezonestring
A timezone of the user's browser.
twitter_urlstring
A URL of user's Twitter profile.
unsubscribedboolean
A flag true/false informing if user is unsubscribed from emails.
updated_atdatetime
A date of last user update.
user_keystring
A unique identifier (12 random characters) for the user which is given by User.com automatically.
web_push_subscriptionboolean
true if the contact has at least one web push subscription.
widget_languagestring
Language of the chat widget for this contact, used when the widget is set to follow it; null if not set.