GET
/
api
/
v2
/
contacts
/
{contactId}
curl --request GET \
  --url https://app.livechatai.com/api/v2/contacts/{contactId} \
  --header 'Authorization: Bearer <token>'
{
  "id": "contact_1234567890",
  "chatSource": "website",
  "email": "john@example.com",
  "agentId": "clx1234567890abcdef",
  "distinctId": "user_12345",
  "name": "John Doe",
  "phone": "+1234567890",
  "threadId": "thread_12345",
  "ip": "192.168.1.1",
  "country": "US",
  "attributes": [
    {
      "key": "planType",
      "value": "premium"
    }
  ],
  "createdAt": "2024-01-15T10:30:00Z",
  "updatedAt": "2024-01-20T14:45:00Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

contactId
string
required

Unique identifier of the contact

Example:

"contact_1234567890"

Response

200
application/json

Successfully retrieved contact details

The response is of type object.