---
title: "List Drafts"
method: GET
path: "/v0/drafts"
tags: ["Drafts"]
---

# List Drafts

`GET /v0/drafts`

**CLI:**
```bash
agentmail drafts list
```

## Query parameters

- `limit` integer — Limit of number of items returned.
- `page_token` string — Page token for pagination.
- `labels` string[] — Labels to filter by.
- `before` string, date-time — Timestamp before which to filter by.
- `after` string, date-time — Timestamp after which to filter by.
- `ascending` boolean — Sort in ascending temporal order.

## Response `200`

- ListDraftsResponse
  - `count` integer, required — Number of items returned.
  - `limit` integer — Limit of number of items returned.
  - `next_page_token` string — Page token for pagination.
  - `drafts` DraftItem[], required — Ordered by `updated_at` descending.
    - `inbox_id` string, required — The ID of the inbox.
    - `draft_id` string, required — ID of draft.
    - `labels` string[], required — Labels of draft.
    - `to` string[] — Addresses of recipients. In format `username@domain.com` or `Display Name <username@domain.com>`.
    - `cc` string[] — Addresses of CC recipients. In format `username@domain.com` or `Display Name <username@domain.com>`.
    - `bcc` string[] — Addresses of BCC recipients. In format `username@domain.com` or `Display Name <username@domain.com>`.
    - `subject` string — Subject of draft.
    - `preview` string — Text preview of draft.
    - `attachments` Attachment[] — Attachments in draft.
      - `attachment_id` string, required — ID of attachment.
      - `filename` string — Filename of attachment.
      - `size` integer, required — Size of attachment in bytes.
      - `content_type` string — Content type of attachment.
      - `content_disposition` 'inline' | 'attachment' — Content disposition of attachment.
      - `content_id` string — Content ID of attachment.
    - `in_reply_to` string — ID of message being replied to.
    - `send_status` 'scheduled' | 'sending' | 'failed' — Schedule send status of draft.
    - `send_at` string, date-time — Time at which to schedule send draft.
    - `updated_at` string, date-time, required — Time at which draft was last updated.

## Other responses

- `404`

---

[API](https://skmtc.net/agentmail-to/apis/api-2.md) · [All operations](https://skmtc.net/agentmail-to/apis/api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agentmail-to/api-2/revisions/869b7f1c360c/schema)
