---
title: "Discard a draft"
method: POST
path: "/agents/runs/{id}/discard"
tags: ["agents"]
---

# Discard a draft

`POST /agents/runs/{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/agents/runs/{id}/discard`
- Auth: HTTP bearer

## Path parameters

- `id` string, required: run ID

## Response `200`

Discarded

- object
  - `success` boolean, required

## Other responses

- `401`: Missing or invalid API key
- `404`: Run not found
- `409`: Not awaiting approval

---

[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)
