curl -X POST https://cloudapi.mailercloud.com/v1/transactional-email/suppressions/search \
-H "Authorization: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"reason": "hard_bounced", "scopes": ["marketing"], "limit": 25}'import requests
url = "https://cloudapi.mailercloud.com/v1/transactional-email/suppressions/search"
payload = {
"search": "<string>",
"reason": "all",
"scopes": ["marketing", "global"],
"page": 1,
"limit": 25,
"sort_order": "desc",
"date_from": "2026-08-01",
"date_to": "2026-08-31",
"counts": True
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
search: '<string>',
reason: 'all',
scopes: ['marketing', 'global'],
page: 1,
limit: 25,
sort_order: 'desc',
date_from: '2026-08-01',
date_to: '2026-08-31',
counts: true
})
};
fetch('https://cloudapi.mailercloud.com/v1/transactional-email/suppressions/search', 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/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'search' => '<string>',
'reason' => 'all',
'scopes' => [
'marketing',
'global'
],
'page' => 1,
'limit' => 25,
'sort_order' => 'desc',
'date_from' => '2026-08-01',
'date_to' => '2026-08-31',
'counts' => true
]),
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/search"
payload := strings.NewReader("{\n \"search\": \"<string>\",\n \"reason\": \"all\",\n \"scopes\": [\n \"marketing\",\n \"global\"\n ],\n \"page\": 1,\n \"limit\": 25,\n \"sort_order\": \"desc\",\n \"date_from\": \"2026-08-01\",\n \"date_to\": \"2026-08-31\",\n \"counts\": true\n}")
req, _ := http.NewRequest("POST", 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))
}{
"data": [
{
"email": "one@example.com",
"reason": "hard_bounced",
"source": "automatic",
"scope": "global",
"smtp_response": "5.1.1 (bad destination mailbox address)",
"date_added": 1787204050,
"date_added_local": "2026-08-19 05:34:10"
}
],
"page": 1,
"limit": 25,
"counts": {
"all": 1158,
"hard_bounced": 1156,
"spam_complaint": 2,
"manual": 0
}
}Search Suppressions
Returns the recipients on your suppression list, newest first. Narrow the result with a search term, a reason, or a date range, and page through it with page or by following next_cursor.
A suppressed recipient is rejected on every future send until it is reactivated.
Sample Code
curl -X POST https://cloudapi.mailercloud.com/v1/transactional-email/suppressions/search \
-H "Authorization: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"reason": "hard_bounced", "scopes": ["marketing"], "limit": 25}'import requests
url = "https://cloudapi.mailercloud.com/v1/transactional-email/suppressions/search"
payload = {
"search": "<string>",
"reason": "all",
"scopes": ["marketing", "global"],
"page": 1,
"limit": 25,
"sort_order": "desc",
"date_from": "2026-08-01",
"date_to": "2026-08-31",
"counts": True
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
search: '<string>',
reason: 'all',
scopes: ['marketing', 'global'],
page: 1,
limit: 25,
sort_order: 'desc',
date_from: '2026-08-01',
date_to: '2026-08-31',
counts: true
})
};
fetch('https://cloudapi.mailercloud.com/v1/transactional-email/suppressions/search', 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/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'search' => '<string>',
'reason' => 'all',
'scopes' => [
'marketing',
'global'
],
'page' => 1,
'limit' => 25,
'sort_order' => 'desc',
'date_from' => '2026-08-01',
'date_to' => '2026-08-31',
'counts' => true
]),
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/search"
payload := strings.NewReader("{\n \"search\": \"<string>\",\n \"reason\": \"all\",\n \"scopes\": [\n \"marketing\",\n \"global\"\n ],\n \"page\": 1,\n \"limit\": 25,\n \"sort_order\": \"desc\",\n \"date_from\": \"2026-08-01\",\n \"date_to\": \"2026-08-31\",\n \"counts\": true\n}")
req, _ := http.NewRequest("POST", 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))
}{
"data": [
{
"email": "one@example.com",
"reason": "hard_bounced",
"source": "automatic",
"scope": "global",
"smtp_response": "5.1.1 (bad destination mailbox address)",
"date_added": 1787204050,
"date_added_local": "2026-08-19 05:34:10"
}
],
"page": 1,
"limit": 25,
"counts": {
"all": 1158,
"hard_bounced": 1156,
"spam_complaint": 2,
"manual": 0
}
}Authorizations
Your Mailercloud API key (plain text, no Bearer prefix). Create keys in Settings → API.
Body
Match any part of an email address.
Limit the result to one reason.
all, hard_bounced, spam_complaint, manual Limit the result to entries with these scopes. Unknown values are rejected rather than ignored.
global, marketing, transactional ["marketing", "global"]
x >= 11 <= x <= 100Order by the date the recipient was suppressed.
desc, asc Start of the range, as YYYY-MM-DD in your account's timezone.
"2026-08-01"
End of the range.
"2026-08-31"
Set to false to skip the per-reason totals when paging through a large list.