Skip to content
moxon home

Private Chat

The /chat/private endpoint retrieves all messages sent during the last hour, belonging to a private chat.

posthttps://api.moxon.dev/v6/chat/private
Try itpost/v6/chat/private

Parameters

  • usernamestringrequired

    The username of the user who sends the message

  • tokenstringrequired

    The key used to connect to the desired private chat

Code Examples

Response Fields

  • usernamestring

    Username of the message sender

  • messagestring

    Content of the message

  • timestampstring

    ISO 8601 timestamp of the message

Error Handling

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

  • 400Please provide a username (?username={username})The username parameter is missing
  • 400Please provide a valid token (&token={key}).The token parameter is missing or invalid
  • 400Invalid or expired tokenThe token is invalid or has expired
  • 400Rate limit exceededToo many requests in a short period