---
title: "Discard a pending draft"
method: POST
path: "/mail-drafts/{id}/discard"
tags: ["mail-drafts"]
---

# Discard a pending draft

`POST /mail-drafts/{id}/discard`

## Request

- Base URL: `https://api.mailly.site` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mailly.site/mail-drafts/{id}/discard`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Request body

- object
  - `revision` integer, required

## Response `200`

Draft action succeeded

- object
  - `success` boolean, required

## Other responses

- `400`: Invalid parameters
- `401`: Unauthorized
- `404`: Draft or email not found
- `409`: Draft version or status has changed
- `503`: Send result is unconfirmed; you can retry the same version

---

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