This API operation gets the emails of the authenticated user.
GET
/v1/Email/GetEmails
GET
/v1/Groups/Email/GetEmails
(See Group manager)
Property | Type | Description |
---|---|---|
Search |
string | This can be used to search emails by subject or messages. |
UnreadOnly |
boolean | To let the API return the unread emails only set this to true . |
FolderID |
integer | To let the API return specific emails that are located in the folder set this ID to the ID of the folder. Note: By supplying -1 , you can retrieve the Sent items folder. |
ReturnCustomFolders |
boolean | To let the API return the custom email folders of the user set this to true . |
ReturnEmailBody |
boolean | To let the API return the body of the emails set this to true . |
OrderBy |
string | The order in which the emails are returned. Possible values are sentdate-asc , sentdate-desc , othernickname-asc , othernickname-desc . The default is sentdate-asc . |
EmailsPerPage |
integer | Sets the number of emails on each page of the result set. Accepts values from 1 to 100 . Default is 50 . |
PageNumber |
integer | Returns a specific page in the result set. Accepts values from 1 onwards. |
If the authenticated user is the manager of a group, the user can impersonate another member of the group. This allows the manager to perform tasks of other group members without having to authenticate as them.
The request can be build in the same way as the regular request, but targeted towards the Group manager endpoint. Additionally, it has the following extra parameters:
Property | Type | Description |
---|---|---|
UserID |
integer | Required. The ID of a member in the group that will be impersonated for this request. |
Parameters can be passed to this operation using the HTTP GET method by passing parameters over the query string of the URI.
The REST API uses HTTP request headers to determine what data type is returned or to authenticate the developer's API key. More information can be found in the overview section.
An Authorization header is required with every request and must contain the access_token of the user. More information can be found in the Access tokens page.
This endpoint requires the following scope:
Scope |
---|
account_communications |
Property | Type | Description |
---|---|---|
FolderName |
string | The name of the folder. |
CurrentFolderID |
integer | The ID of the folder you are currently getting the emails of. |
HasCustomFolders |
boolean | Indicates if the user has custom folders created. |
CustomFolders |
aws:CustomFolders | The custom folders of the user. |
PageCount |
integer | Represents the total number of pages in the result set. |
PageNumber |
integer | Represents the current page number. |
EmailsTotal |
integer | Represents the total number of emails in the result set. |
EmailsPerPage |
integer | Represents how many emails are listed on each page. |
Emails |
array of aws:Emails | The emails of the user. |
The following example shows a sample returned by the API.