Online Chat
The /chat endpoint provides a real-time messaging system with support for public and private channels.
gethttps://api.moxon.dev /v3/chat
Retrieves all messages sent during the last hour. This endpoint does not require any options.
GET /v3/chat[
{
"username": "User1",
"message": "Hi!",
"timestamp": "2025-01-21T08:27:11.068Z"
},
{
"username": "User3",
"message": "How are you?",
"timestamp": "2025-01-21T08:28:43.070Z"
},
{
"username": "User8",
"message": "Yeah great, and you?",
"timestamp": "2025-01-21T08:32:07.215Z"
}
]curl -X GET "https://api.moxon.dev/v3/chat"posthttps://api.moxon.dev /v3/chat
Allows sending a message to the global chat or a private chat.
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
curl -X POST -d "username=User3&message=How are you?&session=abc123&token=41a43360-9874-4c7a-9ca8-eec29e765a0e" "https://api.moxon.dev/v3/chat"{
"message": "Message sent successfully"
}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
- /v3/chat/private - Create and manage private chat channels
Last updated on April 8, 2026