# Changelog

A public page of what your site or app shipped, with a page for every update and an RSS feed. Your agent can write the entries after each pull request, or you can keep them as markdown files in your repo. Publishing an update can mark wishlist requests shipped and tell the people who asked. Readers need no account, and nothing about them is kept.

## Switch it on

Open a site or app, then its **Changelog** tab, choose an address and switch it on. The page lives at `pagebee.ai/changelog/<address>`, each update at `pagebee.ai/changelog/<address>/<update>`, and the feed at `pagebee.ai/changelog/<address>/rss.xml`. Or ask your agent, in dev mode:

```text
Switch on the Pagebee changelog for tally.studio at pagebee.ai/changelog/tally, then add a "What's new" link to the footer.
```

## Writing an update

| Part | What to put |
| --- | --- |
| Title | What people can now do, in a short sentence: "Export any report as CSV" |
| Labels | **New** for a new capability, **Improved** when something got better, **Fixed** for a bug people hit. One or more |
| Body | One to three short paragraphs or a short list, in markdown |
| Version | Optional, for apps with numbered releases |
| Wishlist requests | The requests it ships, like `#12, #14` |
| Date | Today, or an earlier day to backdate an update that shipped before |

The body takes markdown: paragraphs, lists, bold, inline code, links and subheadings. No images or HTML yet.

Updates are drafts until you publish them. Publishing for the first time posts to a `changelog` channel in your live feed and marks the wishlist requests it names as shipped, which emails the voters who asked. That happens once, even if you unpublish and publish again.

Write for your customers, not your team: what they can do now, in their words. One update per change people would notice. A list of commit messages isn't a changelog.

## Over MCP

Every MCP mode can read the changelog. Dev mode can write it.

| Tool | Mode | What it does |
| --- | --- | --- |
| `list_changelog` | Every mode | Updates, newest first, with drafts, by label, words or date, plus notes on how entries should read |
| `get_changelog_entry` | Every mode | One update in full |
| `set_up_changelog` | Dev | Switch the page on, or change its address, title and intro |
| `write_changelog_entry` | Dev | Write an update, as a draft unless `publish` is true. The same `slug` again changes it in place |
| `update_changelog_entry` | Dev | Edit, publish or unpublish an update |
| `delete_changelog_entry` | Dev | Delete an update and its page |

Ask things like:

```text
Write a changelog draft for the pull request I just merged.
What did we ship on Tally last month? Summarise it for the newsletter.
Publish the CSV export update and mark wishlist #12 shipped.
```

## Routines

Run this after each merged pull request: as a Claude Code routine, a Codex or Cursor background agent, or a step in your pull request workflow. The Changelog tab shows it with your site's id filled in.

```text
After each pull request is merged in this repo: use the Pagebee MCP to keep the changelog for Tally (site <your site id>).
If the change is something customers would notice, call list_changelog to see how recent entries read, then write_changelog_entry as a draft:
a title that says what people can now do, labels (new, improved or fixed), and one to three short paragraphs in plain words.
If the pull request closes a wishlist request, put its number in wishlist. Leave it as a draft for me to publish.
```

Leave the last line out to let it publish on its own. With the [wishlist](/docs/wishlist) routine as well, your agent builds the top request, and the changelog says it shipped.

## From your repo

Keep updates as markdown files in your repo, one per update, named `YYYY-MM-DD-<slug>.md`, in a `changelog/` folder:

```markdown title="changelog/2026-11-24-csv-export.md"
---
title: Export any report as CSV
date: 2026-11-24 15:30
labels: new
version: 2.4.0
wishlist: 12
---

Pick a report, then **Export**. You get every row, not just the top ten.
```

`title` and `date` are needed; the rest is optional. Times are UTC, and a date alone means midday. The slug, after the date in the file name, is the update's address.

Push the folder with a dev-mode API key, from your deploy step or by hand:

```bash
for f in changelog/*.md; do
  jq -n --arg name "$(basename "$f")" --rawfile content "$f" '{name: $name, content: $content}'
done | jq -s '{files: .}' \
  | curl -sS -X POST https://api.pagebee.ai/api/properties/<your site id>/changelog/files \
      -H "Authorization: Bearer $PAGEBEE_DEV_KEY" -H "Content-Type: application/json" --data-binary @-
```

A push publishes new files, changes edited ones and leaves the rest alone. It never deletes: remove an update in the dashboard or with `delete_changelog_entry`. Add `"dry_run": true` to see what would change. The answer lists `created`, `updated`, `unchanged` and `errors`, one line per file that couldn't be read.

Pagebee's own [changelog](/changelog) works this way: every pull request that changes something you'd notice adds a file, and it's on the page as soon as it deploys.

## Show what's new in your app

Readers are never tracked, so a "what's new" dot is worked out from dates. In an app where people sign in, keep when each person last opened your changelog, and ask:

```bash
curl "https://api.pagebee.ai/v1/changelogs/tally?since=2026-11-20T09:00:00Z&limit=5"
```

`new_count` is how many updates came out since then. On a public site, show the dot when `last_published_at` is in the last fortnight.

## Public API

Any origin can call it, without credentials.

| Method and path | What it does |
| --- | --- |
| `GET /v1/changelogs/<address>` | The page: title, intro, site, `last_published_at` and published updates, newest first. `label`, `since`, `before` and `limit` (up to 200) in the query. `more` says if older ones exist; pass the last `published_at` as `before` for the next page |
| `GET /v1/changelogs/<address>/entries/<update>` | One update, with the newer and older ones and the wishlist requests it shipped |
| `GET /v1/changelogs/<address>/rss.xml` | RSS 2.0, the latest 50 |

## Settings

Change the address, title and intro in the Changelog tab, or switch the public page off: the page, its feed and its API answer 404 and your updates stay in the tab. Changing the address breaks links to the old one.

The changelog is on every plan, including Free, with unlimited readers. Updates and reads don't count as events.
