Skip to content
moxon home

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

Parameters

  • tokenstringrequired

    The private chat token

  • usernamestringrequired

    The username

  • sessionstringrequired

    The user's session identifier

Good to know

All parameters are sent as a JSON body with Content-Type: application/json.

Response Fields

  • messagestring

    Confirmation message

Code Examples

Error Handling

If parameters are missing or invalid, the API will return an error:

  • 400Invalid or expired tokenThe token is invalid or has expired
  • 400Session ID mismatchSession does not match the user
  • 400Rate limit exceededToo many requests in a short period