The Messages API provides functionality for receiving and processing user messages.
messages/
RESOURCE_URI
— URI is obtained from token exchange point.
Prefix | Endpoint | Description |
---|---|---|
RESOURCE_URI | messages/ | Receiving conversation messages |
RESOURCE_URI | messages/chats/ | Getting a list of conversations |
RESOURCE_URI | messages/add/ | Adding a message |
RESOURCE_URI | messages/ID | Retrieving message details |
RESOURCE_URI | messages/ID/edit/ | Editing a message |
RESOURCE_URI | messages/ID/delete/ | Deleting a message |
messages/chats/
messages/
messages/ID
messages/add/
messages/ID/edit/
messages/ID/delete/
Name | Description |
---|---|
items[] |
Name | Description |
---|---|
chat_id |
Chat ID. |
type |
Possible values:
|
name |
Chat name. |
picture_url |
Chat picture URL. |
members_count |
Number of members in the group chat. |
Name | Description |
---|---|
chat_id (r) |
Chat ID. |
limit (o) |
Number of items expected in response. |
cursor (o) |
The value of the |
query (o) |
Query string for the search filter. |
period (o) |
@MessagesPeriodFilter |
Name | Description |
---|---|
items[] |
|
limit |
Number of returned items (items per page). |
next_cursor |
URL for the next portion of items (next page). |
prev_cursor |
URL for the previous portion of items (previous page). |
total_count |
Total number of items. |
Name | Description |
---|---|
id |
Message ID. |
uid |
ID of the user who sent the message. |
message |
Message text. |
attachments |
Name | Description |
---|---|
from |
Start date. |
till |
Finish date. |
Name | Description |
---|---|
chat_id (r) |
Chat ID. |
message |
Message text. |
attachments[] |
|
is_whisper |
If |
Name | Description |
---|---|
chat_id (r) |
Chat ID. |
message |
Message text. |
attachments[] |