Send Message
    • Dark
      Light
    • PDF

    Send Message

    • Dark
      Light
    • PDF

    Article summary

    Send a message to a room.

    Method

    Requires Auth

    sendMessage

    Yes

    Payload parameters

    Argument

    Example

    Required

    Description

    message

     {
        "_id": "8gMsLe9ApZjo2D2iB",
        "rid": "64a1f373376181965ab77f54",
        "msg": "Hello World!" 
    }

    Required

    The message object.

    The message object contains the following properties:

    _id

    8gMsLe9ApZjo2D2iB

    The message ID.

    rid

    64a1f373376181965ab77f54

    The room ID where the message should be sent.

    msg

    Hello World

    The message content to be sent.

    Example call

    {
        "msg": "method",
        "method": "sendMessage",
        "id": "423",
        "params": [
            {
                "_id": "8gMsLe9A7pZjo2D2iB",
                "rid": "64a1f373376181965ab77f54",
                "msg": "Hello World!"
            }
        ]
    }

    Example response

    {
        "msg": "result",
        "id": "423",
        "result": {
            "_id": "8gMsLe9A7pZjo2D2iB",
            "rid": "64a1f373376181965ab77f54",
            "msg": "Hello World!",
            "ts": {
                "$date": 1688421337724
            },
            "u": {
                "_id": "LFdhbcNHx5zsMA7T4",
                "username": "test.rc",
                "name": "Test RC"
            },
            "_updatedAt": {
                "$date": 1688421337830
            },
            "urls": [],
            "mentions": [],
            "channels": [],
            "md": [
                {
                    "type": "PARAGRAPH",
                    "value": [
                        {
                            "type": "PLAIN_TEXT",
                            "value": "Hello World!"
                        }
                    ]
                }
            ]
        }
    }

    To send a file, use the Upload File to a Room endpoint.


    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.
    ESC

    Eddy AI, facilitating knowledge discovery through conversational intelligence