Draft an email
draft_emailDraft one email to a contact. Drafts are auto-approved by default (the operator can switch approval on for the workspace or for you; then the draft waits in their Approvals inbox). Approved mail that cannot be sent to the recipient yet waits in the operator's To send list and the response says so. Refuses with contact_suppressed when the contact replied, unsubscribed or bounced. One recipient per message, plain text, no attachments. Accepts only contact_id (or to), subject, body: any other argument is rejected with unknown_field. The response carries warnings (codes: open_draft_exists when another unsent draft to the same contact exists, emailed_N_days_ago when mail went out in the last 3 days, contact_status_) and prior_emails; check them before drafting a second message to the same person. Requires the draft_email scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Or the contact's email address. | |
| body | Yes | Plain-text body. The platform adds the sender identity and unsubscribe footer. | |
| subject | Yes | Single-line subject. | |
| contact_id | No | Contact id. | |
| idempotency_key | No | Optional. Repeating a call with the same key and the same arguments returns the first result instead of writing again, so retries are safe. |