# listEmployeeRevisions

An AI employee's saved versions, newest first (offset-paged; advance by `nextOffset`). One per save: the version from before a change is the one saved just before it (`createdAt`). Each says when, who saved it (`actorName`, else `actorUserId`; neither for the system) and the name and job title it held. To put one back, restoreEmployeeRevision.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "listEmployeeRevisions", "variables": {...} }`
- Scope: `READ`
- Type: query
- Idempotency: a read; rejects `Idempotency-Key`
- Rate-limited: no
- Result cap: `limit` is clamped to 100, without an error

## Variables

- `employeeId`: `ID!` (required)
- `offset`: `Int` (default `0`)
- `limit`: `Int` (default `10`)

## Response (data, an example)

```json
{
  "aiEmployeesQuery": {
    "contactAgentConfigRevisions": {
      "total": 0,
      "nextOffset": 0,
      "items": [
        {
          "id": "<ID>",
          "createdAt": "2026-01-01T00:00:00.000Z",
          "actorUserId": "<ID>",
          "actorName": "…",
          "name": "…",
          "title": "…"
        }
      ]
    }
  }
}
```

## Example

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