Fuselage
Sync Messages
It supports the Query, Fields and sort.
URL
Requires Auth
HTTP Method
/api/v1/chat.syncMessages
yes
GET

Headers

Argument
Example
Required
Description
X-User-Id
myuser-name
Required
Your username hash (returned after you log in through the API)
X-Auth-Token
myauth-token
Required
Your token (returned after you log in through the API)

Query Parameters

Argument
Example
Required
Description
roomId
5qW6ssMFyzWjJev69
Required
Room ID
lastUpdate
2019-04-16T18:30:46.669Z
Required
Date as ISO string

Example Call

1
curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
2
-H "X-User-Id: aobEdbYhXfu5hkeqG" \
3
http://localhost:3000/api/v1/chat.syncMessages?roomId=5qW6ssMFyzWjJev69&lastUpdate=2019-04-16T18:30:46.669Z
Copied!

Example Result

1
{
2
"result": {
3
"updated": [
4
{
5
"_id": "ak3WdaLbf4P7ZW3wQ",
6
"rid": "5qW6ssMFyzWjJev69",
7
"u": {
8
"_id": "FWfHnJmcudrCagGDX",
9
"username": "555192857993",
10
"name": "555192857993"
11
},
12
"msg": "teste",
13
"ts": "2021-09-24T19:19:47.911Z",
14
"_updatedAt": "2021-09-24T19:19:48.048Z",
15
"alias": "mauricio pretto",
16
"token": "do554ryecscmfrrxyxpvm",
17
"unread": true,
18
"urls": [],
19
"mentions": [],
20
"channels": [],
21
"md": [
22
{
23
"type": "PARAGRAPH",
24
"value": [
25
{
26
"type": "PLAIN_TEXT",
27
"value": "teste"
28
}
29
]
30
}
31
]
32
},
33
{
34
"_id": "2ttrNPABcCKbsbEtB",
35
"t": "livechat-started",
36
"msg": "",
37
"groupable": false,
38
"ts": "2021-09-24T19:19:46.523Z",
39
"u": {
40
"_id": "FWfHnJmcudrCagGDX",
41
"username": "555192857993",
42
"name": "555192857993"
43
},
44
"rid": "5qW6ssMFyzWjJev69",
45
"unread": true,
46
"_updatedAt": "2021-09-24T19:19:46.691Z",
47
"urls": [],
48
"mentions": [],
49
"channels": []
50
}
51
],
52
"deleted": []
53
},
54
"success": true
55
}
Copied!

Change Log

Version
Description
1.0.0
Added
Export as PDF
Copy link
Edit on GitHub