---
title: "Email sent"
method: POST
path: "email.sent"
tags: ["Webhook Events"]
---

# Email sent

`POST email.sent` (webhook)

A mail left through the email API. Exactly one event per mail, whichever path sent it: `source` is `send`, `reply`, `forward`, `draft` or `scheduled`. A scheduled draft carries both `scheduleId` and `draftId`.

Use it to record sends in your own system with the `metadata` you passed. The sent copy also arrives as `message.sent` in the inbox.

## Payload

- WebhookPayloadEmailSent: Webhook payload for email.sent.
  - `id` string, required
  - `profiles` object[]: The profiles this event belongs to, each with the externalId you set on it (null when none is set). Use it to route the event to your tenant without storing Zernio profile ids. Present on every event tied to a profile, absent on events that belong to none. Events spanning several profiles (a post published to accounts of different profiles) list each once.
    - `id` string, required
    - `externalId` string, nullable, required
  - `test` boolean: Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
  - `event` 'email.sent', required
  - `account` object, required
    - `accountId` string
    - `profileId` string
    - `platform` string
    - `username` string
    - `displayName` string, nullable
  - `source` 'send' | 'reply' | 'forward' | 'draft' | 'scheduled', required
  - `email` object, required
    - `messageId` string: Provider id of the sent mail.
    - `threadId` string
    - `trackingId` string, nullable
    - `metadata` object, nullable
    - `subject` string
    - `from` EmailAddress
      - `email` string, email, required
      - `name` string, nullable
    - `to` EmailAddress[]
      - `email` string, email, required
      - `name` string, nullable
    - `cc` EmailAddress[]
      - `email` string, email, required
      - `name` string, nullable
    - `bcc` EmailAddress[]
      - `email` string, email, required
      - `name` string, nullable
    - `sentAt` string, date-time
  - `draftId` string, nullable: The draft it was sent from (`source: draft`, or a scheduled draft).
  - `scheduleId` string, nullable: The scheduled send (`source: scheduled`).
  - `replyToMessageId` string, nullable
  - `forwardedFrom` string, nullable
  - `timestamp` string, date-time, required

## Acknowledgement `200`

Webhook received successfully

---

[API](https://skmtc.dev/zernio/apis/zernio-api.md) - [All operations](https://skmtc.dev/zernio/apis/zernio-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zernio/apis/zernio-api/revisions/a79c233ebf22?raw)
