POST
/
inbound
/
blocklist
curl --request POST \
  --url https://api.jetemail.com/inbound/blocklist \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "domain": "example.com",
  "type": "from",
  "action": "block",
  "value": "spammer@spam.com",
  "notes": "Known spam account"
}'
{
  "success": true,
  "message": "Blocklist rule created successfully",
  "uuid": "550e8400-e29b-41d4-a716-446655440000"
}

Authorizations

Authorization
string
header
required

Enter your Bearer token in the format "Bearer {token}"

Body

application/json
domain
string
required

Domain to apply the rule to

Example:

"example.com"

type
enum<string>
required

Type of blocklist rule

Available options:
from,
to,
subject,
body,
ip
action
enum<string>
required

Action to take when rule matches

Available options:
block,
quarantine
value
string
required

Value to match against (format depends on type)

Example:

"spam@example.com"

notes
string

Optional notes about the rule

Maximum length: 64
Example:

"Known spam account"

Response

200
application/json
Blocklist rule created successfully
success
boolean
Example:

true

message
string
Example:

"Blocklist rule created successfully"

uuid
string

UUID of the created rule

Example:

"550e8400-e29b-41d4-a716-446655440000"