Get all active mailing lists with paging
GET /lists/{Page}/{PageSize}.{Format}
Retrieves a list of all the active email lists in your Sitecore Send account with paging information. Because the results for this call could be quite big, you can add paging information as input.
Request
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| Page | path | number | false | The page that you want to get. |
| PageSize | path | number | false | The number of email lists per page. |
| Format | path | string | true | The supported file format for getting a response.Possible values: json and xml. |
| apikey | query | string | true | The API key of your account. |
| SortBy | query | string | false | The name of the email list property to sort results by.Possible values: Name, Subject, Status, DeliveredOn, and CreatedOn (Default). |
| SortMethod | query | string | false | Specifies the method to sort results.Possible values: DESC for descending and ASC (Default) for ascending. |
Response
| Status | Description | Headers | Schema |
|---|---|---|---|
| 200 OK | The request is successful. | Content-Type/json | N/A |
-
Code- the response code. This is0if successful. -
Error- the response error message. This isnullif successful. -
Context- an object that contains all thePagingandMailingListsinformation for the requested email list: -
Paging- an object that contains the following information:-
PageSize- the page size of the results. This is0if not defined. -
CurrentPage- the number of the result page. This is1if not defined. -
Totalresults- the number of email lists that are included in the response. -
TotalPageCount- the total number of available email list pages in your account. -
SortExpression- the sort expression associated with the column or columns being sorted. -
SortIsAscending- this isfalseif the results are not displayed in ascending order based on the sort expression.
-
-
MailingLists- a list of email lists in your account containing the following information for each email list:-
ID-the ID of the email list. -
Name- the name of the email list. -
ActiveMemberCount- the number of active members in the email list. -
BouncedMemberCount- the number of bounced emails in the email list. -
RemovedMemberCount- the number of emails removed from the email list. -
UnsubscribedMemberCount- the number of emails unsubscribed from the email list. -
Status- status of the email list. For created, this is0, for imported, this is1, for importing, this is2, and for deleted, this is3. -
CustomFieldsDefinition- an array containing the parameters of custom fields in the email list. The parameters are:-
ID- the ID of the custom field. -
Name- the name of the custom field -
Context- the context of the custom field. This isnullif the field type is notSingleSelectDropDown. -
IsRequired- this istrueif the custom field is required andfalseif it is not. -
Type- the data type of the custom field. Possible values:0for text,1for number,2for dateTime,3for SingleSelectDropDown, and5for checkbox.
-
-
-
CreatedBy- the IP address used to create the requested email list. -
CreatedOn- the date-time the requested email list was created. -
UpdatedBy- the IP address used to update the requested email list. -
UpdatedOn- the date-time the requested email list was updated. -
ImportOperation- an object that contains the details of the latest import operation performed in the requested email list. This is blank if there was no import done.-
ID- the ID of the import operation. -
DataHash- a globally unique identifier (GUID) for the import operation -
Mappings- the data mappings used for the specific import operation. -
EmailNotify- this isnullif the import operation notification email was not selected to be sent -
CreatedOn- the date-time when the import operation was created. -
StartedOn- the date-time when the import operation was stated. -
CompletedOn- the date-time when the import operation was completed. -
TotalInserted- the total number of inserted emails. -
TotalUpdated- the total number of updated emails. -
TotalUnsubscribed- the total number of unsubscribed emails. -
TotalInvalid- the total number of invalid emails. -
TotalIgnored- the total number of ignored emails. -
TotalDuplicate- the total number of duplicate emails. -
TotalMembers- the total number of members that were selected to be imported. -
Message- the message of the import operation. This isnullif successful. -
Success- this istrueif successful. -
SkipNewMembers- this isfalseif the skip new members option was not selected before the import operation began.
-
-
Preferences- an object that contains the details of the preferences field.-
FallbackValue- this returns if the field has a fallback value. -
IsRequired- this istrueif the preferences field is required, andfalseif it is not. -
Options- an object that contains all the Preferences options. -
SelectType- this is the data type of the field. It is 0 for single-select and 1 for multi-select.
-