Blacklist

var client = new RestClient("https://api.messageflow.com/v2.1/email/domain/blacklist/%7Bsmtp%7D");
var request = new RestRequest(Method.GET);
request.AddHeader("authorization", "REPLACE_KEY_VALUE");
IRestResponse response = client.Execute(request);
var client = new RestClient("https://api.messageflow.com/v2.1/email/domain/blacklist/%7Bsmtp%7D");
var request = new RestRequest(Method.POST);
request.AddHeader("content-type", "application/json");
request.AddHeader("authorization", "REPLACE_KEY_VALUE");
request.AddParameter("application/json", "{\"domain\":null}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
var client = new RestClient("https://api.messageflow.com/v2.1/email/domain/blacklist/%7Bsmtp%7D");
var request = new RestRequest(Method.DELETE);
request.AddHeader("content-type", "application/json");
request.AddHeader("authorization", "REPLACE_KEY_VALUE");
request.AddHeader("application-key", "REPLACE_KEY_VALUE");
request.AddParameter("application/json", "{\"id\":[\"domain.com\"]}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);

Last updated