Create a mailing list
Request
|
Parameter |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
|
header |
string |
true |
Determines the expected format and data type to retrieve the response data. Value: |
|
|
path |
string |
true |
The supported file format for getting a response. Possible values: |
|
|
query |
string |
true |
The API key of your account. |
|
|
body |
string |
true |
The name of the email list. |
|
|
body |
string |
false |
The URL of the page displayed at the end of the subscription process. |
|
|
body |
string |
false |
The URL of the redirect page when users unsubscribe from your email list. |
|
|
body |
array |
true |
The Preferences field options.
Possible values can be
|
|
|
body |
string |
false |
The preference page id. |
POST https://{hostname}/v3/lists/create.{Format}?apikey=
Request body:
{
"Name":"New List",
"ConfirmationPage":"www.someUrl.com",
"RedirectAfterUnsubscribePage":"www.someUrl.com",
"Preferences": {
"SelectType": "SingleSelect",
"Options": [
"option a",
"option b"
]
},
"PreferencePageId" : null
}
Response
|
Status |
Description |
Headers |
Schema |
|---|---|---|---|
|
|
The request is successful. |
|
N/A |
{
"Code": 0,
"Error": null,
"Context": "6ca52d31-765c-4760-a78e-91e511e49d76"
}
-
Code- the response code. This is0if successful. -
Error- the response error message. This isnullif successful. -
Context- the ID of the email list created.