Skip to content

Get domain suppressions

GET
/api/domains/{domain}/suppressions
curl --request GET \
--url 'https://smtp-app.kirim.email/api/domains/example.com/suppressions?type=unsubscribe&page=1&per_page=10' \
--header 'Authorization: Basic <credentials>'

Retrieve a paginated list of suppressions for a domain

domain
required
string
Example
example.com

Domain name that must be owned by the authenticated user. The domain must be verified and properly configured for email sending.

type
string
default: unsubscribe
Allowed values: unsubscribe bounce whitelist

Suppression type

search
string

Search suppressions by recipient

page
integer
default: 1 >= 1

Page number

per_page
integer
default: 10 >= 10 <= 100

Number of items per page

Success

Media typeapplication/json
object
success
boolean
data
Array<object>

Suppression entry

object
id
integer
type
string
Allowed values: unsubscribe bounce whitelist
recipient_type
string
Allowed values: email domain
recipient
string
tags
string
nullable
description
string
nullable
source
string
nullable
created_at
integer
pagination
object
filters
object
Example
{
"success": true,
"data": [
{
"id": 1,
"type": "unsubscribe",
"recipient_type": "email",
"recipient": "[email protected]",
"tags": "marketing",
"description": "Opted out from newsletter",
"source": "api",
"created_at": 1711234567
}
]
}

Unauthorized - Invalid or missing authentication credentials

Media typeapplication/json
object
success
boolean
message
string
Example
{
"success": false,
"message": "Unauthorized"
}

Not Found - Domain not found

Media typeapplication/json
object
success
boolean
message
string
Example
{
"success": false,
"message": "Domain not found"
}

Too Many Requests - Rate limit exceeded. Retry after the specified time.

Media typeapplication/json
object
success
boolean
message
string
Example
{
"success": false,
"message": "Too many attempts. Please try again later."
}
Retry-After
integer

Seconds until rate limit resets

X-RateLimit-Limit
integer

Maximum requests per minute

X-RateLimit-Remaining
integer

Remaining requests in current window