---
title: "Mailbox action pending approval"
method: POST
path: "mailbox.action.pending_approval"
---

# Mailbox action pending approval

`POST mailbox.action.pending_approval` (webhook)

## Payload

- object
  - `type` 'mailbox.action.pending_approval', required
  - `timestamp` string, required
  - `data` object, required
    - `mailboxId` string, required
    - `namespaceId` string, nullable, required
    - `action` object, required
      - `id` string, required
      - `type` 'sendMessage' | 'reply' | 'updateDraft' | 'createNote' | 'assignThread' | 'changeThreadState' | 'call' | 'extensionRequest', required
      - `state` 'approvalRequired': Deliveries recorded before this field existed omit it.
      - `decision` object: Deliveries recorded before this field existed omit it.
        - `outcome` 'allow' | 'requireApproval' | 'deny', required
        - `reason` string, nullable, required
        - `policyId` string, nullable, required
        - `source` 'grant' | 'installation' | 'policy', nullable, required
        - `decidedAt` string, required
      - `threadId` string, nullable, required
      - `reason` string, nullable, required
      - `proposedBy` object, required
        - `kind` 'user' | 'apiKey' | 'extension' | 'externalAgent' | 'samvaAgent' | 'system', required
        - `id` string, required
        - `displayName` string, nullable
        - `source` 'humanUi' | 'externalApi' | 'externalAgent' | 'extension' | 'system', required
      - `createdAt` string, required
    - `draft` object, required
      - `to` string[], required
      - `cc` string[], required
      - `subject` string, nullable, required

## Acknowledgement `200`

Any 2xx status acknowledges the event.

---

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