# List Analytics Page Edits

See a page's draft steps since its last publish, newest first, with who made each and whether it is undone. Undo Analytics Page and Redo Analytics Page walk the creator's own steps.

`GET https://connect.mindcloud.co/v2/analytics/pages/:pageId/edits`

Permissions: `analytics:page:view`.

## Parameters

### Path

- `pageId` (string, required): The page id, from List Analytics Pages.

### Headers

- `X-Company-Id` (string): Optional. The id of the organization to act in. Leave it out to act in the API key's own organization. Here a key acts in another organization only as one of its members: with "Use this key across all of your organizations" on, in an organization its creator belongs to with a role. Child organizations and MindCloud staff access do not reach this endpoint. Every response's X-Company-Id header names the organization it acted in. See [Organizations](https://mindcloud.co/docs/api/rest/introduction/organizations).

## Example request

```bash
curl --request GET \
  --url 'https://connect.mindcloud.co/v2/analytics/pages/Pq7Lm2Xc9RtA/edits' \
  --header 'Authorization: Bearer $MINDCLOUD_API_TOKEN'
```

## Response fields

- `id` (string): The step id. Redo Analytics Page takes it as editId to bring an undone step back.
- `kind` (string): What the step changed. A step touching several panels names its first.
  Allowed values:
    - `panelUpdate`: A panel changed.
    - `panelCreate`: A panel was added.
    - `panelDelete`: A panel was deleted.
    - `pageUpdate`: The page's settings changed.
- `targetId` (string): The panel (from Get Analytics Page) or page (from List Analytics Pages) it changed.
- `name` (string): The name of what it changed, or null.
- `changeCount` (number): How many changes the step made together, such as one per panel a layout pass moved.
- `madeBy` (string): Who made it.
  Allowed values:
    - `you`: The key's creator, in the app or through the API.
    - `cirra`: Cirra, working for someone on the page.
    - `colleague`: Another editor of the page.
- `createdBy` (string): The userId of the person who made it, or for whom Cirra made it, from List Members.
- `madeByName` (string): The name of the person who made it or for whom Cirra made it, or null.
- `isUndone` (boolean): Whether it is undone.
- `next` (string): For the creator's own steps: undo when Undo Analytics Page would take this step next, redo when Redo would, otherwise null.
  Allowed values:
    - `undo`
    - `redo`
- `createdOn` (date): When it was made.
