Email forwarding
Email forwarding brings inbound email into your knowledge graph. Each forwarded message becomes an Email record linked to the people and companies it mentions, and the agents can cite it like any other record.
You set it up in Settings → Integrations → Email integrations
(/settings/integrations/email). Admins and owners can add, edit and remove
integrations.
How it works
Every integration has its own inbound webhook URL:
https://<your CCD address>/api/webhooks/email/inbound/<token>
The token in the URL is the credential. Anyone who has the URL can post email into your workspace, so keep it private and rotate it if it leaks.
When a message arrives, CCD stores it once (a repeat of the same message ID is ignored), adds it to the knowledge graph and queues it for enrichment. The URL always answers 200, even for a duplicate, a filtered sender or a disabled integration, so the sender stops retrying. The errors are 401 for an unknown token, 415 for a body that is neither JSON nor a form, and 422 for a message CCD can't read (for example, one with no valid sender address).
What can send to the URL
The URL reads two kinds of body:
- Mailgun, Postmark and SendGrid's own inbound formats, posted straight from the provider. CCD recognises the format and maps the fields itself.
- One JSON shape you build yourself, from Zapier, Make or a script.
Mailgun
Create a route (Receiving → Routes) whose filter matches the address you want to bring in, with the action Forward to the inbound webhook URL. Mailgun posts the parsed message; CCD keeps the sender, recipients, subject, plain and HTML body, Message-ID, date and headers.
Postmark
On your Postmark server, open Default Inbound Stream → Settings and paste the URL into Inbound webhook. CCD uses the sender's own Message-ID header (not Postmark's internal ID) to ignore repeats.
SendGrid
In Settings → Inbound Parse, add a host and set its destination URL to the inbound webhook URL. Both the default parsed post and POST the raw, full MIME message work.
Attachments are not kept for any provider: only the text, HTML and headers. Postmark and SendGrid don't sign their inbound posts, and CCD doesn't check Mailgun's signature, so for all three the URL token is the credential.
The JSON shape
Anything that lets you build the request body (Zapier's "Webhooks by Zapier", Make, your own script) posts this shape:
| Field | Required | Meaning |
|---|---|---|
from | yes | Sender address |
from_name | no | Sender display name |
to, cc | no | Lists of addresses |
subject | no | Defaults to "(no subject)" |
text, html | no | Body as plain text and/or HTML |
message_id | no | Provider message ID, used to ignore repeats |
received_at | no | ISO timestamp |
headers | no | Anything else worth keeping, stored as-is |
Send it as application/json.
Setting one up
- Open Settings → Integrations → Email integrations.
- Pick a provider and, optionally, a from-address filter: a regular expression the sender must match. Messages from other senders are dropped silently. Leave it empty to accept any sender.
- Click Create integration and copy the Inbound webhook URL.
- Paste it into the provider's inbound settings (see above), or into the sending tool (for example the URL field of a Zapier webhook step) and map the fields.
You can switch an integration off without deleting it, change its filter, or Rotate URL token: the old URL stops working at once and you give the sender the new one. Deleting an integration removes its URL.
Read next
- Connections: tools that sync into CCD.
- Security model: encryption and tenant isolation.