# fillDraftTurns

query · in the family [Reading your records](/reference/reading-your-records/)

## What it does

The conversation on one of your own wizard drafts, oldest first — what you said and what the assistant answered — one page at a time.

The conversation on ONE of YOUR wizard drafts, OLDEST first: what you said and what the assistant answered, turn by turn (a failed assistant turn says why; sheetRevised says the sheet changed under a reply). YOURS ALONE: another person's draft, a draft outside your tenant, or none at all is NOT_FOUND. limit 1..200 (default 50); nextToken the prior page's cursor VERBATIM (opaque, bound to this draft). Requires authentication (user sessions).

## What happens

Reads only — changes nothing. Another person’s draft is not yours to read.

## Who may call it

Capability area: **Reading your records** — Looking up and listing the records of your organization.

- Owner
- System Administrator
- Manager
- Associate Manager
- Warehouse Associate
- Sales Associate
- An API key whose scope allows `api:fillDraftTurns`

## Arguments

| Name | Type | Required | Notes |
| --- | --- | --- | --- |
| `id` | [ID](/types/#scalars) `ID!` | yes | The id of the record. |
| `limit` | [Int](/types/#scalars) | no | How many records to answer at most; a page may hold fewer. |
| `nextToken` | [String](/types/#scalars) | no | The cursor from the previous page, passed back exactly as received. |

## Returns

[FillDraftTurnPage](/types/FillDraftTurnPage/) `FillDraftTurnPage!` — One page of a draft's conversation, OLDEST first (the transcript order; nextToken walks forward).

This is a page: `items` holds the records and `nextToken` the cursor for the next page — pass it back verbatim until it is null. See [paging](/guides/paging-and-the-cursor-grammar/).

## Example request

```graphql
query ExampleFillDraftTurns($id: ID!, $limit: Int) {
  fillDraftTurns(id: $id, limit: $limit) {
    items {
      id
      seq
      role
      body
      materialIds
      requestId
      outcome
      failReason
      sheetRevised
      understood
      createdAt
    }
    nextToken
  }
}
```

Variables:

```json
{
  "id": "01900000-0000-7000-8000-37386ae00000",
  "limit": 1
}
```

## Example response

```json
{
  "data": {
    "fillDraftTurns": {
      "items": [
        {
          "id": "01900000-0000-7000-8000-37386ae00000",
          "seq": 1,
          "role": "user",
          "body": "Restock before the weekend.",
          "materialIds": [
            "01900000-0000-7000-8000-a36392ca0000"
          ],
          "requestId": "01900000-0000-7000-8000-3675ee9f0000",
          "outcome": "ok",
          "failReason": "<fail reason>",
          "sheetRevised": true,
          "understood": "<understood>",
          "createdAt": "2027-01-31T00:00:00.000Z"
        }
      ],
      "nextToken": "<the cursor from the previous page>"
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": null,
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}
```

## Errors this call can answer

- `VALIDATION/INVALID` — Something in the request is not valid. ([VALIDATION](/errors/VALIDATION/))
- `AUTHN/REQUIRED` — Sign in to do this. ([AUTHN](/errors/AUTHN/))
- `AUTHZ/FORBIDDEN` — Your role does not allow this action. ([AUTHZ](/errors/AUTHZ/))
- `RATE_LIMIT/THROTTLED` — Too many requests in a short time. ([RATE_LIMIT](/errors/RATE_LIMIT/))
- `NOT_FOUND/*` — That record could not be found. ([NOT_FOUND](/errors/NOT_FOUND/))
