# get_document

`tools/call` · `POST /clanker/v1/tickets:get-document`

Read one of a ticket's documents, such as its Scope or Plan, in Markdown with its revision. One nobody has written yet holds its status's template at revision 0. Needs read access.

- Area: Planning
- Needs the read grant. Read-only. Idempotent.

## Inputs

- `ticket` (string, required): A ticket ID, such as WEB-31.
- `document` (string, required): A document's name or slug from get_ticket, such as Plan or build-record.

## Request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_document",
    "arguments": {
      "ticket": "WEB-31",
      "document": "Plan"
    }
  }
}
```

## HTTP request

The same call over the clanker HTTP API, with a clanker OAuth access token:

```bash
curl -X POST https://api.clankership.com/clanker/v1/tickets:get-document \
  -H "Authorization: Bearer $CLANKER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "ticket": "WEB-31",
    "document": "Plan"
  }'
```
