GET/users/{userId}/mail/mailfolders
Gets a list of folders.
OAuth 2.0 authentication.
For more information, see Authentication and Authorization.
mail
mail.read
| Parameter | Type | Description |
|---|---|---|
| userId | string | Member ID (must be URL-encoded)
required example : me |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
OK
| Property | Type | Description |
|---|---|---|
| mailFolders | array (MailFolder) | Folder information required minItems : 1 uniqueItems : true |
| Property | Type | Description |
|---|---|---|
| folderId | integer | Folder ID required format : int32 |
| folderType | string | Folder type
required minLength : 0 Allowed values : S, U |
| folderName | string | Folder name required minLength : 1 maxLength : 100 |
| unreadMailCount | integer | Number of unread messages required format : int32 |
| mailCount | integer | Total number of messages required format : int32 |
| usage | integer | Folder usage required format : int32 |
| folderDepth | integer | Folder depth format : int32 |
| parentFolderId | integer | Parent folder ID format : int32 |
| hasChildFolder | boolean | Indicates whether the folder has a child folder. |
example
1{2 "mailFolders": [3 {4 "folderId": 0,5 "folderType": "S",6 "folderName": "Inbox",7 "unreadMailCount": 15356,8 "mailCount": 15540,9 "usage": 37151934610 },11 {12 "folderId": 1,13 "folderType": "S",14 "folderName": "Sent",15 "unreadMailCount": 0,16 "mailCount": 159,17 "usage": 6221908218 }19 ]20}