Developers » API methods » Messages » messages.getConversationsById
Messagesmessages.getConversationsById
Returns conversations by their IDs.
This method can be called with a user token received in Standalone-app via Implicit Flow. Access rights required: messages.
This method can be called with a community token. Access rights required: messages.
Parameters
peer_idslist of comma-separated destination IDs.

For user:
User ID.

For conversation:
2000000000 + chat_id.

For community:
- community ID.

list of comma-separated numbers, required parameter, the maximum number of elements allowed is 100
extended1 ľ return additional information about users and communities in users and communities fields.
flag, either 1 or 0
fieldslist of additional fields for users and communities.
list of comma-separated words
group_idgroup ID (for community messages with a user access token).
positive number
Result
Returns the total number of conversations in count field (integer) and array of conversations in items field.
Errors
917You don't have access to this chat
927Chat does not exist
936Contact not found
Global errors can occur while running. See their descriptions on this page.