# listSpaceItemVersions

A file's saved versions, newest first: at most the newest 200: number, size, who saved it, and which is current. Read an older one with getSpaceTextContent(versionId); bring it back with restoreSpaceItemVersion.

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

## Variables

- `itemId`: `ID!` (required)

## Response (data, an example)

```json
{
  "spacesQuery": {
    "versions": [
      {
        "id": "<ID>",
        "versionNumber": 0,
        "sizeBytes": 0,
        "contentType": "…",
        "createdAt": "2026-01-01T00:00:00.000Z",
        "createdBy": {
          "kind": "PERSON",
          "label": "…"
        },
        "isCurrent": true
      }
    ]
  }
}
```

## Example

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