---
title: "Reject an agent's email"
method: POST
path: "/api/v1/approvals/{id}/reject"
tags: ["Approvals"]
---

# Reject an agent's email

`POST /api/v1/approvals/{id}/reject`

## Request

- Base URL: `https://supermailos.com`
- URL: `https://supermailos.com/api/v1/approvals/{id}/reject`
- Auth: HTTP bearer

Nothing is sent. The agent sees your `note`.

## Path parameters

- `id` string, required

## Request body

- object
  - `note` string

## Response `200`

Rejected.

- object
  - `approval` AgentApproval, required
    - `id` string, required
    - `inboxId` string, required
    - `kind` 'send' | 'reply', required
    - `threadId` string, nullable
    - `from` string, email, required
    - `to` string, required
    - `cc` string, required
    - `bcc` string: People's keys only.
    - `subject` string, required
    - `text` string: The body the agent wrote (people's keys only).
    - `html` string: Its HTML version, when it wrote one (people's keys only): what most mail apps show.
    - `reasons` string[], required
    - `status` 'pending' | 'approved' | 'rejected' | 'sent' | 'failed' | 'expired', required
    - `createdAt` string, date-time, required
    - `expiresAt` string, date-time, required
    - `decidedAt` string, date-time
    - `decisionNote` string: What the person said when deciding.
    - `result` object: Once sent: `{ messageId, threadId, mailboxId }`. Once failed: `{ error, code }`.

## Other responses

- `401`: Missing, invalid or revoked API key.
- `403`: The key lacks the scope (`missing_scope`) or the access (`forbidden`).
- `404`: Not found — or not reachable with this key.
- `409`: A request with this Idempotency-Key is still in progress.
- `429`: Too many requests.

---

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