---
title: "Process email updates and deletions"
method: POST
path: "/email-receive-webhook"
---

# Process email updates and deletions

`POST /email-receive-webhook`

This endpoint processes email updates and deletions based on the provided payload.

## Request body

- object
  - `triggerType` string
  - `userId` string
  - `connectionType` string
  - `connectionId` string
  - `data` object
    - `fields` object
      - `id` string
      - `threadId` string
      - `from` object
        - `emailAddress` object
          - `address` string
      - `to` object[]
        - `emailAddress` object
          - `address` string
      - `cc` object[]
        - `emailAddress` object
          - `address` string
      - `bcc` object[]
        - `emailAddress` object
          - `address` string
      - `subject` string
      - `emailBody` string
      - `receivedDateTime` string, date-time
      - `webLink` string
      - `isRead` boolean
      - `hasAttachments` boolean
    - `rawFields` object
      - `labelIds` string[]
      - `parentFolderId` string
  - `isBulkImport` boolean

## Response `200`

Successful response

- object
  - `message` string

## Other responses

- `500` — Error occurred while processing the email

---

[API](https://skmtc.dev/supabase/apis/dalil-oauth-resource-api.md) · [All operations](https://skmtc.dev/supabase/apis/dalil-oauth-resource-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/supabase/dalil-oauth-resource-api/revisions/40a7125e0355/schema)
