Request

URL

DELETE https://www.chatbase.co/api/v1/chatbots/{chatbotId}/contacts/{contactId}

Path Parameters

chatbotId
string
required

The ID of the chatbot the contact belongs to

contactId
string
required

The ID of the contact to delete

Headers

Authorization
string
required

Bearer <YOUR_API_KEY>

Response

Success Response

  • Status: 204 No Content
message
string

No content returned on successful deletion

Error Responses

401 Unauthorized

  • Invalid or missing API key
{
  "message": "Unauthorized access"
}

404 Not Found

  • Chatbot or contact not found
{
  "message": "Contact not found"
}

429 Too Many Requests

  • Rate limit exceeded
{
  "message": "Rate limit exceeded"
}

Code Examples

curl -X DELETE 'https://api.chatbase.co/v1/chatbots/5ba682d23d7cf92bef87bfd4/contacts/123e4567-e89b-12d3-a456-426614174000' \
  -H 'Authorization: Bearer <YOUR_API_KEY>'