delete https://api.brevo.com/v3/smtp/blockedDomains/
Unblocks an existing domain from the list of blocked domains
const SibApiV3Sdk = require('sib-api-v3');
const apiInstance = new SibApiV3Sdk.TransactionalEmailsApi();
// Configure API key authorization: api-key
const apiKey = apiInstance.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
const domain = 'https://mydomain.com';
apiInstance.deleteBlockedDomain(domain).then(function(data) {
console.log('API called successfully. Returned data: ' + JSON.stringify(data));
}, function(error) {
console.error(error);
});
const SibApiV3Sdk = require('sib-api-v3-typescript');
const apiInstance = new SibApiV3Sdk.TransactionalEmailsApi();
// Configure API key authorization: api-key
const apiKey = apiInstance.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
const domain = 'https://mydomain.com';
apiInstance.deleteBlockedDomain(domain).then(function(data) {
console.log('API called successfully. Returned data: ' + JSON.stringify(data));
}, function(error) {
console.error(error);
});
package sibApi;
import sendinblue.ApiClient;
import sendinblue.Configuration;
import sendinblue.auth.ApiKeyAuth;
public class Program {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api-key
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
apiKey.setApiKey("YOUR API KEY");
try {
TransactionalEmailsApi api = new TransactionalEmailsApi();
String domain = "https://mydomain.com";
api.deleteBlockedDomain(domain);
} catch (Exception e) {
System.out.println("Exception occurred:- " + e.getMessage());
}
}
}
using sib_api_v3_sdk.Api;
using sib_api_v3_sdk.Client;
using System;
using System.Diagnostics;
namespace Sendinblue
{
class Program
{
static void Main(string[] args)
{
Configuration.Default.ApiKey.Add("api-key", "YOUR API KEY");
var apiInstance = new TransactionalEmailsApi();
string domain = "https://mydomain.com";
try
{
apiInstance.DeleteBlockedDomain(domain);
Console.ReadLine();
}
catch (Exception e)
{
Debug.WriteLine(e.Message);
Console.WriteLine(e.Message);
Console.ReadLine();
}
}
}
}