Website
Community
User Documentation
Free Trial
Search…
Rocket.Chat Developer
Quick Start
Choosing a Deployment Host
Setting up your Development Environment
Rocket.Chat
Rocket Chat Environment Setup
Repository Structure
Deeplink
Two Factor Authentication
Embedded Layout
White Labelling Rocket.Chat
Iframe Integration
Contribute to Rocket.Chat
Mobile App
Mobile App Environment Setup
Testing your Mobile App
Mobile App White Labelling
Mobile App FAQs
Desktop App
Desktop App Environment Setup
Developing your Desktop App
Debugging your Desktop App
Desktop App White Labelling
Omnichannel
Omnichannel Environment Setup
Developing Omnichannel Apps
Livechat Widget Development and Customization
Omnichannel FAQs
Apps Engine
Rocket.Chat App
Rocket.Chat Apps Engine
Getting Started
Adding Features
Testing your App
Sample App Snippets
Slack Compatibility
App Submission to the Marketplace
Apps-Engine API Reference
Bots
Bots Development Environment Setup
Bots Architecture
Creating Your Own Bot From Scratch
Bots FAQs
Reference
Database Schema
API
Deprecation
Schema Definition
Schema Definition v2 (Draft)
Realtime API
REST API
Endpoints
Omnichannel
Team Collaboration Endpoints
Assets Endpoints
Auto Translate Endpoints
Banners Endpoints
Channels Endpoints
Chat Endpoints
Chat Message Delete
Chat Message Reactions
Message Update
Report Message
Follows Message
Get Message
Get Channel Threads
Get Deleted Messages
Get Discussions of A Room
Get Mentioned Messages
Get Message Read Receipts
Get Pinned Messages
Get Snippeted Message By Id
Get Snippeted Messages
Get Starred Messages
Get Thread Messages
Ignore User
Pins Message
Post Message
Search Message
Send Message
Star Message
Sync Thread List
Sync Thread Messages
Sync Messages
Unfollow Message
Unpins Message
Unstar Message
Cloud Endpoints
Commands Endpoints
Custom Sounds Endpoints
Custom User Status Endpoints
DNS Endpoints
E2E Endpoints
Email Inbox Endpoints
Custom Emoji Endpoints
Groups Endpoints
IM Endpoints
Import Endpoints
Instances Endpoints
Integration Endpoints
Invite Endpoints
Miscellaneous Endpoints
OAuthApps Endpoints
Permissions Endpoints
Push Token Endpoints
Roles Endpoints
Rooms Endpoints
Settings Endpoints
Stats Endpoints
Subscriptions Endpoints
Teams Endpoints
Users Endpoints
Video Conference Endpoints
Webdav Endpoint
Other Important Endpoints
Apps Endpoints
Avatars
Livechat Widget API
Fuselage
Contributing
Powered By
GitBook
Get Snippeted Messages
Retrieve snippeted messages. It supports the
Offset, Count, and Sort Query Parameters
.
URL
Requires Auth
HTTP Method
/api/v1/chat.getSnippetedMessages
yes
GET
Query Parameters
Argument
Example
Required
Description
roomId
ByehQjC44FwMeiLbX
Required
The room id
Example Call
1
curl
-H
"X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq"
\
2
-H
"X-User-Id: aobEdbYhXfu5hkeqG"
\
3
http://localhost:3000/api/v1/chat.getSnippetedMessages?roomId
=
ByehQjC44FwMeiLbX
Copied!
Example Result
1
{
2
"messages"
:
[
3
{
4
"_id"
:
"QQuPFFcLmsqHWeqhn"
,
5
"rid"
:
"GENERAL"
,
6
"msg"
:
"``````\ntest\n``````"
,
7
"ts"
:
"2019-10-25T21:42:39.022Z"
,
8
"u"
:
{
9
"_id"
:
"CaevAPDbXN252kyXa"
,
10
"username"
:
"marcos.defendi"
,
11
"name"
:
"Marcos Defendi"
12
},
13
"_updatedAt"
:
"2019-10-25T22:54:02.094Z"
,
14
"mentions"
:
[],
15
"channels"
:
[],
16
"snippetName"
:
"ee"
,
17
"snippeted"
:
true
,
18
"snippetedBy"
:
{
19
"_id"
:
"CaevAPDbXN252kyXa"
,
20
"username"
:
"marcos.defendi"
21
}
22
}
23
],
24
"count"
:
1
,
25
"offset"
:
0
,
26
"total"
:
1
,
27
"success"
:
true
28
}
Copied!
Change Log
Version
Description
2.3.0
Added
Previous
Get Snippeted Message By Id
Next
Get Starred Messages
Last modified
1yr ago
Export as PDF
Copy link
Edit on GitHub
Contents
Query Parameters
Example Call
Example Result
Change Log