Skip to main content
POST

Authorizations

Authorization
string
header
required

API key for account management endpoints. Use your api_ prefixed token.

Body

application/json
name
string
required

Rule name

Required string length: 1 - 100
Example:

"Block spam domain"

description
string

Optional rule description

Maximum string length: 500
Example:

"Block all emails from known spam domain"

senders
object[]
recipients
object[]
subjects
object[]
body
object[]
headers
object[]
ips
object[]
size
object | null
attachments
object[]

Response

Rule created successfully

success
boolean
Example:

true

uuid
string<uuid>

UUID of the created rule

Example:

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