Skip to main content
POST
/
contact-blacklist-rules
/
domains
Create a domain blacklist rule
curl --request POST \
  --url https://api.reply.io/v3/contact-blacklist-rules/domains \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "pattern": "<string>"
}
'
{
  "id": 123,
  "pattern": "<string>",
  "isGlobal": true
}

Authorizations

X-API-Key
string
header
required

API key passed in the X-API-Key header

Body

application/json

Request body for creating a domain blacklist rule

pattern
string
required

Domain pattern to blacklist

Response

Domain blacklist rule created successfully

A blacklist rule that blocks a domain pattern

id
integer
required

Unique identifier of the rule

pattern
string
required

Domain pattern to blacklist

isGlobal
boolean
required

Whether this is a global (system-wide) rule