Private Chat
The /chat/private endpoint retrieves all messages sent during the last hour, belonging to a private chat.
posthttps://api.moxon.dev /v4/chat/private
Try itpost/v4/chat/private
curl -X POST \ "https://api.moxon.dev/v4/chat/private" \ -H "Content-Type: application/json" \ -d '{}'Send the request to see the response here.
usernamestringrequiredThe username of the user who sends the message
tokenstringrequiredThe key used to connect to the desired private chat
usernamestringUsername of the message sender
messagestringContent of the message
timestampstringISO 8601 timestamp of the message
If parameters are missing or invalid, the API will return an error:
- 400
Please provide a username (?username={username})Theusernameparameter is missing - 400
Please provide a valid token (&token={key}).Thetokenparameter is missing or invalid - 400
Invalid or expired tokenThe token is invalid or has expired - 400
Rate limit exceededToo many requests in a short period
- post/v4/chat - Send a message
- get/v4/chat - Retrieve all recent messages
- delete/v4/chat/:token - Clear all messages from a private chat
Last updated on April 21, 2026