POST
/
inbound
/
allowlist
curl --request POST \
  --url https://api.jetemail.com/inbound/allowlist \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "domain": "example.com",
  "type": "from",
  "value": "trusted@example.com",
  "notes": "Trusted sender"
}'
{
  "success": true,
  "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 allowlist rule

Available options:
from,
to,
subject,
body,
ip,
domain
value
string
required

Value to match against (format depends on type)

Example:

"trusted@example.com"

notes
string

Optional notes about the rule

Maximum length: 64
Example:

"Trusted sender"

Response

200
application/json
Rule created successfully
success
boolean
Example:

true

uuid
string
Example:

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