perform.chat
Auth for Chat

Customer Users

Understanding customer user management

What are Customer Users?

customer_users represent your end users in the PerformChat system. They are:

  • Automatically created when you generate a token
  • Scoped to your company - isolated from other companies
  • Identified by your userId - you control the identifier
  • Lightweight - minimal data stored, respecting privacy

Customer User Fields

FieldTypeDescription
idstringInternal PerformChat ID (auto-generated)
company_idstringYour company's ID
external_idstringYour user's ID from your system
emailstring(Optional) User's email
namestring(Optional) User's name
metadataJSON(Optional) Custom data about the user
activebooleanWhether the user is active
created_atDateTimeWhen the user was first created
last_seen_atDateTimeLast time the user accessed chat

Automatic User Management

When you generate a token:

  1. PerformChat looks for an existing customer_user with your userId
  2. If not found, creates a new customer_user automatically
  3. Updates the last_seen_at timestamp on each token generation
  4. Associates all conversations with this customer_user