Setting up a webhook
Configure the webhook when creating an inbox, or update an existing inbox:Webhook payload
When an email arrives, your endpoint receives this JSON payload:Payload fields
Handling webhooks
Delivery guarantees
Commune implements reliable webhook delivery with automatic retries:- Retry strategy: Exponential backoff — retries at 30s, 2m, 10m, 30m, 1h, 2h, 4h
- Max attempts: 8 (configurable)
- Timeout: 30 seconds per attempt
- Success: Any
2xxresponse code - Dead letter: After max attempts, delivery is marked
dead
Webhook delivery management
List deliveries
Response
Delivery statuses
Retry a failed delivery
Webhook health
Get per-endpoint delivery statistics:What’s next?
Structured Extraction
Automatically extract structured JSON from every inbound email.
Prompt Injection Detection
Detect and handle adversarial email content targeting your agent.
Messages
Full reference for sending emails and handling replies.
Inboxes
Configure per-inbox webhooks and extraction schemas.

