# email.updated

A message in the mailbox changed: it was read or marked unread, starred or flagged, labelled or categorized, archived, trashed or moved. Covers the Inbox, and Sent on Gmail. A change can arrive more than once; key on `email.messageId`.

Gmail reports exactly what changed in `changes`. Outlook reports the message as it is now, with `changes: null`. A message deleted for good fires `email.deleted` instead. IMAP mailboxes do not send it.




**Payload for `email.updated`:**

- **id** (required) `string`: No description
- **profiles**: `WebhookProfiles` - See schema definition
- **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** (required) `string`: No description - one of: email.updated
- **account** (required) `object`: 
  - **accountId** `string`: No description
  - **profileId** `string`: No description
  - **platform** `string`: No description
  - **username** `string`: No description
  - **displayName** `string,null`: No description
- **email** (required) `object`: The message as it is after the change.
  - **messageId** `string`: No description
  - **threadId** `string,null`: No description
  - **folder** `string,null`: `inbox`, `sent`, `archive`, `trash`, `spam`, `drafts`, or the provider folder id for any other folder.
  - **unread** `boolean,null`: No description
  - **starred** `boolean,null`: Gmail star or Outlook flag.
  - **labels** `array,null`: Gmail user label ids or Outlook category names.
- **changes** (required) `object,null`: What changed. Gmail only; null on Outlook.
- **timestamp** (required) `string` (date-time): No description