/v3/rulesCreate a ruleBeta
Creates a rule for your application. A rule defines a trigger (inbound or outbound), conditions against
sender or recipient fields, and actions to apply when the conditions match. Inbound rules run on incoming
messages; outbound rules run on sends before they're submitted to the email provider. Inbound and outbound
rules are isolated — inbound rules never run during sends, and outbound rules never run on message receipt.
Inbound rules can match from.address, from.domain, or from.tld. Outbound rules can match
from.address, from.domain, from.tld, recipient.address, recipient.domain, recipient.tld, or
outbound.type (compose or reply). Link inbound rules to a policy to apply them to specific Agent
Accounts. Outbound rules are currently evaluated from the sending application's enabled outbound rules.
The application_id and organization_id are derived from your API key and are read-only.