Online Chat
The /chat endpoint provides a real-time messaging system with support for public and private channels. Messages are stored for 1 hour.
posthttps://api.moxon.dev /v5/chat
Try itpost/v5/chat
curl -X POST \ "https://api.moxon.dev/v5/chat" \ -H "Content-Type: application/json" \ -d '{}'Send the request to see the response here.
usernamestringrequiredThe username of the user who sends the message
messagestringrequiredThe message to send
sessionstringrequiredThe session ID of the user
tokenstringoptionalThe key used to connect to a private chat. If not provided, the message will be sent to the global chat
messagestringConfirmation message
- 429
Global rate limit exceeded.Global API rate limit reached - 429
You have exceeded the limit of X requests per hour.Hourly IP/token limit reached - 400
Rate limit exceeded. Try again in X seconds.Per-user short-window limit - 400
Session ID mismatchSession does not match the user
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 message (&message={message})Themessageparameter is missing - 400
Please provide a valid session ID (&session={ID})Thesessionparameter is missing or invalid
- get/v5/chat - Retrieve all recent messages
- post/v5/chat/private - Create and manage private chat channels
- delete/v5/chat/:token - Clear all messages from a private chat
Last updated on May 25, 2026