---
title: "Returns a paginated list of edits (latest edits if no relevant parameters specified)"
method: GET
path: "/history"
---

# Returns a paginated list of edits (latest edits if no relevant parameters specified)

`GET /history`

## Query parameters

- `before_id` string — Unique sequential ID for an edit history entry (positive big integer)
- `after_id` string — Unique sequential ID for an edit history entry (positive big integer)
- `count` number

## Response `200`

A list of edit history records

- object
  - `history` BuildingEditHistoryEntry[]
    - `revision_id` string — Unique sequential ID for an edit history entry (positive big integer)
    - `forward_patch` object — Forward diff of the building attribute data
    - `reverse_patch` object — Reverse diff of the building attribute data
    - `revision_timestamp` string, date-time — UTC timestamp at which the building data was edited
    - `username` string — Username of the editor
    - `building_id` number — Unique ID of the edited building
  - `paging` object
    - `id_for_older_query` string, nullable — If older records exist - ID to use for querying them (use as before_id param), otherwise null
    - `id_for_newer_query` string, nullable — If newer records exist - ID to use for querying them (use as after_id param), otherwise null

## Other responses

- `400` — Invalid request submitted by user
- `500` — Unexpected server error

---

[API](https://skmtc.net/colouring-cities/apis/colouring-london-api.md) · [All operations](https://skmtc.net/colouring-cities/apis/colouring-london-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/colouring-cities/colouring-london-api/versions/fbcb5bceaeb4/schema)
