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