Creates a draft in the connected email account that owns the from address. Mirrors native email-client behavior: only from is required — to, cc, bcc, subject, messageBody, and attachments are all optional. At least one of those optional fields must be populated; sending only from returns a 400.
Supports idempotency via the Idempotency-Key header.
Required scope: emails:create
Rate limit category: Write
Parameters
from_: str
Bare email address (no display name). Must match a connected email account owned by the API key user. Compared case-insensitively. Mailbox where the draft is created.
Create a draft email
from lightfield import Lightfield
client = Lightfield(
api_key="My API Key",
)
email_draft_response = client.email.draft(
from_="sales@acme.com",
)
print(email_draft_response.drafted_at){
"draftedAt": "draftedAt"
}Returns Examples
{
"draftedAt": "draftedAt"
}