plan_mail_setup
Plans email setup for a client domain, returning a plan_id and a list of DNS records to create or replace. It changes no client DNS, so you can review proposed changes before applying them.
Instructions
Work out what setting up email for this client's domain would change.
Returns a plan_id and every record that would be created or replaced,
each with its current published value beside the proposed one, and a count
of how many need a person to approve them. Touches no client DNS.
One honest note: planning creates the sending domain in your own Resend
account, because Resend publishes no DKIM values until the domain exists.
Pass the plan_id to apply_mail_setup to carry it out, or use fix,
which plans and applies in one call and stops for approval in between.
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. |