Saves a host-drafted reply without calling a model or sending email
Saves a host-drafted reply without calling a model or sending email with the Mailly email API for AI agents: POST /mail-drafts. Parameters, request body, responses and code samples.
Each pending draft includes review_url: a private link where a person can read the exact email (from, to, subject, body) and send or discard it without signing in. Anyone with the link can do that, so share it only with the person who should decide. It expires after review_expires_at, and stops working once the draft is sent, discarded or edited (an edit returns a new link). Other drafts have review_url null.
bearerAuthAuthorizationBearer <token>Mailly API key(Authorization: Bearer )
application/json- body
anchor_email_id*string1 <= length <= 128text*string1 <= length <= 524288idempotency_key*string1 <= length <= 128cc?|array<string>Cc addresses: comma-separated string or array. Replaces the current Cc when given.
reply_all?booleanAlso Cc the anchor email's other To/Cc recipients, excluding yourself. Resolved when the draft is saved.
Draft action succeeded
application/json- response
success*boolean[key: string]?unknowncurl -X POST 'https://api.mailly.site/mail-drafts' \ -H 'Content-Type: application/json' \ -d '{ "anchor_email_id": "string", "text": "string", "idempotency_key": "string"}'{ "success": true, "property1": null, "property2": null}Get a standalone mail draft GET
Get a standalone mail draft with the Mailly email API for AI agents: GET /mail-drafts. Parameters, request body, responses and code samples.
Domains
Sender domains and DNS setup: endpoints of the Mailly email API for AI agents, with parameters, responses and code samples.