---
title: "One revision, with its body"
method: GET
path: "/api/pages/{id}/revisions/{rev_id}"
tags: ["pages"]
---

# One revision, with its body

`GET /api/pages/{id}/revisions/{rev_id}`

## Request

- Base URL: `https://telawiki.com`
- URL: `https://telawiki.com/api/pages/{id}/revisions/{rev_id}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `tela_session`

`editor+`. A revision id belonging to another page answers `404 revision_not_found`, not someone else's content.

## Response `200`

The revision.

- object
  - `revision` Revision, required: A history entry without its body.
    - `id` integer, required
    - `page_id` integer, required
    - `title` string, required
    - `author_id` integer, nullable, required
    - `author_username` string
    - `source` string, required: What made the edit, e.g. the app, sync, or an agent.
    - `byte_size` integer, required
    - `created_at` string, required: `YYYY-MM-DD HH:MM:SS` in UTC.
    - `body` string, required: The page body as of this revision.
    - `props` PageProps: Free-form page properties. Reserved keys are dropped. Two are load-bearing: `deck: true` makes the body a Slidev presentation, `sheet: true` makes it a spreadsheet — both are then stored verbatim, frontmatter included.

## Other responses

- `400`: `invalid_id` — a path parameter was not a positive integer.
- `403`: `forbidden` or `viewer_no_write`.
- `404`: `revision_not_found`.
- `500`: `internal` — server error.

---

[API](https://skmtc.dev/telawiki/apis/tela-rest-api.md) · [All operations](https://skmtc.dev/telawiki/apis/tela-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/telawiki/apis/tela-rest-api/revisions/f316f31f6fcb?raw)
