# getSpaceTextLines

A text file's lines, numbered, a page at a time (`N| line`; up to 12000 characters a page from `startLine`, `totalLines` and `endLine` say where you are). For a file too large for getSpaceTextContent to return whole: read it page by page, passing the FIRST page's `versionId` on every later page so all pages come from one version, then add lines with insertSpaceTextLines by these numbers with that `versionId` as `baseVersionId` (a save since is refused, never mixed in).

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "getSpaceTextLines", "variables": {...} }`
- Scope: `READ`
- Type: query
- Idempotency: a read; rejects `Idempotency-Key`
- Rate-limited: no

## Variables

- `itemId`: `ID!` (required)
- `versionId`: `ID`
- `startLine`: `Int`
- `maxChars`: `Int`

## Response (data, an example)

```json
{
  "spacesQuery": {
    "textLines": {
      "versionId": "<ID>",
      "totalLines": 0,
      "startLine": 0,
      "endLine": 0,
      "text": "…"
    }
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "operationId": "getSpaceTextLines",
    "variables": {
      "itemId": "<itemId>"
    }
  }'
```
