---
title: "List a context document's revisions"
method: GET
path: "/api/v1/context/{slug}/revisions"
tags: ["Context"]
---

# List a context document's revisions

`GET /api/v1/context/{slug}/revisions`

## Request

- Base URL: `https://app.khotan.com`
- URL: `https://app.khotan.com/api/v1/context/{slug}/revisions`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

Returns the document's revision history, newest first: revision number, title, author, optional change summary, and timestamp — never the snapshot content. Unknown or deleted slugs respond 404.

## Path parameters

- `slug` string, required

## Response `200`

The revision history, newest first.

- object
  - `revisions` object[], required
    - `revision` integer, required
    - `title` string, required
    - `authorType` 'agent' | 'api' | 'user', required
    - `authorId` string, required
    - `changeSummary` string, nullable, required: Optional note recorded with the revision.
    - `createdAt` string, required

## Other responses

- `401`: Authentication is missing or invalid.
- `404`: The resource was not found.
- `429`: Too many requests; retry after the indicated delay.

---

[API](https://skmtc.dev/khotan/apis/khotan-api.md) - [All operations](https://skmtc.dev/khotan/apis/khotan-api/llms.txt) - [OpenAPI document](https://skmtc.dev/khotan/apis/khotan-api/revisions/90b512a53e42?raw)
