# at.unthread.document.listDrafts

> Published by [unthread.at](https://lexicon.garden/identity/did:plc:trxedfug5xlbw64ydrkv7cr2)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:trxedfug5xlbw64ydrkv7cr2/at.unthread.document.listDrafts)
- [Documentation](https://lexicon.garden/lexicon/did:plc:trxedfug5xlbw64ydrkv7cr2/at.unthread.document.listDrafts/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:trxedfug5xlbw64ydrkv7cr2/at.unthread.document.listDrafts/examples)

## Definitions

### `at.unthread.document.listDrafts`

**Type**: `query`

List the authenticated user's drafts.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `limit` | `integer` | No | Maximum number of drafts to return. |
| `cursor` | `string` | No | Pagination cursor from a previous response. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cursor` | `string` | No | Pagination cursor for the next page. |
| `drafts` | `array` | Yes |  |

## Raw Schema

```json
{
  "id": "at.unthread.document.listDrafts",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "drafts"
          ],
          "properties": {
            "cursor": {
              "type": "string",
              "description": "Pagination cursor for the next page."
            },
            "drafts": {
              "type": "array",
              "items": {
                "ref": "at.unthread.document.putDraft#draftView",
                "type": "ref"
              }
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "properties": {
          "limit": {
            "type": "integer",
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "description": "Maximum number of drafts to return."
          },
          "cursor": {
            "type": "string",
            "description": "Pagination cursor from a previous response."
          }
        }
      },
      "description": "List the authenticated user's drafts."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
