All URIs are relative to https://api.elasticemail.com/v4
Method | HTTP request | Description |
---|---|---|
suppressionsBouncesGet | GET /suppressions/bounces | Get Bounce List |
suppressionsBouncesImportPost | POST /suppressions/bounces/import | Add Bounces Async |
suppressionsBouncesPost | POST /suppressions/bounces | Add Bounces |
suppressionsByEmailDelete | DELETE /suppressions/{email} | Delete Suppression |
suppressionsByEmailGet | GET /suppressions/{email} | Get Suppression |
suppressionsComplaintsGet | GET /suppressions/complaints | Get Complaints List |
suppressionsComplaintsImportPost | POST /suppressions/complaints/import | Add Complaints Async |
suppressionsComplaintsPost | POST /suppressions/complaints | Add Complaints |
suppressionsGet | GET /suppressions | Get Suppressions |
suppressionsUnsubscribesGet | GET /suppressions/unsubscribes | Get Unsubscribes List |
suppressionsUnsubscribesImportPost | POST /suppressions/unsubscribes/import | Add Unsubscribes Async |
suppressionsUnsubscribesPost | POST /suppressions/unsubscribes | Add Unsubscribes |
[Suppression] suppressionsBouncesGet(opts)
Get Bounce List
Retrieve your list of bounced emails. Required Access Level: ViewContacts, ViewSuppressions
import ElasticEmail from '@elasticemail/elasticemail-client';
let defaultClient = ElasticEmail.ApiClient.instance;
// Configure API key authorization: apikey
let apikey = defaultClient.authentications['apikey'];
apikey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apikey.apiKeyPrefix = 'Token';
let apiInstance = new ElasticEmail.SuppressionsApi();
let opts = {
'search': "text", // String | Text fragment used for searching.
'limit': 100, // Number | Maximum number of returned items.
'offset': 20 // Number | How many items should be returned ahead.
};
apiInstance.suppressionsBouncesGet(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
search | String | Text fragment used for searching. | [optional] |
limit | Number | Maximum number of returned items. | [optional] |
offset | Number | How many items should be returned ahead. | [optional] |
- Content-Type: Not defined
- Accept: application/json
suppressionsBouncesImportPost(opts)
Add Bounces Async
Add Bounced. Required Access Level: ModifyContacts, ModifySuppressions
import ElasticEmail from '@elasticemail/elasticemail-client';
let defaultClient = ElasticEmail.ApiClient.instance;
// Configure API key authorization: apikey
let apikey = defaultClient.authentications['apikey'];
apikey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apikey.apiKeyPrefix = 'Token';
let apiInstance = new ElasticEmail.SuppressionsApi();
let opts = {
'file': "/path/to/file" // File |
};
apiInstance.suppressionsBouncesImportPost(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});
Name | Type | Description | Notes |
---|---|---|---|
file | File | [optional] |
null (empty response body)
- Content-Type: multipart/form-data
- Accept: Not defined
[Suppression] suppressionsBouncesPost(requestBody)
Add Bounces
Add Bounced. Required Access Level: ModifyContacts, ModifySuppressions
import ElasticEmail from '@elasticemail/elasticemail-client';
let defaultClient = ElasticEmail.ApiClient.instance;
// Configure API key authorization: apikey
let apikey = defaultClient.authentications['apikey'];
apikey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apikey.apiKeyPrefix = 'Token';
let apiInstance = new ElasticEmail.SuppressionsApi();
let requestBody = ["null"]; // [String] | Emails to add as bounces. Limited to 1000 per request
apiInstance.suppressionsBouncesPost(requestBody, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
requestBody | [String] | Emails to add as bounces. Limited to 1000 per request |
- Content-Type: application/json
- Accept: application/json
suppressionsByEmailDelete(email)
Delete Suppression
Delete Suppression. Required Access Level: ViewContacts, ViewSuppressions
import ElasticEmail from '@elasticemail/elasticemail-client';
let defaultClient = ElasticEmail.ApiClient.instance;
// Configure API key authorization: apikey
let apikey = defaultClient.authentications['apikey'];
apikey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apikey.apiKeyPrefix = 'Token';
let apiInstance = new ElasticEmail.SuppressionsApi();
let email = "mail@example.com"; // String | Proper email address.
apiInstance.suppressionsByEmailDelete(email, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});
Name | Type | Description | Notes |
---|---|---|---|
String | Proper email address. |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
Suppression suppressionsByEmailGet(email)
Get Suppression
Retrieve your suppression. Required Access Level: ViewContacts, ViewSuppressions
import ElasticEmail from '@elasticemail/elasticemail-client';
let defaultClient = ElasticEmail.ApiClient.instance;
// Configure API key authorization: apikey
let apikey = defaultClient.authentications['apikey'];
apikey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apikey.apiKeyPrefix = 'Token';
let apiInstance = new ElasticEmail.SuppressionsApi();
let email = "mail@example.com"; // String | Proper email address.
apiInstance.suppressionsByEmailGet(email, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
String | Proper email address. |
- Content-Type: Not defined
- Accept: application/json
[Suppression] suppressionsComplaintsGet(opts)
Get Complaints List
Retrieve your list of complaints. Required Access Level: ViewContacts, ViewSuppressions
import ElasticEmail from '@elasticemail/elasticemail-client';
let defaultClient = ElasticEmail.ApiClient.instance;
// Configure API key authorization: apikey
let apikey = defaultClient.authentications['apikey'];
apikey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apikey.apiKeyPrefix = 'Token';
let apiInstance = new ElasticEmail.SuppressionsApi();
let opts = {
'search': "text", // String | Text fragment used for searching.
'limit': 100, // Number | Maximum number of returned items.
'offset': 20 // Number | How many items should be returned ahead.
};
apiInstance.suppressionsComplaintsGet(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
search | String | Text fragment used for searching. | [optional] |
limit | Number | Maximum number of returned items. | [optional] |
offset | Number | How many items should be returned ahead. | [optional] |
- Content-Type: Not defined
- Accept: application/json
suppressionsComplaintsImportPost(opts)
Add Complaints Async
Add Complaints. Required Access Level: ModifyContacts, ModifySuppressions
import ElasticEmail from '@elasticemail/elasticemail-client';
let defaultClient = ElasticEmail.ApiClient.instance;
// Configure API key authorization: apikey
let apikey = defaultClient.authentications['apikey'];
apikey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apikey.apiKeyPrefix = 'Token';
let apiInstance = new ElasticEmail.SuppressionsApi();
let opts = {
'file': "/path/to/file" // File |
};
apiInstance.suppressionsComplaintsImportPost(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});
Name | Type | Description | Notes |
---|---|---|---|
file | File | [optional] |
null (empty response body)
- Content-Type: multipart/form-data
- Accept: Not defined
[Suppression] suppressionsComplaintsPost(requestBody)
Add Complaints
Add Complaints. Required Access Level: ModifyContacts, ModifySuppressions
import ElasticEmail from '@elasticemail/elasticemail-client';
let defaultClient = ElasticEmail.ApiClient.instance;
// Configure API key authorization: apikey
let apikey = defaultClient.authentications['apikey'];
apikey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apikey.apiKeyPrefix = 'Token';
let apiInstance = new ElasticEmail.SuppressionsApi();
let requestBody = ["null"]; // [String] | Emails to add as complaints. Limited to 1000 per request
apiInstance.suppressionsComplaintsPost(requestBody, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
requestBody | [String] | Emails to add as complaints. Limited to 1000 per request |
- Content-Type: application/json
- Accept: application/json
[Suppression] suppressionsGet(opts)
Get Suppressions
Retrieve your suppressions. Required Access Level: ViewContacts, ViewSuppressions
import ElasticEmail from '@elasticemail/elasticemail-client';
let defaultClient = ElasticEmail.ApiClient.instance;
// Configure API key authorization: apikey
let apikey = defaultClient.authentications['apikey'];
apikey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apikey.apiKeyPrefix = 'Token';
let apiInstance = new ElasticEmail.SuppressionsApi();
let opts = {
'limit': 100, // Number | Maximum number of returned items.
'offset': 20 // Number | How many items should be returned ahead.
};
apiInstance.suppressionsGet(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
limit | Number | Maximum number of returned items. | [optional] |
offset | Number | How many items should be returned ahead. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Suppression] suppressionsUnsubscribesGet(opts)
Get Unsubscribes List
Retrieve your list of unsubscribes. Required Access Level: ViewContacts, ViewSuppressions
import ElasticEmail from '@elasticemail/elasticemail-client';
let defaultClient = ElasticEmail.ApiClient.instance;
// Configure API key authorization: apikey
let apikey = defaultClient.authentications['apikey'];
apikey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apikey.apiKeyPrefix = 'Token';
let apiInstance = new ElasticEmail.SuppressionsApi();
let opts = {
'search': "text", // String | Text fragment used for searching.
'limit': 100, // Number | Maximum number of returned items.
'offset': 20 // Number | How many items should be returned ahead.
};
apiInstance.suppressionsUnsubscribesGet(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
search | String | Text fragment used for searching. | [optional] |
limit | Number | Maximum number of returned items. | [optional] |
offset | Number | How many items should be returned ahead. | [optional] |
- Content-Type: Not defined
- Accept: application/json
suppressionsUnsubscribesImportPost(opts)
Add Unsubscribes Async
Add Unsubscribes. Required Access Level: ModifyContacts, ModifySuppressions
import ElasticEmail from '@elasticemail/elasticemail-client';
let defaultClient = ElasticEmail.ApiClient.instance;
// Configure API key authorization: apikey
let apikey = defaultClient.authentications['apikey'];
apikey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apikey.apiKeyPrefix = 'Token';
let apiInstance = new ElasticEmail.SuppressionsApi();
let opts = {
'file': "/path/to/file" // File |
};
apiInstance.suppressionsUnsubscribesImportPost(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});
Name | Type | Description | Notes |
---|---|---|---|
file | File | [optional] |
null (empty response body)
- Content-Type: multipart/form-data
- Accept: Not defined
[Suppression] suppressionsUnsubscribesPost(requestBody)
Add Unsubscribes
Add Unsubscribes. Required Access Level: ModifyContacts, ModifySuppressions
import ElasticEmail from '@elasticemail/elasticemail-client';
let defaultClient = ElasticEmail.ApiClient.instance;
// Configure API key authorization: apikey
let apikey = defaultClient.authentications['apikey'];
apikey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apikey.apiKeyPrefix = 'Token';
let apiInstance = new ElasticEmail.SuppressionsApi();
let requestBody = ["null"]; // [String] | Emails to add as unsubscribes. Limited to 1000 per request
apiInstance.suppressionsUnsubscribesPost(requestBody, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
requestBody | [String] | Emails to add as unsubscribes. Limited to 1000 per request |
- Content-Type: application/json
- Accept: application/json