Delete Chat

Deletes a chat. Only the creator can perform this action.

Query Parameters
  • chatId
    Type: stringFormat: uuid
    required
Headers
  • Authorization
    Type: string
    required

    JWT Bearer token. Format: Bearer <JWT>

Responses
  • 200

    Chat deleted successfully.

  • 400

    User not in chat, not the creator, or chat doesn't exist.

  • application/json
Request Example for delete/api/chat/deleteChat
curl 'https://demo.api.whispchat.com/api/chat/deleteChat?chatId=' \
  --request DELETE \
  --header 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9...' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
No Body