# AgentMail List Drafts

> AgentMail List Drafts is a free API for AI agents from AgentMail at mpp.api.agentmail.to, Free, status unknown (last checked 2026-10-11).

Lists all email drafts in a specified AgentMail inbox, with support for filtering, pagination, and sorting

## Facts

- Endpoint: GET https://mpp.api.agentmail.to/v0/inboxes/:inbox_id/drafts?utm_source=zero.xyz
- Price: Free
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Provider: AgentMail
- Docs: https://docs.agentmail.to
- Website: https://agentmail.to
- Tags: email, inboxes, domains, drafts, threads, webhooks, messaging, ai, social
- Canonical page: https://www.zero.xyz/c/agentmail-drafts-c525e332
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dlV-OhMi28F8awllRb9W-

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentmail-drafts-c525e332
```

Example prompt: Show me all the drafts saved in AgentMail inbox 'inbox_abc123' — up to 20 of them, filtered to those labeled 'follow-up', sorted from newest to oldest.

## When to prefer this

Use this endpoint when an AI agent needs to inspect, review, or manage unsent email drafts within a specific AgentMail inbox — especially useful for automation workflows that check pending outbound messages, retrieve scheduled drafts, or audit draft content before sending. Prefer this over a general email list endpoint when specifically targeting draft state rather than sent or received messages.

## Known failure modes

- Invalid or missing inbox_id returns 404 not found
- Expired or invalid Bearer token returns 401 unauthorized
- Invalid date-time format for before/after filters returns 400 bad request
- Non-existent label filter returns empty drafts array with count 0
- Invalid page_token returns 400 or empty results
- Rate limiting may return 429 too many requests

## How this service works

List Drafts

## Output

Returns a paginated list of draft objects for the specified inbox, each containing draft_id, inbox_id, subject, to/cc/bcc recipients, preview text, labels, scheduled send time, attachments metadata, and last updated timestamp, along with a count of items returned and pagination limit.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "inbox_id"
 ],
 "properties": {
  "after": {
   "type": "string",
   "title": "After",
   "format": "date-time",
   "description": "Timestamp after which to filter by."
  },
  "limit": {
   "type": "integer",
   "title": "Limit",
   "description": "Limit of number of items returned."
  },
  "before": {
   "type": "string",
   "title": "Before",
   "format": "date-time",
   "description": "Timestamp before which to filter by."
  },
  "labels": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "title": "Labels",
   "description": "Labels to filter by."
  },
  "inbox_id": {
   "type": "string",
   "title": "InboxId",
   "description": "The ID of the inbox."
  },
  "ascending": {
   "type": "boolean",
   "title": "Ascending",
   "description": "Sort in ascending temporal order."
  },
  "page_token": {
   "type": "string",
   "title": "PageToken",
   "description": "Page token for pagination."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "title": "ListDraftsResponse",
 "required": [
  "count",
  "drafts"
 ],
 "properties": {
  "count": {
   "type": "integer",
   "title": "Count",
   "description": "Number of items returned."
  },
  "limit": {
   "type": "integer",
   "title": "Limit",
   "description": "Limit of number of items returned."
  },
  "drafts": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "DraftItem",
    "required": [
     "inbox_id",
     "draft_id",
     "labels",
     "updated_at"
    ],
    "properties": {
     "cc": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "title": "DraftCc",
      "description": "Addresses of CC recipients. In format `username@domain.com` or `Display Name <username@domain.com>`."
     },
     "to": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "title": "DraftTo",
      "description": "Addresses of recipients. In format `username@domain.com` or `Display Name <username@domain.com>`."
     },
     "bcc": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "title": "DraftBcc",
      "description": "Addresses of BCC recipients. In format `username@domain.com` or `Display Name <username@domain.com>`."
     },
     "labels": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "title": "DraftLabels",
      "description": "Labels of draft."
     },
     "preview": {
      "type": "string",
      "title": "DraftPreview",
      "description": "Text preview of draft."
     },
     "send_at": {
      "type": "string",
      "title": "DraftSendAt",
      "format": "date-time",
      "description": "Time at which to schedule send draft."
     },
     "subject": {
      "type": "string",
      "title": "DraftSubject",
      "description": "Subject of draft."
     },
     "draft_id": {
      "type": "string",
      "title": "DraftId",
      "description": "ID of draft."
     },
     "inbox_id": {
      "type": "string",
      "title": "InboxId",
      "description": "The ID of the inbox."
     },
     "updated_at": {
      "type": "string",
      "title": "DraftUpdatedAt",
      "format": "date-time",
      "description": "Time at which draft was last updated."
     },
     "attachments": {
      "type": "array",
      "items": {
       "type": "object",
       "title": "Attachment",
       "required": [
        "attachment_id",
        "size"
       ],
       "properties": {
        "size": {

… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentmail-drafts-c525e332/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mpp.api.agentmail.to](https://www.zero.xyz/host/mpp.api.agentmail.to/llms.txt)
