Send an email
Sends an email via the connected email account that owns the from address. Currently supports new sends only; replies and forwards are not yet supported.
Supports idempotency via the Idempotency-Key header.
Required scope: emails:create
Rate limit category: Write
Parameters
Bare email address (no display name). Must match a connected email account owned by the API key user. Compared case-insensitively. Used as the From header when sending.
Optional list of file IDs (uploaded via the Files API) to attach to the email. Maximum 5 attachments per email. Gmail: up to 20 MiB combined raw attachment size. Outlook: up to 3 MiB per attachment. Uploads with purpose email_attachment accept up to 20 MiB per file; sender-specific limits apply when sending or creating a draft.
Send an email
lightfield email send \
--api-key 'My API Key' \
--from sales@acme.com \
--message-body "{content: '<p>Hi there,</p><p>Following up on our chat earlier this week.</p>'}" \
--subject 'Following up on our chat' \
--to lead@example.com{
"sentAt": "sentAt"
}Returns Examples
{
"sentAt": "sentAt"
}