Chat Clear
The /chat/:token endpoint clears all messages from a private chat.
deletehttps://api.moxon.dev /v4/chat/:token
Try itdelete/v4/chat/:token
curl -X DELETE \ "https://api.moxon.dev/v4/chat/41a43360-9874-4c7a-9ca8-eec29e765a0e" \ -H "Content-Type: application/json" \ -d '{}'Send the request to see the response here.
tokenstringrequiredThe private chat token (URL parameter)
usernamestringrequiredThe username
sessionstringrequiredThe user's session identifier
Good to know
The token parameter is part of the URL path. The other parameters are sent as a JSON body with Content-Type: application/json.
messagestringConfirmation message
If parameters are missing or invalid, the API will return an error:
- 400
Invalid or expired tokenThe token is invalid or has expired - 400
Session ID mismatchSession does not match the user - 400
Rate limit exceededToo many requests in a short period
- post/v4/chat - Send a message
- get/v4/chat - Retrieve all recent messages
- post/v4/chat/private - Create and manage private chat channels
Last updated on April 14, 2026