Skip to main content
Set a webhook URL on an inbox. When an email arrives, Commune parses it, runs security checks, extracts structured data (if configured), and POSTs the result to your endpoint.

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 2xx response code
  • Dead letter: After max attempts, delivery is marked dead
Dead deliveries are not retried automatically. Use the retry endpoint to replay them once your server is back online.

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.
Last modified on March 19, 2026