Create or update a contact for a specific agent. This endpoint allows you to identify users and associate them with chat sessions, enabling personalized experiences and contact tracking.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Contact creation or identification details.
Unique identifier of the agent
"clx1234567890abcdef"
Unique identifier for the user/contact
"user_12345"
Optional: Existing contact ID to update
"contact_1234567890"
Required if secure identification is enabled for the agent.
"abc123hash"
Full name of the contact
"John Doe"
Email address of the contact
Phone number of the contact
"+1234567890"
Custom attributes to associate with the contact. Only allowed attributes configured for the agent will be saved.
{
"planType": "premium",
"userLevel": "advanced",
"signupDate": "2024-01-15"
}