POST
/
api
/
v2
/
contacts
curl --request POST \
  --url https://app.livechatai.com/api/v2/contacts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "agentId": "clx1234567890abcdef",
  "distinctId": "user_12345",
  "contactId": "contact_1234567890",
  "userHash": "abc123hash",
  "name": "John Doe",
  "email": "john@example.com",
  "phone": "+1234567890",
  "attributes": {
    "planType": "premium",
    "userLevel": "advanced",
    "signupDate": "2024-01-15"
  }
}'
{
  "status": "success",
  "contactId": "contact_1234567890"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Contact creation or identification details.

The body is of type object.

Response

200
application/json

Contact created or updated successfully.

The response is of type object.