On this page:
Table of Contents |
---|
Note |
---|
It is recommended that you do not create a new list for each campaign, to avoid performance issues we suggest you to not exceed the limit of 100 lists for each console account. |
...
...
Lists
Get List country codes
Anchor | ||||
---|---|---|---|---|
|
Description | Return the list of available country codes to create or update a list | |||||||
---|---|---|---|---|---|---|---|---|
HTTP Method | GET | |||||||
URL | http://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/List/Countries | |||||||
Reference | Go to automated doc | |||||||
JSON request (example) | none | |||||||
JSON response (example) |
| |||||||
Paging and filtering (example) |
Get Time Zone codes
Anchor | ||||
---|---|---|---|---|
|
Description | Return the list of Time Zone codes to create or update a list | |||||||
---|---|---|---|---|---|---|---|---|
HTTP Method | GET | |||||||
URL | http://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/TimeZones | |||||||
Reference | Go to automated doc | |||||||
JSON request (example) | none | |||||||
JSON response (example) |
| |||||||
Paging and filtering (example) |
Create List
Anchor | ||||
---|---|---|---|---|
|
...
Tip |
---|
NEW: we've added a new method for creating lists and deprecated the previous one. We recommend all of you using the old method to switch to the new one, which supports the new mandatory sender fields and returns a more complete data set. |
...
Quick list creation
This is the minimum set of fields that are required to create a MailUp list using REST API. Please note that
- you always have to specify the so called "mandatory sender details" (see below)
- at least one between "IdSetting" and "UseDefaultSettings" has to be included in the request data
- you can also add any of the other optional fields (see the full list below)
...
Expand | ||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||
Mandatory sender details are a list of values that have to be specified during the onboarding process or when creating a new MailUp list
|
Description | Create a new list | ||||||||
---|---|---|---|---|---|---|---|---|---|
HTTP Method | POST | ||||||||
URL | https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/List | ||||||||
Reference | |||||||||
JSON request (example) |
| ||||||||
JSON response (example) |
| ||||||||
Paging and filtering (example) |
Advanced list creation
As you may have seen in the response object shown above, a MailUp list has many parameters that, during creation, you can inherit from a specified list or from the default settings. Sometimes you may have to customize your brand new list by overriding some of the default values (e.g. the description, the maximum newsletter size...).
Expand | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
...
Description | Create a new list | ||||||||
---|---|---|---|---|---|---|---|---|---|
HTTP Method | POST | ||||||||
URL | https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/List | ||||||||
Reference | |||||||||
JSON request (example) |
| ||||||||
JSON response (example) |
| ||||||||
Paging and filtering (example) |
Old "create list" method
Anchor | ||||
---|---|---|---|---|
|
Expand | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Get list details
Anchor | ||||
---|---|---|---|---|
|
Description | UGet list details by id | |||||||
---|---|---|---|---|---|---|---|---|
HTTP Method | GET | |||||||
URL | https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/List/{id_List} | |||||||
Reference | ||||||||
JSON request (example) | none | |||||||
JSON response (example) |
| |||||||
Paging and filtering (example) |
Update List
To update a list you have to provide an object that contains all the mandatory fields, even if you don't change them, and the optional fields that you want to modify.
We suggest you to take the result of the method to Create create a list (or the method to Get the list details), change what you need, and then provide the object to the PUT method.
Info | ||
---|---|---|
| ||
Updating a list, you can omit these fields:
Don't worry if you provide these values: the platform will ignore these values. |
Description | Update an existing list | |||||||
---|---|---|---|---|---|---|---|---|
HTTP Method | PUT | |||||||
URL | https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/List/{id_List} | |||||||
Reference | For details about parameters you can look at Create List method. | |||||||
JSON request (example) |
| |||||||
JSON response (example) |
| |||||||
Paging and filtering (example) |
Old update list method
Expand | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||
|
Delete List
Description | Delete an existing list | ||||||||
---|---|---|---|---|---|---|---|---|---|
HTTP Method | DELETE | ||||||||
URL | https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/List/{id_List} | ||||||||
Reference | Go to automated doc | ||||||||
JSON request (example) | To ensure your intention to delete the list, we need to know 2 list-related values:
| ||||||||
JSON response (example) |
| ||||||||
Paging and filtering (example) |
Read Lists
Description | Return the lists that are visible for authenticated user. If an existing list is not returned it is likely that the MailUp specified with the API is not enabled to see that list. Users with administrators grants can change this setting using the admin console account (i.e. the web application) | |||||||
---|---|---|---|---|---|---|---|---|
HTTP Method | GET | |||||||
URL | https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/List | |||||||
Reference | Go to automated doc | |||||||
JSON request (example) | none | |||||||
JSON response (example) |
| |||||||
Paging and filtering (example) | 5 items per page, get first page (count starts from zero)
Retreive the list(s) whose name exactly matches the string 'Newsletter' using filterby="Name=='Newsletter'" then sort them by ID with orderby="idList desc". Parameter names can be retreived from the response body. Please note that filter matching is case sensitive.
Please note that also filtering with "Contains" is allowed but == is much more performing. |
Old read lists method
Expand | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||
|
Add recipients to a list - subscribe
You can use REST API to
- add and subscribe to one or more recipients. See "Import recipients".
- force subscription of an existing recipient (i.e. unsubscribed or pending) by specifiying its ID. Refer to "Update subscription"
Remove recipients from a list - unsubscribe
...
You should trust these email addresses for security reasons, so you can use TrustedSenders resource to do this job.
Trust an email address
Description | Use this method to trust a sender email address. Calling thie method, you'll send an email to the specified address containing a link to verify it. The response contains the value
because the sender email address hasn't been verified yet. When the sender I want to trust click the verification link, the platform trusts the sender and the StatusDescription (and the StatusCode) changes due to some platform checks. Please consider trusted a sender with StatusCode different from 0. You can use this method to re-request to trust a sender email address: in fact, every time you call this method, even if the address is verified, you'll receive an email containing the verification link and the platform updates the sender email address status to NotConfirmed. | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
HTTP Method | POST | |||||||||||
URL | https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/TrustedSenders | |||||||||||
Reference |
| |||||||||||
JSON request (example) |
| |||||||||||
JSON response (example) |
|
Get trusted email addresses
Description | Use this method to retrieve the list of trusted senders' email addresses. |
---|---|
HTTP Method | GET |
URL | https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/TrustedSenders |
Reference | |
JSON request (example) | None |
JSON response (example) |
The table below shows that you have to consider in your integration.
The table above does not display statuses that means Ok, your sender's email address is trusted! |
Get a trusted email address details
Description | Use this method to retrieve a trusted sender's email address details. |
---|---|
HTTP Method | GET |
URL | https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/TrustedSenders/{IdTrustedSender} |
Reference | |
JSON request (example) | None |
JSON response (example) |
The table below shows that you have to consider in your integration.
The table above does not display statuses that means Ok, your sender's email address is trusted! |
Disable an email address
Description | Use this method to disable a trusted sender. When you disable an email address, you cannot trust it again in the future. When you disable a sender, the trusted sender status is:
If you need to re-trust an email address, please do not disable it, but call the method to Trust an email address to send the email containing the verification link again. | ||||||
---|---|---|---|---|---|---|---|
HTTP Method | DELETE | ||||||
URL | https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/TrustedSenders/{IdTrustedSender} | ||||||
Reference | |||||||
JSON request (example) | For security reason, you need to submit the email address to disable using the If-match header.
| ||||||
JSON response (example) |
|
...
Groups
Create Group
Description | Create a group into the specified list. Group ID is returned | |||||
---|---|---|---|---|---|---|
HTTP Method | POST | |||||
URL | https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/List/{ID_LIST}/Group | |||||
Reference | Go to automated doc | |||||
JSON request (example) |
| |||||
JSON response (example) |
| |||||
Paging and filtering (example) | none |
...
Update group
Description | Updatea group starting from group ID | |||||
---|---|---|---|---|---|---|
HTTP Method | PUT | |||||
URL | https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/List/{ID_LIST}/Group/{ID_GROUP} | |||||
Reference | Go to automated doc | |||||
JSON request (example) |
| |||||
JSON response (example) |
| |||||
Paging and filtering (example) | none |
...
Read Groups
Description | Readgroups of specified list | |||||||
---|---|---|---|---|---|---|---|---|
HTTP Method | GET | |||||||
URL | https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/List/{ID_LIST}/Groups | |||||||
Reference | Go to automated doc | |||||||
JSON request (example) | none | |||||||
JSON response (example) |
| |||||||
Paging and filtering (example) | 5 items per page, get first page (count starts from zero)
Retreive all the groups whose name exactly matches the string 'Test' using filterby="Name.Contains('Test')" then sort them by ID orderby="idGroup asc". Parameter names can be retreived from the response body. Please note that filter matching is case sensitive.
Please note that also filtering with "Contains" is allowed but == is much more performing. |
...
Delete Group
Description | Deletea group starting from group ID |
---|---|
HTTP Method | DELETE |
URL | https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/List/{ID_LIST}/Group/{ID_GROUP} |
Reference | Go to automated doc |
JSON request (example) | none |
JSON response (example) | none |
Paging and filtering (example) | none |
...
Add recipients to a group
...
Remove recipients from a group (bulk removal from a group)
Description | Bulk removal of all recipients from a group | ||
---|---|---|---|
HTTP Method | DELETE | ||
URL | https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/List/{ID_LIST}/Group/{ID_GROUP}/Recipients | ||
Reference | Go to automated doc | ||
JSON request (example) |
| ||
JSON response (example) |
| ||
Paging and filtering (example) | none |
Tip | ||
---|---|---|
| ||
Click here to learn more about the difference between lists and groups in MailUp. |
...