Search for messages using REST APIs

To search for specific messages, a user can call the following Message Search REST APIs:


Use the APIs above to search for two message types: 

  • Messages sent to public rooms
  • Messages sent to private rooms (after the bot's service account is added to the rooms)

Note: The Message Search REST API cannot obtain historical messages sent before the bot is added to the room.


To obtain historical message, use this Messages API instead: