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
| Version | Status |
|---|---|
2027-02-01 | Current |
Which version a request gets
- The
Pagebread-Versionheader, if the request sends one. - 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.
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.