Called from your backend for a user who is signed in to your site. The claim goes to the page, which passes it to the widget; the chat is then filed under that contact, and the agent acts for them. See Chat widget.
Upsert creates the customer if they’re new. Look up finds one you’ve already sent. Saved id is fastest: store contact.id in your own database the first time, and skip the extra call.
string
required
The CRM’s id for the customer: the id that contacts.upsert returns, or what contacts.resolve finds from your own id.
number
How long the claim is accepted for. Six hours when omitted, a day at most. Mint one per page load.

Returns

object