Skip to main content
POST
/
inbound
/
account
/
allowlist
curl --request POST \
  --url https://api.jetemail.com/inbound/account/allowlist \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Allow partner emails",
  "description": "Allow all emails from partner.com across all domains",
  "priority": 10,
  "senders": [
    {
      "sender_type": "domain",
      "sender_value": "partner.com"
    }
  ]
}
'
{
  "success": true,
  "id": 1
}

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
required

Rule name (alphanumeric, spaces, hyphens, underscores, periods)

Required string length: 1 - 100
Example:

"Allow partner emails"

description
string

Optional rule description

Maximum string length: 500
Example:

"Allow all emails from partner domain across all our domains"

priority
integer
default:100

Rule priority (lower numbers = higher priority)

Example:

10

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

Response

Rule created successfully

success
boolean
Example:

true

id
integer

ID of the created rule

Example:

1