Email events provide delivery and engagement notifications for transactional and marketing emails.

Supported Events

EventDescription
email.sentEmail accepted for delivery
email.openedRecipient opened the email
email.clickedRecipient clicked a tracked link
email.bouncedDelivery failed
email.subscribedContact subscribed
email.unsubscribedContact unsubscribed

Reserved Headers

Every Email webhook request includes the following headers:
HeaderDescription
x-cocoon-event-typeEvent type (e.g., email.opened)
x-cocoon-event-datetimeEvent time
x-cocoon-email-message-idInternal message identifier
x-cocoon-email-senderSender email
x-cocoon-contact-uuidContact UUID
x-cocoon-contact-emailRecipient email

Example Payload

{
    // Event details
}

Typical Integrations

  • CRM Updates: Automatically log email interactions (sent, opened, clicked) on contact records.
  • Marketing Dashboards: Track delivery rates and user engagement metrics in real time.
  • Customer Engagement Scoring: Adjust user scores based on email click and open events.
  • Automation Workflows: Trigger follow-up workflows when a bounce occurs.
  • Analytics: Power internal business intelligence tools with raw email engagement data.