Appearance
findAllSmartLibIdsForUser ​
Returns a list of all SmartLib Ids assigned to a user with optional ability to filter for a single company if needed.
Request ​
http
GET /rest/smartlib/ids/userHeaders ​
| Header | Required | Description |
|---|---|---|
x-nextinteract-authtoken | Yes | Auth token returned from loginUser |
Parameters ​
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
deviceType | String | Yes | The device type of the device e.g. iPad, iPhone |
appCode | String | Yes | The app code e.g. MY |
version | Integer | Yes | The version of the API. Currently 1 |
companyId | Integer | No | A valid company id of a company the user is connected to |
SAMPLE REQUEST Without company i.e. ALL curl --location 'http://localhost:8080/nextinteract-webapp/rest/smartlib/ids/user?appCode=MY&deviceType=iPad&version=1'
--header 'x-nextinteract-authtoken: z7WEJKawbi3HBKgQdbvhJQ=='
With Company curl --location 'http://localhost:8080/nextinteract-webapp/rest/smartlib/ids/user?appCode=MY&deviceType=iPad&version=1&companyId=3'
--header 'x-nextinteract-authtoken: z7WEJKawbi3HBKgQdbvhJQ=='
Response ​
200 OK ​
Returns an array of SmartEntryJSON object(s) with pre-signed URLS for the thumbnailUrl. Apps should use their normal way to open the SMLB and entry.
json
[
{
"smartLibId": 1,
"smartEntryId": 2,
"smartEntryStatus": "A",
"smartEntryType": "PDF",
"smartEntryName": "2. Vacation Care Enrolment Form - December 2021 January 2022.docx",
"smartEntryDesc": "2. Vacation Care Enrolment Form - December 2021 January 2022.docx",
"smartEntryDownloadOrig": "N",
"smartEntryDownloadPdf": "N",
"smartEntryCreated": 1754266130445,
"smartEntryModified": 1754266130445,
"smartEntryMetadataVersion": 1,
"smartEntryFileVersion": 1,
"smartEntryUsesExpiry": "N",
"smartFiles": [
{
"smartEntryId": 2,
"smartFileId": 4,
"smartFileType": "THMB",
"smartFileName": "2. Vacation Care Enrolment Form - December 2021 January 2022.docx-55aa2105-87ea-407c-99b6-3f9dfa59a6b9-tile.jpg",
"smartFileBytes": 177689,
"smartFileMd5": "283d1ed27e557eb89941742ec1ec974e",
"smartFileCreated": 1754266137729,
"smartFileModified": 1754266137729
}
],
"smartEntryCategories": [],
"smartEntryURLs": [],
"smartEntryTags": [],
"smartEntryFolders": [],
"smartEntryFilters": [],
"sendNotification": false,
"notifyUserOfExternalUrl": "N",
"thumbnailUrl": "https://dev-sam-sydney.s3.ap-southeast-2.amazonaws.com/3/smartlibs/1/entries/2/files/4/2.%20Vacation%20Care%20Enrolment%20Form%20-%20December%202021%20January%202022.docx-55aa2105-87ea-407c-99b6-3f9dfa59a6b9-tile.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20250804T012656Z&X-Amz-SignedHeaders=host&X-Amz-Expires=431999&X-Amz-Credential=AKIAI274KCUHWLRHTFPQ%2F20250804%2Fap-southeast-2%2Fs3%2Faws4_request&X-Amz-Signature=1f8a111444db55c3a0321aafa24d2d6a196c3f0ee4bb899cf38c018de95fab15"
},
{
"smartLibId": 1,
"smartEntryId": 1,
"smartEntryStatus": "A",
"smartEntryType": "HTML",
"smartEntryName": "Google",
"smartEntryDownloadOrig": "N",
"smartEntryDownloadPdf": "N",
"smartEntryCreated": 1754266113575,
"smartEntryModified": 1754266113575,
"smartEntryMetadataVersion": 1,
"smartEntryFileVersion": 1,
"smartEntryUsesExpiry": "N",
"smartFiles": [
{
"smartEntryId": 1,
"smartFileId": 2,
"smartFileType": "THMB",
"smartFileName": "index-191c06d6-799d-4713-a907-7152662d094b-tile.jpg",
"smartFileBytes": 13148,
"smartFileMd5": "e9e5a0894af678ca5ff9af221bcdb6b6",
"smartFileCreated": 1754266113774,
"smartFileModified": 1754266113774
}
],
"smartEntryCategories": [],
"smartEntryUrlLink": "https://google.com",
"smartEntryURLs": [],
"smartEntryTags": [],
"smartEntryFolders": [],
"smartEntryFilters": [],
"sendNotification": false,
"notifyUserOfExternalUrl": "N",
"thumbnailUrl": "https://dev-sam-sydney.s3.ap-southeast-2.amazonaws.com/3/smartlibs/1/entries/1/files/2/index-191c06d6-799d-4713-a907-7152662d094b-tile.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20250804T012656Z&X-Amz-SignedHeaders=host&X-Amz-Expires=431999&X-Amz-Credential=AKIAI274KCUHWLRHTFPQ%2F20250804%2Fap-southeast-2%2Fs3%2Faws4_request&X-Amz-Signature=b12664fad05ed25b627109d675c9585aa5c99231bb3474e87cd6fe0c7815a235"
}
]Errors ​
| Exception | Description |
|---|---|
WSInvalidParameterException | See Error Definitions |
WSInvalidAuthTokenException | See Error Definitions |
WSCacheServiceException | See Error Definitions |
WSSmartEntryNotFoundException | See Error Definitions |
WSSmartLibraryServiceException | See Error Definitions |