# Delete Draft post from the API - getting not\_found error

**URL:** https://meta.discourse.org/t/delete-draft-post-from-the-api-getting-not-found-error/401220
**Category:** Development
**Tags:** rest-api
**Created:** [April 22, 2026, 8:38am UTC](https://meta.discourse.org/t/delete-draft-post-from-the-api-getting-not-found-error/401220 "2026-04-22T08:38:25Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![nitinkg](https://avatars.discourse-cdn.com/v4/letter/n/eb8c5e/32.png) [@nitinkg](https://meta.discourse.org/u/nitinkg)
#### Post date: [April 22, 2026, 8:38am UTC](https://meta.discourse.org/t/delete-draft-post-from-the-api-getting-not-found-error/401220/1 "2026-04-22T08:38:25Z")

</div>

Hi,

I’m trying to delete a draft using the API:

```plaintext
DELETE /drafts/{draft_key}.json

```

The draft exists (verified via `GET /drafts.json`) and I’m using the correct `draft_key` and `sequence`.

### API Request (Postman / backend)

```plaintext
DELETE https://<base_url>/drafts/{draft_key}.json

```

**Headers:**

```plaintext
Api-Key: <api_key>
Api-Username: <username>
Content-Type: application/x-www-form-urlencoded / application/json

```

**Body (tried both):**

x-www-form-urlencoded:

```plaintext
draft_key=new_topic_xxxxx
sequence=12

```

or raw JSON:

```plaintext
{
  "draft_key": "new_topic_xxxxx",
  "sequence": 12
}

```

### Response

```plaintext
{
  "errors": ["The requested URL or resource could not be found."],
  "error_type": "not_found"
}

```

### From UI (works)

The same delete works from the browser using:

- `DELETE /drafts/{draft_key}.json`

- form data: `draft_key` + `sequence`

- session cookies + CSRF token

### Question

Is draft deletion supported via API key auth, same as the other APIs? If supported, what is the correct way to call this endpoint?

Thanks.

---

_[View the full topic](https://meta.discourse.org/t/delete-draft-post-from-the-api-getting-not-found-error/401220)._
