Contact Object

id
string

The unique identifier for the contact. Generated by Chatbase.

external_id
string

The unique identifier for the contact provided by your system.

name
string

The contact’s name.

email
string

The contact’s email address. Must be unique if provided.

phonenumber
string

The contact’s phone number (e.g. +1234567890).

created_at
number

The Unix timestamp when the contact was created in Chatbase.

updated_at
number

The Unix timestamp when the contact was last updated in Chatbase.

custom_attributes
object

A JSON object containing custom attributes for the contact. For more information, see Custom Attributes.

Example Contact Object

{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "external_id": "kX2b8YpI-jRmN3vQ5",
  "name": "John Doe", 
  "email": "john.doe@example.com",
  "phonenumber": "+1234567890",
  "custom_attributes": {
    "age": 30,
    "location": "New York"
  },
  "created_at": 1571672154,
  "updated_at": 1571672154
}