---
title: "List Drafts"
method: GET
path: "/v0/pods/{pod_id}/drafts"
tags: ["PodsDrafts"]
---

# List Drafts

`GET /v0/pods/{pod_id}/drafts`

## Request

- Base URL: `https://api.agentmail.to`
- URL: `https://api.agentmail.to/v0/pods/{pod_id}/drafts`
- Auth: HTTP bearer

**CLI:**
```bash
agentmail pods:drafts list --pod-id <pod_id>
```

## Path parameters

- `pod_id` string, required: ID of pod.

## 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.dev/agentmail-to/apis/agentmail-cli-speakeasy-api.md) - [All operations](https://skmtc.dev/agentmail-to/apis/agentmail-cli-speakeasy-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentmail-to/apis/agentmail-cli-speakeasy-api/revisions/869b7f1c360c?raw)
