Purpose
Theidentify
method tells UserKit who the current user is, enabling personalized call experiences and proper user management in the UserKit dashboard. This must be called before initiating calls.
Signature
Parameters
Name | Type | Description |
---|---|---|
id | String | A unique identifier for the user. Should not be guessable and must be unique per user |
name | String? | Optional display name for the user |
email | String? | Optional email address for the user |
Returns
This method does not return a value.Usage
Basic Identification
Full User Information
Best Practices
- Do not make your user IDs guessable – they are public facing
- Ensure the ID is unique per user
- Do not use device IDs for user IDs - this will result in multiple user records as device IDs rotate
- Call this method after user authentication in your app
- Update user information if it changes during the session
Notes
- The
name
andemail
parameters are optional but recommended for better user experience - User information will appear in the UserKit dashboard
- This method can be called multiple times to update user information