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
- id
- A unique identifier for the user which is given by User.com automatically.
- assigned_to
- ID of the agent group the contact is assigned to, or
null. - browser
- A name of user's browser last used to visit your website.
- browser_language
- A user's browser language
- city
- City of the contact's last visit, based on the IP address.
- companies
- Companies the contact is a member of, each with
id,nameandmember_since(despite the name, the company's creation date). - company_custom_id
- 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. - country
- Country of the contact's last visit, based on the IP address.
- created_at
- A creation date of a user.
- custom_id
- The unique identifier for the user which is provided by the client.
- A user email
- email_mx_valid
- Whether the email address passed User's validation; set to
falseafter a hard bounce. - email_opt_in
- Email marketing consent:
truegiven,falserefused,nullnot recorded. - email_tracking_optin
- Consent to email open and click tracking:
truegiven,falserefused,nullnot recorded. - facebook_url
- A URL of user's Facebook profile.
- first_seen
- A date for user's first website visit.
- gender
unknown(default),maleorfemale. Not detected automatically.- google_url
- A URL of user's Google+ profile.
- gravatar_url
- A user avatar url from gravatar.
- hardbounced
trueonce an email to the contact hard-bounced or was dropped.- last_contacted
- A date of last contact with user - any communication (email or chat, automated or otherwise) sent from your team to the user.
- last_heard_from
- When the contact last sent your team a message (chat or email). Emails count only once your inbox is connected over IMAP.
- last_ip
- An address IP (identifier assigned to each device, e.g., laptop, printer, mobile etc.) from the last user visit.
- last_seen
- A date of last user's website visit.
- linkedin_url
- A URL of user's LinkedIn profile.
- lists
- Lists the contact is on, each with
id,nameanddescription. - lt_clicked_email
- When the contact last clicked a link in one of your emails.
- lt_opened_email
- When the contact last opened one of your emails.
- marked_email_as_spam
- Defaults to
trueand isn't changed when emails bounce; checkspambouncedfor spam bounces. - most_active_time
- 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.
- name
- Read-only attribute, made from the combination of the first_name and last_name attributes.
- notifications
- A flag true/false informing if your team is receiving notifications about new chat messages from this user.
- os_type
- An operating system of the user’s device
- page_views
- A total number of user's page visits occurrences.
- phone_number
- A user phone number
- referrer
- URL of the page the contact came to your website from.
- region
- Region of the contact's last visit, based on the IP address.
- resolution
- A screen resolution of the device the user has visited your website.
- score
- A number of points assinged to the user.
- softbounced
trueonce an email to the contact soft-bounced.- spambounced
trueonce an email to the contact bounced as spam.- status
userif the contact's email address has been sent to User through the code on your website, otherwisevisitor.- tags
- Tags on the contact, each with
idandname. - timezone
- A timezone of the user's browser.
- twitter_url
- A URL of user's Twitter profile.
- unsubscribed
- A flag true/false informing if user is unsubscribed from emails.
- updated_at
- A date of last user update.
- user_key
- A unique identifier (12 random characters) for the user which is given by User.com automatically.
- web_push_subscription
trueif the contact has at least one web push subscription.- widget_language
- Language of the chat widget for this contact, used when the widget is set to follow it;
nullif not set.