cURL
curl -X DELETE https://cloudapi.mailercloud.com/v1/transactional-email/suppressions \
-H "Authorization: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"email": "one@example.com"}'import requests
url = "https://cloudapi.mailercloud.com/v1/transactional-email/suppressions"
payload = { "email": "one@example.com" }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: 'one@example.com'})
};
fetch('https://cloudapi.mailercloud.com/v1/transactional-email/suppressions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://cloudapi.mailercloud.com/v1/transactional-email/suppressions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_POSTFIELDS => json_encode([
'email' => 'one@example.com'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://cloudapi.mailercloud.com/v1/transactional-email/suppressions"
payload := strings.NewReader("{\n \"email\": \"one@example.com\"\n}")
req, _ := http.NewRequest("DELETE", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"email": "one@example.com",
"reactivated": true
}Reactivate a Suppressed Recipient
Removes a recipient from your suppression list so it can receive mail again. The change applies to the next send.
A recipient suppressed because of a spam complaint cannot be reactivated here — that recipient asked their mailbox provider to block you, so removing it is handled by support.
Sample Code
DELETE
/
v1
/
transactional-email
/
suppressions
cURL
curl -X DELETE https://cloudapi.mailercloud.com/v1/transactional-email/suppressions \
-H "Authorization: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"email": "one@example.com"}'import requests
url = "https://cloudapi.mailercloud.com/v1/transactional-email/suppressions"
payload = { "email": "one@example.com" }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: 'one@example.com'})
};
fetch('https://cloudapi.mailercloud.com/v1/transactional-email/suppressions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://cloudapi.mailercloud.com/v1/transactional-email/suppressions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_POSTFIELDS => json_encode([
'email' => 'one@example.com'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://cloudapi.mailercloud.com/v1/transactional-email/suppressions"
payload := strings.NewReader("{\n \"email\": \"one@example.com\"\n}")
req, _ := http.NewRequest("DELETE", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"email": "one@example.com",
"reactivated": true
}⌘I