Chat Clear
The /chat/clear endpoint clears all messages from a private chat.
posthttps://api.moxon.dev /v6/chat/clear
Changed in 6.0.0
This endpoint moved from DELETE to POST, and its identifier left the URL: token is now sent in the JSON body. PATCH and DELETE no longer exist anywhere in the API.
Try itpost/v6/chat/clear
curl -X POST \ "https://api.moxon.dev/v6/chat/clear" \ -H "Content-Type: application/json" \ -d '{}'Send the request to see the response here.
tokenstringrequiredThe private chat token
usernamestringrequiredThe username
sessionstringrequiredThe user's session identifier
Good to know
All 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/v6/chat - Send a message
- get/v6/chat - Retrieve all recent messages
- post/v6/chat/private - Create and manage private chat channels
Last updated on September 13, 2026