Skip to main content
POST
Create a domain blacklist rule

Authorizations

Authorization
string
header
required

Authenticate every request with a Bearer token. Pass your Reply API key in the Authorization header:

Get your API key from the Reply dashboard: Settings → API Key.

Body

application/json

Request body for creating a domain blacklist rule

pattern
string
required

Domain pattern to blacklist. Must be a valid domain format (e.g., example.com, spam-domain.net)

Example:

"example.com"

Response

Domain blacklist rule created successfully

A blacklist rule that blocks a domain pattern

id
integer
read-only

Unique identifier of the rule

pattern
string

Domain pattern to blacklist

isGlobal
boolean
read-only

Whether this is a global (system-wide) rule