messaging.conversations

SUPPORTED METHODS:

GET

ParametersTypeDescription
token (required)Valid token
mode (accepted)enum(inbox,sentbox)Type of messages
inbox - received messages
sentbox - sent messages
(default inbox)
offset (accepted)intPage number (default 0)
limit (accepted)intNumber of conversations/messages per page
(max/default for messages 10,
max/default for conversations 50)
id (accepted)intMessage id

DOCUMENTATION

GET
If the request contains param id, gets messages from the same conversation as a message with the given id. If the request doesn't contain param id, gets conversations.
Level 5 is required.

--

Example Request:

{
   "module":"messaging.conversations",
   "method":"GET",
   "request":{

   }
}

Example Response:

{
    "status": 1,
    "data": {
        "4794378": {
            "id": 4794378,
            "conversation": 4794378,
            "sender": 3999371,
            "sent": 1543582513,
            "deleted": 0,
            "subject": "Conversation 1",
            "message": "Message",
            "grouped": 0,
            "receivers": {
                "schedules": [],
                "individuals": [
                    "3999339"
                ]
            },
            "read": 1545675922
        },
        "4794379": {
            "id": 4794379,
            "conversation": 4794379,
            "sender": 3999371,
            "sent": 1543582524,
            "deleted": 0,
            "subject": "Conversation 2",
            "message": "Message",
            "grouped": 0,
            "receivers": {
                "schedules": [],
                "individuals": [
                    "3999339"
                ]
            },
            "read": 1545675922
        },
        "4794380": {
            "id": 4794380,
            "conversation": 4794380,
            "sender": 3999371,
            "sent": 1543582536,
            "deleted": 0,
            "subject": "Conversation 3",
            "message": "Message ",
            "grouped": 0,
            "receivers": {
                "schedules": [],
                "individuals": [
                    "3999339"
                ]
            },
            "read": 1545675922
        },
        "4804699": {
            "id": 4804699,
            "conversation": 4335863,
            "sender": 3999372,
            "sent": 1543921604,
            "deleted": 0,
            "subject": "Conversation 4",
            "message": "Message",
            "grouped": 0,
            "receivers": {
                "schedules": [],
                "individuals": [
                    "3999339"
                ]
            },
            "read": 1545675922
        },
        "4804882": {
            "id": 4804882,
            "conversation": 4804630,
            "sender": 3999339,
            "sent": 1543928857,
            "deleted": 0,
            "subject": "Conversation 5",
            "message": "Message ",
            "grouped": 1,
            "receivers": {
                "schedules": [
                    "1837893"
                ],
                "individuals": [
                    "3999339"
                ]
            },
            "read": 1545675922
        }
    },
    "token": "xxxxxx"
}