---
title: "Get a spec revision"
method: GET
path: "/api/v1/projects/{projectId}/revisions/{revision}"
tags: ["Projects"]
---

# Get a spec revision

`GET /api/v1/projects/{projectId}/revisions/{revision}`

## Request

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

Returns one committed spec revision: each bundled document's content alongside the previous revision's content, plus the cause and effect provenance edges attached to it.

## Path parameters

- `projectId` string, required
- `revision` integer, required

## Response `200`

The revision with its diff and provenance.

- object
  - `id` string, required
  - `revision` number, required
  - `changeSummary` string, nullable, required
  - `actorType` string, required
  - `actorId` string, required
  - `committedAt` string, required
  - `documentCount` number, required
  - `documents` object[], required
    - `documentId` string, required
    - `nodeId` string, nullable, required
    - `title` string, required
    - `revision` number, required
    - `content` string, required
    - `previousContent` string, nullable, required
  - `links` object[], required
    - `direction` string, required
    - `kind` string, required
    - `ref` string, required
    - `url` string, nullable, required
    - `label` string, nullable, 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)
