Suppressions
List suppressions
GET
/
v1
/
suppressions
cURL
curl --request GET \
--url https://app.getozi.com/api/v1/suppressions \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.getozi.com/api/v1/suppressions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.getozi.com/api/v1/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://app.getozi.com/api/v1/suppressions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.getozi.com/api/v1/suppressions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.getozi.com/api/v1/suppressions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.getozi.com/api/v1/suppressions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"suppressions": [
{
"id": "<string>",
"email": "<string>",
"reason": "HARD_BOUNCE",
"source": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"pagination": {
"page": 123,
"limit": 123,
"totalCount": 123,
"totalPages": 123,
"hasNext": true,
"hasPrev": true
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Lists the addresses the team never sends to (bounces, complaints and ones you added), newest first. Search by part of the address, or filter by reason.
Needs an API key with full access. Not available to a key limited to one domain.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Required range:
1 <= x <= 10000Required range:
1 <= x <= 100Part of the address
Maximum string length:
320Available options:
HARD_BOUNCE, COMPLAINT, MANUAL ⌘I
cURL
curl --request GET \
--url https://app.getozi.com/api/v1/suppressions \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.getozi.com/api/v1/suppressions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.getozi.com/api/v1/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://app.getozi.com/api/v1/suppressions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.getozi.com/api/v1/suppressions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.getozi.com/api/v1/suppressions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.getozi.com/api/v1/suppressions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"suppressions": [
{
"id": "<string>",
"email": "<string>",
"reason": "HARD_BOUNCE",
"source": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"pagination": {
"page": 123,
"limit": 123,
"totalCount": 123,
"totalPages": 123,
"hasNext": true,
"hasPrev": true
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}