Delete Chat DELETE
Overview
Permanently deletes a chat and all associated messages.
Endpoint URL
Endpoint Data
Example Request
curl -X DELETE "http://localhost:3026/api/chats/550e8400-e29b-41d4-a716-446655440000" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-b cookies.txt
Example Response
Error Responses
| Status Code | Error | Description |
|---|---|---|
400 |
Bad Request | Invalid chat ID format (not UUID) |
401 |
Unauthorized | Invalid or missing session |
403 |
Forbidden | Cannot delete another user's chat |
404 |
Not Found | Chat does not exist |