Skip to content
moxon home

Chat Clear

The /chat/:token endpoint clears all messages from a private chat.

deletehttps://api.moxon.dev/v5/chat/:token
Try itdelete/v5/chat/:token

Parameters

  • tokenstringrequired

    The private chat token (URL parameter)

  • usernamestringrequired

    The username

  • sessionstringrequired

    The 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.

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