Return the list of conversations.
This message MUST be sent by the app in case the list of conversations has been requested by the client.
This message acknowledges:
| Message | Condition | Error Codes | ||||
|---|---|---|---|---|---|---|
| request/conversations (client -> app) | (None) |
|
The data value is an Array<Conversation>.
| Field | Description | Type | Optional | Nullable | Default |
|---|---|---|---|---|---|
| type |
The receiver type Allowed values:
|
String | False | False | |
| id |
The identity of the responder |
String | False | False | |
| position |
The index of the message (for sorting purposes) |
Integer | False | False | |
| messageCount |
Number of messages |
Integer | False | False | |
| unreadCount |
Number of unread messages |
Integer | False | False | |
| latestMessage |
The latest message's content |
Map<Message> | True | False | |
| receiver |
The receiver |
Map<Receiver> | True | False | |
| avatar |
The avatar of the receiver. Only set for the top 20-30 conversations. |
Binary | True | False | |
| notifications |
Notification settings |
Map<NotificationSettings> | True | False | |
| isStarred |
Whether the conversation is starred |
Boolean | True | False | False |
| isUnread |
Whether the conversation was explicitly marked as unread. Note that a non-zero |
Boolean | True | False | False |
| Field | Description | Type | Optional | Nullable | Default |
|---|---|---|---|---|---|
| type |
The message type Allowed values:
|
String | False | False | |
| id |
The message id |
String | False | False | |
| body |
The message body |
String | True | False | |
| thumbnail |
The message thumbnail |
Map<Thumbnail> | True | False | |
| date |
The message's date (last modification) as a unix timestamp in seconds |
Integer | True | False | |
| events |
A list of message events |
Array<MessageEvent> | True | False | |
| sortKey |
A number used for sorting messages, higher means newer, may not be negative |
Integer | False | False | |
| partnerId |
The identity of the sender of this message |
String | True | False | |
| isOutbox |
Whether this message was sent by the user |
Boolean | False | False | |
| isStatus |
Whether this is a status message |
Boolean | False | False | |
| statusType |
The status message type Allowed values:
|
String | True | False | |
| caption |
The message caption |
String | True | False | |
| unread |
Whether this message is unread |
Boolean | True | False | False |
| state |
The message state
Allowed values:
|
String | True | False | |
| lastEditedAt |
Unix timestamp in milliseconds of the last edit, or undefined if this message was not edited |
Integer | True | False | |
| quote |
The message quote |
Map<Quote> | True | False | |
| file |
The file info |
Map<File> | True | False | |
| video |
The video info |
Map<Video> | True | False | |
| audio |
The audio info |
Map<Audio> | True | False | |
| location |
The location info |
Map<Location> | True | False | |
| voip |
The voip status info |
Map<VoIP> | True | False |
| Field | Description | Type | Optional | Nullable | Default |
|---|---|---|---|---|---|
| height |
The height of the thumbnail (max 350px) |
Integer | False | False | |
| width |
The width of the thumbnail (max 350px) |
Integer | False | False | |
| preview |
The thumbnail preview. This should be resized so that no side is larger than 50px. |
Binary | False | False |
| Field | Description | Type | Optional | Nullable | Default |
|---|---|---|---|---|---|
| date |
The event date (last modification) as a unix time stamp in seconds |
Integer | False | False | |
| type |
The event type
Allowed values:
|
String | False | False |
| Field | Description | Type | Optional | Nullable | Default |
|---|---|---|---|---|---|
| identity |
The quote author's identity |
String | False | False | |
| text |
The quote text |
String | False | False | |
| messageId |
The message id of the quoted message |
String | True | False |
| Field | Description | Type | Optional | Nullable | Default |
|---|---|---|---|---|---|
| name |
The file name |
String | False | False | |
| size |
The file size in bytes |
Integer | False | False | |
| type |
The file MIME type |
String | False | False | |
| inApp |
TODO |
Boolean | False | False |
| Field | Description | Type | Optional | Nullable | Default |
|---|---|---|---|---|---|
| duration |
The video duration in seconds |
Integer | False | False | |
| size |
The video file size in bytes |
Integer | True | False |
| Field | Description | Type | Optional | Nullable | Default |
|---|---|---|---|---|---|
| duration |
The duration of the audio message in seconds |
Integer | False | False |
| Field | Description | Type | Optional | Nullable | Default |
|---|---|---|---|---|---|
| lat |
WSG84 latitude |
Float | False | False | |
| lon |
WSG84 longitude |
Float | False | False | |
| accuracy |
The horizontal accuracy in meters (the radius of 68% confidence) |
Float | False | False | |
| address |
The address belonging to this location |
String | True | False | |
| description |
Description text for this location |
String | False | False |
| Field | Description | Type | Optional | Nullable | Default |
|---|---|---|---|---|---|
| status |
The type of VoIP status message
Allowed values:
|
Integer | False | False | |
| duration |
The duration of the call in seconds |
Integer | True | False | |
| reason |
The reject reason
Allowed values:
|
Integer | True | False |
| Field | Description | Type | Optional | Nullable | Default |
|---|---|---|---|---|---|
| sound |
Notification sound settings |
Map<NotificationSound> | False | False | |
| dnd |
Do not disturb settings |
Map<NotificationDnd> | False | False |
| Field | Description | Type | Optional | Nullable | Default |
|---|---|---|---|---|---|
| mode |
The notification mode Allowed values:
|
String | False | False |
| Field | Description | Type | Optional | Nullable | Default |
|---|---|---|---|---|---|
| mode |
The do not disturb mode Allowed values:
|
String | False | False | |
| mentionsOnly |
Only notify on mentions. May be used with modes Allowed values:
|
String | True | False | False |
| until |
Unix timestamp in milliseconds. Must be set if mode is |
Integer | True | False |