Paginated response with an array of messages modified (added/changed/deleted) after or before the specified reference time.

URL Parameters

NameDescriptionLocationRequiredDefault Value
spaceidUnique identifier of space (topic).QueryYes
parentUnique identifier of parent message (especially for messages whoes type are 'task' or 'idea' ) QueryNo
afterUTC timestamp (number of milliseconds elapsed since 1 January 1970 00:00:00 UTC) after which to return activity. The output is sorted by datetime from old to new.QueryYes (one of after or before)
beforeUTC timestamp (number of milliseconds elapsed since 1 January 1970 00:00:00 UTC) before which to return activity. The output is sorted by datetime from new to old.QueryYes (one of after or before)
pagePage of results, starting from 0, default is 0QueryNo0
sizeNumber of results to return per page, default is 30QueryNo30

Body Parameters

None.

Authentication

JwtAuthenticator, Oauth2Authenticator, AnonymousAuthenticator

Authorization

Read Topic.

Example Request

URL

For Production: GET https://spacesapis.avayacloud.com/api/activitiesrecord/messages
For Staging: GET https://loganstagingapis.esna.com/api/activitiesrecord/messages

Headers

Authorization: "jwt eyJhbGciOiJSUzI1NiIsIdfgdfgnR5cCI6IkpXVCJ9.eyJ1c2VyX2lkX3NpZyI6ImxPWHpxNzVzR3J3X0xwWEMyRGRMakhyYXJlWVhyTzFMdEZHZkhkOWNkTXciLCJwcm9kdWN0X3R5cGUiOiJhY2NvdW50cyIsImxhc3R1cGRhdGV0aW1lIjoiMjAxNy0wMS0zMFQxMzo1ODo0Ny4yMDYiLCJpc3MiOiJ6YW5nLmlvIiwicHVibGlja2V5aWQiOiJhZ3h6Zm05dVpYTnVZVEl3TVRSeUdnc1NEVWRLZDNSUWRXSnNhV05MWlhrdfgdWdJQ2dsUEtFakFvTSIsImV4cCI6MTQ5NTM5MTIwMywidXNlcl9pZCI6ImFneHpmbTl1WlhOdVlUSXdNVFJ5RVFzU0JGVnpaWElZZ0lEQXMtX25fUW9NIiwidmVyIjoiMi4wIn0.SqZpw1uPIebqW3qlDsm0-DWYFKEH0SgPwtD-tSESWOF-5hLkZMqJH28ooWux2S7s9riIew7pTVPnZpTgJa5zHcEAG0gXSEJVOqmpGp_4ufM8YtZoZMpBFjyAkwyAt-ILkGUYIo0GU5WyzMPLV8YLXfgdfgOgkE2MGGOajBkjPmC2Db3pA0D0M9k-21EL1gwWBC5YIq0PDAkgulegwl6khRmB8irJQ-dfg-d-KV9eYfFpsCdJKRGzSfqg"

Or

Authorization: "bearer f746696f5de4528u128ae2f274eea253e8a7943a"

Example Response

{
    "data": [
        {
            "_id": "59af098575b76d59ea3e728f",
            "messageId": "59af0985131c17bae4f27d9b",
            "modified": "2017-09-05T20:31:05.885Z",
            "topicId": "59a9af656fdf599c8f2b7932",
            "deletedAt": "2017-09-05T20:31:05.885Z" ////please note this is the flag of message deleted
        },
        {
            "_id": "59af097f131c17bae4f27d99",
            "category": "chat",
            "topicId": "59a9af656fdf599c8f2b7932",
            "modified": null,
            "status": 0,
            "content": {
                "bodyText": "erterte",
                "description": "",
                "data": []
            },
            "created": "2017-09-05T20:30:55.092Z",
            "sender": {
                "_id": "588cc8827b40f9a576054c20",
                "username": "example.user1@esna.com",
                "displayname": "Patrick-123 Han-han",
                "picture_url": "https://storage.googleapis.com/onesnatesting/pictures/pfpic_example.user1_ac87aef2-9452-47fc-ae73-e1937acd3730",
                "type": "user"
            },
            "likeCount": 0,
            "chatCount": 0
        }
    ],
    "nextPageUrl": "",
    "previousPageUrl": "",
    "total": 2
}