Return a JSON object that lists the messages associated with the specified task. Note: Use nextPageUrl and prevPageUrl from the response data for query pagination.

URL Parameters

NameDescriptionLocationRequiredDefault Value
taskIdUnique identifier for task.pathYes
sizeThe number of responses to return per requestQueryNo30
pagerefReadonly. This parameter is not used by Spaces and is only a reference. i.e.: the value sent will be the same value returned.queryNo
nextRefObjIdA unique ID used to return the next results pageQueryNo
prevRefObjIdA unique ID used to return the previous results pageQueryNo

Body Parameters

None.

Authentication

JwtAuthenticator, Oauth2Authenticator, AnonymousAuthenticator

Authorization

PERM_TOPIC_TASK_READ

Example Request

URL

For Production: GET https://spacesapis.avayacloud.com/api/tasks/{taskId}/messasges
For Staging: GET https://loganstagingapis.esna.com/api/tasks/{taskId}/messasges

Headers

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

Or

Authorization: "bearer f746696f5de4528u128ae2f274eea253e8a7943a"

Example Response

{
    "data": [
        {
            "_id": "5f8ec8041f4b4395fc1d9e4b",
            "category": "chat",
            "chatCount": 0,
            "content": {
                "bodyText": "<p>zinute</p>",
                "data": [
                ],
                "description": "",
                "endTime": null,
                "mediaMode": "audio",
                "meetingStatus": "active",
                "recordings": [
                ],
                "startTime": "2020-10-20T11:20:36.135Z",
                "virtualEndTime": null
            },
            "created": "2020-10-20T11:20:36.120Z",
            "likeCount": 0,
            "modified": "2020-10-20T11:20:36.120Z",
            "parentMsg": {
                "_id": "5f8ec7abc2ec773cd6878597",
                "bodyText": "Pokemon",
                "category": "task"
            },
            "sender": {
                "_id": "5f04251caa4v347af9946e06",
                "addresses": [
                ],
                "displayname": "test test",
                "gender": "",
                "name": {
                    "familyname": "test",
                    "formatted": "",
                    "givenname": "testie",
                    "honorific_prefix": "",
                    "honorific_suffix": "",
                    "middlename": "",
                    "pronunciation": "",
                    "pronunciation_url": ""
                },
                "phone_numbers": [
                ],
                "picture_url": "https://storage.googleapis.com/onesna/pictures/pfpic_ltest_34cb97bd-0151-449d-84b0-48e07853b...",
                "type": "user",
                "username": "ltest@avaya.com"
            },
            "status": 0,
            "topicId": "5f32b87ffafba15a839154db"
        }
    ],
    "nextPageUrl": "",
    "previousPageUrl": "",
    "total": 1
}