add filtering by message in api