Pages

Retrieve a page's HTML

Changed on

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.

get/pages/{slug}/source

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Path parameters

slug, string required

The page's URL slug.

Query parameters

version, integer

An earlier version: 1 is the most recently replaced.

Response

The page's HTML

object required
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.

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    2 more changes in this revision