Adds a new inbound domain with SMTP, webhook, or forward delivery. For forward delivery, use POST /inbound/domains//forward-rules to register routing rules after the domain is created and DNS is verified. Mode-specific fields are strictly enforced: smtp_servers is only allowed for delivery_type=smtp, the webhook_* fields are only allowed for delivery_type=webhook, and delivery_type=forward accepts neither. Sending fields from the wrong mode returns 400.
Documentation Index
Fetch the complete documentation index at: https://jetemail.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
API key for account management endpoints. Use your api_ prefixed token.
Primary domain name to add (e.g., example.com, not mail.example.com)
^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?.)+[a-zA-Z]{2,}$"example.com"
How emails should be delivered for this domain. For "forward", inbound mail is forwarded to per-recipient destinations defined via POST /inbound/domains/{uuid}/forward-rules.
smtp, webhook, forward Only for delivery_type=smtp (required). Rejected with 400 if sent with webhook or forward.
Server URL
"mail.example.com:25"
Only for delivery_type=webhook (required). Webhook URL to receive emails. Rejected with 400 if sent with smtp or forward.
"https://example.com/webhook/inbound"
Only for delivery_type=webhook. HTTP method for webhook. Rejected with 400 if sent with smtp or forward.
POST, PUT Only for delivery_type=webhook. Custom headers to send with webhook requests. Rejected with 400 if sent with smtp or forward.
Only for delivery_type=webhook. Webhook timeout in milliseconds. Rejected with 400 if sent with smtp or forward.
Only for delivery_type=webhook. Number of retry attempts for failed webhook calls. Rejected with 400 if sent with smtp or forward.
Only for delivery_type=webhook. Authorization header value for webhook. Rejected with 400 if sent with smtp or forward.