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).
stripe_accounts
array
An array of Stripe account objects. Each object must include a label and stripe_id. The stripe_email is optional.
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",
  "stripe_accounts": [
    {
      "label": "Team 1",
      "stripe_id": "cus_1234567890",
      "stripe_email": "john.doe@example.com"
    },
    {
      "label": "Team 2",
      "stripe_id": "cus_9876543210"
    }
   
  ],
  "custom_attributes": {
    "age": 30,
    "location": "New York"
  },
  "created_at": 1571672154,
  "updated_at": 1571672154
}