# List the versions of a row

> Source: https://elaichi.ai/docs/api-reference/collections/collection/listcollectionrowhistory/

`GET /collection/{id}/rows/{rowId}/history`

Resource: **Collection** · API: **Collections**

## Path parameters

- **`id`** _(string, required)_
  Resource id
- **`rowId`** _(string, required)_
  Row id

## Response body

- **`result`** _(array<object>)_
  - **`version`** _(integer)_
  - **`op`** _(string)_
    Allowed: `baseline`, `insert`, `update`, `delete`, `restore`
  - **`changed_fields`** _(array<object>)_
    At most 20 names; changed_count is the true count.
    - **`key`** _(string,null)_
    - **`name`** _(string)_
  - **`changed_count`** _(integer)_
  - **`actor`** _(object)_
    _One of:_
    - **object**
      - **`kind`** _(unknown)_
      - **`user_id`** _(string)_
    - **object**
      - **`kind`** _(unknown)_
      - **`automation_id`** _(string)_
      - **`run_id`** _(string)_
      - **`on_behalf_of_user_id`** _(string)_
      - **`session_id`** _(string,null)_
    - **object**
      - **`kind`** _(unknown)_
  - **`created_at`** _(string)_
  - **`bytes`** _(integer)_
- **`next_cursor`** _(string,null)_
- **`prev_cursor`** _(string,null)_
- **`history`** _(object,null)_
- **`current_version`** _(integer)_
- **`row_deleted`** _(boolean)_
- **`oldest_available_version`** _(integer,null)_
- **`users`** _(object)_
  Names for the user actors on this page only.
- **`automations`** _(object)_
  Names for the workflow actors on this page; null when the caller cannot see it.

## Code examples

### curl

```bash
curl -X GET 'https://api.elaichi.ai/collection/<id>/rows/<rowId>/history' \
  -H 'Authorization: Bearer $ELAICHI_API_TOKEN' \
  -H 'Content-Type: application/json'
```

### JavaScript

```javascript
const response = await fetch('https://api.elaichi.ai/collection/<id>/rows/<rowId>/history', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer ' + process.env.ELAICHI_API_TOKEN,
    'Content-Type': 'application/json',
  },
});

const data = await response.json();
console.log(data);
```

### Python

```python
import os
import requests

url = "https://api.elaichi.ai/collection/<id>/rows/<rowId>/history"
headers = {
    "Authorization": f"Bearer {os.environ['ELAICHI_API_TOKEN']}",
    "Content-Type": "application/json",
}

response = requests.get(url, headers=headers)
print(response.json())
```
