Send a message event to the given room.

PUT {{baseUrl}}/rooms/:roomId/send/:eventType/:txnId

This endpoint is used to send a message event to a room. Message events allow access to historical events and pagination, making them suited for once-off activity in a room.

The body of the request should be the content object of the event; the fields in this object will vary depending on the type of event. See Room Events for the m. event specification.

Request Body

{"msgtype"=>"m.text", "body"=>"hello"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{"event_id":"$YUwRidLecu:example.com"}