plan_mail_setup
Plan email domain setup by comparing current DNS with desired records, returning create, update, merge, or unchanged actions. Does not modify DNS records.
Instructions
What setting up email for this client's domain would change.
Reads what is already published and returns every record with the
action it would take: create, update, merge or unchanged. Changes no
DNS. Pair it with apply_mail_setup, which needs the plan id.
The one write here is creating the sending domain in the operator's own Resend account, because Resend does not publish the DKIM and SPF values a plan is made of until it exists. That adds nothing to anyone's DNS.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| client | Yes | The client to act on, by the name you registered them under. A write resolves this one client's credentials and no other. | |
| domain | Yes | The domain to send mail from, for example acme.example. Uses the client's registered domain when omitted. |