Skip to content

Create whitelist suppression

POST
/api/domains/{domain}/suppressions/whitelist
curl --request POST \
--url https://smtp-app.kirim.email/api/domains/example.com/suppressions/whitelist \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json' \
--data '{ "recipient": "[email protected]", "recipient_type": "email", "description": "Trusted sender" }'

Add a new entry to whitelist suppressions

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.

Whitelist suppression entry details

object
recipient
required

Email or domain to whitelist

string
recipient_type
required

Type of recipient

string
Allowed values: email domain
Example
email
description

Optional description

string
Example
Trusted sender

Whitelist entry created successfully

Media typeapplication/json
object
success
boolean
message
string
data

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
Example
{
"success": true,
"message": "Whitelist entry created successfully.",
"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"
}

Validation Error - Invalid input data

Media typeapplication/json
object
success
boolean
message
string
errors

Field-specific validation errors

object
Example
{
"success": false,
"message": "Validation failed."
}

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

Server Error - Unexpected error occurred

Media typeapplication/json
object
success
boolean
message
string
Example
{
"success": false,
"message": "An error occurred while processing the request."
}