Skip to main content
Documentation
Docs
Esc

    Loading the search index…

    Versions

    How the public API is versioned, how a key is pinned to a dated version, and how to pick a version per request with Pagebread-Version.

    The public API has a major version in its path, /v1, and dated versions inside it. A dated version decides the shape of responses. Changes that could break an integration only ever arrive in a new dated version, so code written against one version keeps working.

    Supported versions

    VersionStatus
    2027-02-01Current

    Which version a request gets

    1. The Pagebread-Version header, if the request sends one.
    2. Otherwise the version the key is pinned to. A key is pinned to the current version when it is created.

    Every response says which version it was served at, in its own Pagebread-Version header.

    bash
    curl https://api.pagebread.com/v1/me \
      -H "Authorization: Bearer $PAGEBREAD_API_KEY" \
      -H "Pagebread-Version: 2027-02-01"

    A version that does not exist is refused with 400 invalid_api_version, and the error's meta.supported_versions lists the ones that do.