Skip to main content

Send an email

Commune handles DKIM signing, bounce tracking, and delivery monitoring. You just pass the recipient, subject, and body.

Send an email from your agent's inbox

Open in Cursor

Parameters

At least one of html or text must be provided.

Response

Validation response

When email validation detects issues (invalid addresses, disposable domains, suppressed recipients), the response includes a validation object:

Sending in a thread

To reply within an existing conversation, pass the thread_id. Commune automatically sets the correct In-Reply-To and References headers for proper email threading:

Sending with attachments

Upload files first, then reference their IDs:

List messages

Retrieve messages filtered by inbox, domain, or sender.

Parameters

At least one of inbox_id, domain_id, or sender is required.

Response

Message object fields

Middleware pipeline

Every outbound email passes through Commune’s security pipeline before delivery:
  1. Rate limiting — Per-second and daily rate limits
  2. Burst detection — Blocks abnormal sending spikes
  3. Content validation — Outbound spam/phishing check
  4. Sending health gate — Pauses sending if bounce/complaint rates are too high
  5. Warmup gate — Gradually increases daily send volume for new inboxes
  6. Email validation — Checks recipient syntax, MX records, disposable domains
  7. Suppression check — Skips previously bounced/complained addresses
  8. Inbox daily limit — Enforces per-inbox sending caps
  9. API key limit — Enforces per-key sending caps
This pipeline protects your sender reputation automatically. You don’t need to manage any of this manually.

What’s next?

Threads

Browse conversation threads and manage triage with status and tags.

Attachments

Upload, send, and download file attachments.

Delivery Monitoring

Track bounce rates, complaint rates, and suppression lists.

Webhooks

Receive inbound emails in real-time via HTTP POST.
Last modified on March 19, 2026