---
ai:
  exclude: true
search:
  tags:
    - Content Resource
    - GET
seo:
  description: >-
    Returns the history of a particular piece of content.… Reference for the GET
    /rest/api/content/{id}/history endpoint in the Confluence Data Center API.
sidebar:
  label: Get history of content
  badge: GET
title: Get history of content
type: openapi-operation
---
Returns the history of a particular piece of content. Example request URI(s): 

- `http://example.com/confluence/rest/api/content/1234/history`
- `http://example.com/confluence/rest/api/content/1234/history?expand=previousVersion,nextVersion,lastUpdated`
- `http://example.com/confluence/rest/api/content/1234/history?cql=creator=currentUser()&cqlcontext={"spaceKey":"TST", "contentId":"55"}&expand=previousVersion,nextVersion,lastUpdated`
- `http://example.com/confluence/rest/api/content/1234/history?cql=creator=currentUser()&cqlcontext={"spaceKey":"TST", "contentId":"55"}&expand=previousVersion,nextVersion,lastUpdated&start=0&limit=10`

`GET /rest/api/content/{id}/history`

**Responses**

- `200` — Returns a full JSON representation of the content's history
- `404` — Returned if there is no content with the given id, or if the calling user does not have permission to view the content.

Response example, 200:

```json
{
  "previousVersion": {
    "expanded": true,
    "idProperties": {}
  },
  "nextVersion": {
    "expanded": true,
    "idProperties": {}
  },
  "lastUpdated": {
    "expanded": true,
    "idProperties": {}
  },
  "latest": true,
  "createdBy": {
    "profilePicture": {
      "path": "http://www.example.com/path/to/image.png",
      "width": 16,
      "height": 16,
      "isDefault": true
    },
    "displayName": "Joe Smith",
    "type": "string"
  },
  "createdDate": "2020-01-01T00:00:00Z",
  "contributors": {
    "expanded": true,
    "idProperties": {}
  },
  "lastUpdatedRef": {
    "expanded": true,
    "idProperties": {}
  },
  "nextVersionRef": {
    "expanded": true,
    "idProperties": {}
  },
  "previousVersionRef": {
    "expanded": true,
    "idProperties": {}
  },
  "contentParentRef": {
    "expanded": true,
    "idProperties": {}
  }
}
```
