# at.unthread.document.getDraft

> 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.getDraft)
- [Documentation](https://lexicon.garden/lexicon/did:plc:trxedfug5xlbw64ydrkv7cr2/at.unthread.document.getDraft/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:trxedfug5xlbw64ydrkv7cr2/at.unthread.document.getDraft/examples)

## Definitions

### `at.unthread.document.getDraft`

**Type**: `query`

Get a single draft document by TID.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `tid` | `string` | Yes | TID of the draft to retrieve. |

#### Output

**Encoding**: `application/json`

#### Errors

- **DraftNotFound**

## Raw Schema

```json
{
  "id": "at.unthread.document.getDraft",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "DraftNotFound"
        }
      ],
      "output": {
        "schema": {
          "ref": "at.unthread.document.putDraft#draftView",
          "type": "ref"
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "tid"
        ],
        "properties": {
          "tid": {
            "type": "string",
            "description": "TID of the draft to retrieve."
          }
        }
      },
      "description": "Get a single draft document by TID."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
