---
title: "List drafts"
method: GET
path: "/v1/mailboxes/{id}/drafts"
tags: ["Mailboxes"]
---

# List drafts

`GET /v1/mailboxes/{id}/drafts`

## Request

- Base URL: `https://api.samva.dev`
- URL: `https://api.samva.dev/v1/mailboxes/{id}/drafts`
- Auth: API key in header `x-api-key`

Returns summaries of the caller's unsent drafts in the mailbox, newest first, optionally for one thread. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. Read a draft's body with `GET /v1/mailboxes/{id}/drafts/{draftId}`.

## Path parameters

- `id` string, required

## Query parameters

- `limit` string, nullable
- `cursor` string
- `threadId` string

## Response `200`

MailboxDraftPage

- MailboxDraftPage
  - `items` MailboxDraftSummary[], required
    - `id` string, required
    - `channel` 'email', required: The channel an endpoint, thread, or message belongs to.
    - `threadId` string, required
    - `inReplyToMessageId` string, required
    - `state` 'saved' | 'locked' | 'sent', required
    - `lockedByActionId` string, required
    - `to` string[], required
    - `subject` string, nullable, required
    - `createdAt` string, required
    - `updatedAt` string, required
  - `nextCursor` string, nullable, required

## Other responses

- `401`: UnauthorizedError
- `403`: ForbiddenError
- `404`: ResourceNotFoundError
- `422`: ValidationError
- `500`: InternalError
- `504`: GatewayTimeoutError

---

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