POST
/
v3
/
contact-blacklist-rules
/
emails
Create an email blacklist rule
curl --request POST \
  --url https://api.reply.io/v3/contact-blacklist-rules/emails \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "pattern": "spam@example.com"
}
'
{
  "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 an email blacklist rule

pattern
string
required

Email pattern to blacklist. Must be a valid email format (e.g., spam@example.com)

Example:

"spam@example.com"

Response

Email blacklist rule created successfully

A blacklist rule that blocks an email pattern

id
integer

Unique identifier of the rule

pattern
string

Email pattern to blacklist

isGlobal
boolean

Whether this is a global (system-wide) rule