---
title: "Discard draft"
method: POST
path: "/v1/drafts/{id}/discard"
tags: ["Owner"]
---

# Discard draft

`POST /v1/drafts/{id}/discard`

## Request

- Base URL: `https://api.vicem.ai`
- URL: `https://api.vicem.ai/v1/drafts/{id}/discard`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Request body

- UndoDraftRequest

## Response `200`

OK

- DraftResponse
  - `id` string, required
  - `interactionId` string, required
  - `kind` 'ack' | 'relay' | 'schedule' | 'owner_answer' | 'custom', required
  - `status` 'awaiting_approval' | 'approved' | 'scheduled' | 'sending' | 'sent' | 'failed' | 'bounced' | 'discarded', required
  - `to` string[], required
  - `cc` string[], required
  - `subject` string, required
  - `body` string, required
  - `text` string, required
  - `language` string, nullable, required
  - `payloadHash` string, required
  - `sendAfter` string, date-time, required
  - `flags` string[], required
  - `createdAt` string, date-time, required
  - `sentAt` string, date-time, required
  - `error` string, nullable, required

## Other responses

- `400`: Invalid request (body not JSON, or schema validation failed).
- `401`: Missing, expired or invalid bearer token.
- `404`: No such resource, or not visible to this caller.
- `413`: Body over the limit (64 KB; 512 KB for contact import).
- `500`: Unexpected server error (reported to Sentry).

---

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