1
Install the SDK
2
Initialize the client
Get your API key from the dashboard.
3
Create an inbox
Your agent needs an email address. Commune auto-assigns a domain if you don’t specify one.
4
Send an email
5
Receive emails via webhook
Configure a webhook on your inbox so your agent is notified in real time when someone replies.When someone replies, Commune POSTs to your webhook:
6
Build a responding agent
A full inbound handler that reads the email, generates a reply with Claude, and sends it back in the same thread:
What’s next?
Messages
Full reference for sending, listing, and threading emails.
Webhooks
Webhook events, retries, signatures, and delivery tracking.
Attachments
Upload and send files. Extract content from inbound attachments.
Structured Extraction
Auto-extract structured fields from every inbound email using LLM.
Security
DKIM, encryption, spam prevention, prompt injection detection.
Phone & SMS
Add SMS alongside email for multi-channel agent communication.

