Returns a JSON object with a list of messages that have attachments for the current user. Note: Use nextPageUrl and prevPageUrl from the response data for query pagination.

URL Parameters

NameDescriptionLocationRequiredDefault Value
sizeNumber of messages to return.queryNo30
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
nextRefObjIdMessageID of next message.queryNo
prevRefObjIdMesssageID of previous message.queryNo

Body Parameters

None.

Authentication

JwtAuthenticator, Oauth2Authenticator, AnonymousAuthenticator

Authorization

OAuthAuthorizer

Example Request

URL

For Production: GET https://spacesapis.avayacloud.com/api/users/attachments/natives?size=1
For Staging: GET https://loganstagingapis.esna.com/api/users/attachments/natives?size=1

Headers

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

Or

Authorization: "bearer f746696f5de4528u128ae2f274eea253e8a7943a"

Example Response


        {
          "data": [
              {
                  "_id": "5f06dbc8f179872333de5f01",
                  "sender": {
                      "_id": "5ef9b678aa4a347af983c74c",
                      "type": "user",
                      "username": "example.name@avaya.com",
                      "displayname": "Example Name",
                      "picture_url": "https://storage.googleapis.com/onesna/pictures/exampple.name_f5070922-da02-49b0-a398-69020e14f..."
                  },
                  "content": {
                      "endTime": null,
                      "mediaMode": "audio",
                      "virtualEndTime": null,
                      "meetingStatus": "active",
                      "bodyText": "idea with a file upload",
                      "description": "this is a idea with a file uploaded",
                      "data": [
                          {
                              "metaData": {
                                  "paging": 0,
                                  "prvwProvd": "gcs",
                                  "stgeProvd": "gcs"
                              },
                              "keywords": [],
                              "convertStatus": 0,
                              "convertStart": null,
                              "nextSchedule": null,
                              "pages": 0,
                              "recordingId": null,
                              "type": null,
                              "provider": "native",
                              "providerFileType": "",
                              "fileType": "document",
                              "name": "env2 (1)",
                              "fileId": "ec6b2632-c3ae-404d-a6b4-c04bcc49b5ea",
                              "icon": "",
                              "thumbnail": "",
                              "description": "",
                              "previewFile": "",
                              "fileSize": 3239,
                              "thumbnailFile": "",
                              "path": "https://storage.googleapis.com/onesnatesting/logan%2F1ef5b7b5-4308-4061-87f7-5d1f69f836b4?GoogleAccessId=logan-testing@onesnatesting.iam.gserviceaccount.com&Expires=1493308779&Signature=iOSt30OxsY%2FrNdyMQKj1nx6kikOLR3sZyKlcCuybH3vuSva9uLU7g%2B7herT%2BR6ZoIUXbfChrrqKbAwIn4hIeENtArSlKsbh629hwH2Ek%2Ff6cdp0teulCa5mDHATDsZ3hzv2DDRsJsvqTgw8tTVJcWzop2acgH%2FSkKBTAxDVtpfdQfYIC9C%2BKhfJ3xbMb7T4fFE2%2FO0sjxnEXYjc6Io78Hle9MphlGCvyUulLOoelkqJAfdUuhByGUSNKSEhH3%2BpwMO%2BwKqSdISD%2Bt7kXLkEBMxUYvGiW4JEkLRg7mgWP9tzHyi4CZ6jdImoUSoub0EfvXwYGqxsnh0%2BZcFCG7U2IZg%3D%3D&response-content-disposition=attachment%3B%20filename%3D%22LNP_Authorization_Form%20(2).pdf%22"
                          }
                      ],
                      "status": "pending",
                      "dueDate": "2020-07-09T08:56:40.004Z",
                      "assignees": [],
                      "attendees": [],
                      "startTime": "2020-07-09T08:56:40.009Z",
                      "recordings": []
                  },
                  "chatCount": 0,
                  "likeCount": 0,
                  "status": 0,
                  "category": "idea",
                  "topicId": "5f06c714162ce0ccc2715782",
                  "created": "2020-07-09T08:56:39.998Z",
                  "modified": "2020-07-09T08:56:39.998Z",
                  "__v": 0,
                  "topicTitle": "Tasks space"
              }
          ],
          "nextPageUrl": "",
          "previousPageUrl": "",
          "total": 1
      }