Skip to main content
DELETE
/
chatbots
/
{chatbotId}
/
contacts
/
{contactId}
Delete a contact
curl --request DELETE \
  --url https://www.chatbase.co/api/v1/chatbots/{chatbotId}/contacts/{contactId} \
  --header 'Authorization: Bearer <token>'
{
  "message": "Success",
  "data": {
    "id": "contact_internal_123",
    "external_id": "user_123",
    "name": "John Doe",
    "email": "john@example.com",
    "phonenumber": "+1234567890",
    "stripe_accounts": [
      {
        "label": "main",
        "stripe_id": "cus_123abc456",
        "stripe_email": "john@example.com"
      }
    ],
    "custom_attributes": {
      "department": "Sales",
      "subscription_tier": "Premium"
    },
    "created_at": 1704067200,
    "updated_at": 1704153600
  }
}

Authorizations

Authorization
string
header
required

API key in Bearer token format

Path Parameters

chatbotId
string
required

ID of the chatbot

contactId
string
required

External ID of the contact

Response

Contact deleted successfully

message
string
Example:

"Success"

data
object
I