# molted approvals

Source: https://molted.email/docs/cli/approvals

List send approvals and withdraw your own pending send

| Command | Description |
| - | - |
| [`molted approvals list`](#molted-approvals-list) | List send approvals |
| [`molted approvals withdraw`](#molted-approvals-withdraw) | Withdraw (reject) your own pending send. Give the approval id, or `--request <requestId>` from request-send |

## Agent context

A plain list of this tenant's send approvals (GET /v1/send/approvals), scoped to the mailboxes the calling key can read, newest first, at most 100.

```bash
molted approvals list
molted approvals list --status pending
molted approvals list --mailbox <mailboxId>
```

Withdraw your own pending send (PATCH /v1/send/approvals/:id, decision "rejected"). Only a send your own key (or a key of the same agent) created can be withdrawn; anyone else's is 403 not\_own\_send and stays a human decision in the portal. Approving is human-only (D3, epic #1353) and is not exposed here.

```bash
molted approvals withdraw <approvalId>
molted approvals withdraw --request <requestId> --reason "sent to the wrong list"
```

A send held for approval returns \{requestId, status: "pending\_approval"} and no approval id: pass that requestId as `--request` (looked up by GET /v1/send/approvals?requestId=, however many newer approvals exist), or find the id in `approvals list --status pending` (id is the approval, request\_id the send). `molted overrides reject-send` is a different, human-gated route that rejects a whole held thread and has no own-send exception.

Related: [`molted overrides queue`](https://molted.email/docs/cli/overrides.md), [`molted overrides held-messages`](https://molted.email/docs/cli/overrides.md)

## Commands

### molted approvals list

List send approvals

```bash
molted approvals list [options]
```

| Option | Description | Default |
| - | - | - |
| `--status <status>` | Filter by approval status: pending, approved, rejected or expired | |
| `--mailbox <mailboxId>` | Filter by mailbox ID (a UUID; 403 outside the key's scope) | |

### molted approvals withdraw

Withdraw (reject) your own pending send. Give the approval id, or `--request <requestId>` from request-send

```bash
molted approvals withdraw [options] [approvalId]
```

| Argument | Description | Required |
| - | - | - |
| `[approvalId]` | | no |

| Option | Description | Default |
| - | - | - |
| `--request <requestId>` | The send request id (resolved to its pending approval by GET /v1/send/approvals?requestId=) | |
| `--reason <text>` | Why you are withdrawing it (recorded as the decision reason) | |

See [CLI overview](https://molted.email/docs/cli.md) for global options, credentials and output format.
