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

# Get a context document revision

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

## Request

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

Returns a single revision including its captured title and markdown content. Unknown or deleted slugs, and uncaptured revisions, respond 404.

## Path parameters

- `slug` string, required
- `revision` integer, required

## Response `200`

The revision record, including its snapshot content.

- object
  - `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
  - `content` string, required: The captured markdown snapshot at this revision.
  - `properties` object, required: The document properties captured at this revision.

## 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)
