Paths
Create an opt-out list
POST /optout/lists
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Body |
body |
An object containing the values required to create opt-out list. The property projectId is optional and if not specified, the company level opt-out list will be created. |
Get an opt-out list
Add a domain
POST /optout/lists/{optOutListId}/domains
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
optOutListId |
The id of the opt-out list |
integer (int64) |
Body |
body |
An object containing the values required to add a domain. |
Get all domains
GET /optout/lists/{optOutListId}/domains
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
optOutListId |
The id of the opt-out list |
integer (int64) |
|
Query |
$filterValue |
Value to filter list of blacklisted domains |
string |
|
Query |
$orderAscending |
boolean |
|
|
Query |
$orderBy |
Ordering list by blacklisted domain properties |
string |
|
Query |
$page |
Page number |
integer (int32) |
|
Query |
$pageSize |
Page size |
integer (int32) |
|
Export all domains
Import domains
POST /optout/lists/{optOutListId}/domains/import
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
optOutListId |
The id of the opt-out list |
integer (int64) |
FormData |
file |
File containing list of domains to import |
file |
Delete a domain
DELETE /optout/lists/{optOutListId}/domains/{domainId}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
domainId |
The id of the domain |
integer (int64) |
Path |
optOutListId |
The id of the opt-out list |
integer (int64) |
Add an email
POST /optout/lists/{optOutListId}/emails
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
optOutListId |
The id of the opt-out list |
integer (int64) |
Body |
body |
The object containing the values required to add an email. |
Get all emails
GET /optout/lists/{optOutListId}/emails
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
optOutListId |
The id of the opt-out list |
integer (int64) |
|
Query |
$filterValue |
Filtering list by blacklisted email address |
string |
|
Query |
$orderAscending |
boolean |
|
|
Query |
$orderBy |
Ordering list by blacklisted email properties |
string |
|
Query |
$page |
Page number |
integer (int32) |
|
Query |
$pageSize |
Page size |
integer (int32) |
|
Export all emails
Import files
POST /optout/lists/{optOutListId}/emails/import
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
optOutListId |
The id of the opt-out list |
integer (int64) |
FormData |
file |
File containing list of emails to import |
file |
Delete a email
DELETE /optout/lists/{optOutListId}/emails/{emailId}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
emailId |
The id of email address |
integer (int64) |
Path |
optOutListId |
The id of the opt-out list |
integer (int64) |