1

Rocketchat: how to respond to thread via API

It is a very, very basic use case. I would like to send a message to a channel (this is easy to do via the postMessage API [1]), and then continue writing messages in the thread of said message. However, I have not been able of finding anything in the documentation. Is it even possible?

For reference, someone asked the same question 19 months ago [2]. Sadly, the links to the documentation in the responses do not work :(

enanone
  • 923
  • 11
  • 25

1 Answers1

1

/api/v1/chat.sendMessage message.tmid - optional argument to create the thread from message object example of request body:

{
   "message": {
      "rid": "Xnb2kLD2Pnhdwe3RH", //room id
      "msg": "Sample message", //message text
      "tmid": "f6TRc4aouCzgCxKFb",//id of message the thread starts from
  }
}
Ignat
  • 88
  • 6
  • Yes. Blatantly undocumented, but this works. I reverse-engineered the thing a while ago and forgot about this question. Thanks for answering! – enanone Apr 20 '23 at 11:11