---
title: "Retrieve a page's HTML"
method: GET
path: "/pages/{slug}/source"
tags: ["Pages"]
---

# Retrieve a page's HTML

`GET /pages/{slug}/source`

## Request

- Base URL: `https://api.crevio.co/v1`
- URL: `https://api.crevio.co/v1/pages/{slug}/source`
- Auth: API key in header `Authorization`

Returns a page's stored HTML, so a page whose source file is gone can be edited and published again under the same slug. Pass `version` for an earlier version instead (1 is the one replaced most recently; the page's `versions` says how many are kept), e.g. to restore it.

## Path parameters

- `slug` string, required

## Query parameters

- `version` integer

## Response `200`

The page's HTML

- object
  - `object` 'page_source', required
  - `slug` string, required
  - `title` string, nullable, required
  - `html` string, required
  - `version` integer: The earlier version returned, when one was asked for.
  - `replaced_at` string, date-time: When that version was replaced.

## Other responses

- `401`: Authentication required
- `403`: Forbidden
- `404`: Resource not found
- `429`: Rate limit exceeded — 600 requests per minute per owner on the free tier: every API key and OAuth token one person holds on an account shares one budget, and the account's team keys share another. Retry after the number of seconds in `Retry-After`.
- `500`: Internal server error

## Changes

- **2026-11-15** `56c22ab9b282`: 5 warning
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `401`
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `403`
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `404`
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `429`
  - …1 more
- **2026-10-24** `2a302ee0aae3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/crevio/apis/crevio-api-v1/changes/pages/:slug/source/get.md)

---

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