Skip to main content
DELETE
/
api
/
conversation
Delete a conversation and its messages
curl --request DELETE \
  --url https://your-instance.example.com/api/conversation \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "conversationId": "65d3e0f0a0b0c0d0e0f0a0b0"
}
'
{
  "message": "Conversation deleted"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
conversationId
string
required

_id of the conversation to delete; the conversation must belong to the caller's organization.

Response

Conversation deleted

message
string
data
any