# Write the changelog with the API (https://notert.io/docs/api/write-the-changelog)

Last updated 2026-12-01

A token can write your changelog from your release tooling: it drafts entries, changes them, and, if you let it, publishes them now or at a later moment. Every write is made as the teammate who holds the token. Calls are authenticated and paced as [reading your workspace](/docs/api/read-your-workspace) describes.

## Permissions [#permissions]

Pick these under **Permissions**, in the Changelog area, as you [create the token](/support/workspace/api-tokens#create-a-token):

| Endpoint                                                                                               | Permission         | Does                                                 |
| ------------------------------------------------------------------------------------------------------ | ------------------ | ---------------------------------------------------- |
| [`POST /changelog-entries`](/docs/api/reference/create-a-draft-changelog-entry)                        | `changelog:write`  | Starts a draft                                       |
| [`PATCH /changelog-entries/{id}`](/docs/api/reference/change-a-changelog-draft)                        | `changelog:write`  | Changes a draft's text, tags or requests             |
| [`POST /changelog-entries/{id}/pictures`](/docs/api/reference/add-pictures-to-a-changelog-draft)       | `changelog:write`  | Stores pictures for a draft's text                   |
| [`PUT /changelog-entries/{id}/cover`](/docs/api/reference/set-a-changelog-draft-s-cover)               | `changelog:write`  | Sets a draft's cover                                 |
| [`DELETE /changelog-entries/{id}/cover`](/docs/api/reference/take-a-changelog-draft-s-cover-off)       | `changelog:write`  | Takes a draft's cover off                            |
| [`POST /changelog-entries/{id}/publish`](/docs/api/reference/publish-a-changelog-entry)                | `changelog:manage` | Publishes a draft now or schedules it                |
| [`POST /changelog-entries/{id}/unpublish`](/docs/api/reference/unpublish-a-changelog-entry)            | `changelog:manage` | Takes a published entry back to a draft              |
| [`POST /changelog-entries/{id}/test-email`](/docs/api/reference/email-a-changelog-entry-s-test)        | `changelog:write`  | Emails a test of an entry to the token's holder      |
| [`PUT /changelog-entries/{id}/email`](/docs/api/reference/switch-a-changelog-entry-s-subscriber-email) | `changelog:manage` | Switches whether its go-live emails subscribers      |
| [`DELETE /changelog-entries/{id}`](/docs/api/reference/delete-a-changelog-entry)                       | `changelog:manage` | Deletes an entry for good                            |
| [`POST /changelog-tags`](/docs/api/reference/create-a-changelog-tag)                                   | `changelog:write`  | Adds a changelog tag                                 |
| [`PATCH /changelog-tags/{id}`](/docs/api/reference/rename-a-changelog-tag)                             | `changelog:write`  | Renames a changelog tag on every entry               |
| [`DELETE /changelog-tags/{id}`](/docs/api/reference/delete-a-changelog-tag)                            | `changelog:write`  | Deletes a changelog tag, which comes off every entry |
| [`GET /changelog-subscribers`](/docs/api/reference/list-changelog-subscribers)                         | `people:read`      | Lists your changelog's subscribers, never an address |
| [`POST /changelog-subscribers`](/docs/api/reference/add-changelog-subscribers)                         | `changelog:manage` | Adds addresses to your changelog's subscribers       |

`changelog:manage` is its own permission because publishing can email your subscribers and the customers who voted for what the entry ships, which can't be taken back. Give the token `changelog:read` too to read entries back and look up changelog tags.

## Start a draft [#start-a-draft]

`POST /changelog-entries` starts a draft. Only `title` is needed. `body` is Markdown, and `requestIds` names the requests it ships. Send an `id` of your own, a UUID, or an [`Idempotency-Key`](/docs/api/read-your-workspace#retry-a-write-safely) header, so a retry starts one draft; an `id` a teammate's entry already has is refused with 409 `ID_TAKEN`.

```sh
curl https://app.notert.io/api/v1/changelog-entries \
  -H "Authorization: Bearer $NOTERT_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "id": "8d4e2f1a-3b5c-4d6e-9f7a-0b1c2d3e4f5a",
    "title": "Dark mode",
    "body": "The public board now follows your system theme.",
    "requestIds": ["3f2a9c1e-6b7d-4e58-9a0f-1c2d3e4f5a6b"]
  }'
```

It answers 201 with the entry as `GET /changelog-entries/{id}` does:

```json
{
  "id": "8d4e2f1a-3b5c-4d6e-9f7a-0b1c2d3e4f5a",
  "title": "Dark mode",
  "status": "draft",
  "slug": null,
  "url": null,
  "publishedAt": null,
  "body": "The public board now follows your system theme.",
  "version": "2026-11-22 09:12:44.208113+00",
  "tagIds": [],
  "requestIds": ["3f2a9c1e-6b7d-4e58-9a0f-1c2d3e4f5a6b"],
  "emailsSubscribers": true,
  "subscriberEmail": "will_email",
  "subscribersToEmail": 120
}
```

`status` is `draft`, `scheduled` or `published`. `slug` and `url`, its page on your board, are set once it's published, and `publishedAt` is when it went or goes live. Send an `id` of your own, a UUID, so a call you retry after a lost answer gives back the same draft rather than a second one.

## Change a draft [#change-a-draft]

`PATCH /changelog-entries/{id}` replaces each field you send and leaves the rest. `tagIds` and `requestIds` replace the whole list. Only a draft changes: a published or scheduled entry answers `PUBLISHED`, so unpublish it first. Send the `version` that `GET /changelog-entries/{id}` answered, so a change made since is refused with `EDITED_MEANWHILE` rather than written over.

## Add pictures [#add-pictures]

`POST /changelog-entries/{id}/pictures` takes `pictureUrls`, the public `https` addresses of 1 to 10 pictures, which Notert fetches and stores for a draft. Each can be a JPEG, PNG, GIF or WebP of up to 10 MB and no more pixels than 3840 x 2160. It answers where each is stored, as `storedUrl`, in the order you sent them:

```json
{
  "pictures": [
    {
      "pictureUrl": "https://example.com/release/dark-board.png",
      "storedUrl": "https://files.notert.io/..."
    }
  ]
}
```

The text shows none of them until you place each in `body` with a change, as `![what it shows](storedUrl)`.

The pictures come whole or not at all: a link that can't be fetched, isn't a picture or is too large answers `PICTURE_REFUSED`, with the link in `data.url` and why in `data.reason`, and none is stored. A call with more pictures than the token has left this hour answers `TOO_MANY_REQUESTS`, and one your workspace's storage has no room for answers `STORAGE_FULL`, each storing none of them, so you can send the same call again later without storing a picture twice. Only a draft takes pictures. Only send addresses you trust: Notert fetches each from the open web, up to 60 an hour for each token.

## Set its cover [#set-its-cover]

A draft's cover is the picture drawn above it on your changelog and in its email. `PUT /changelog-entries/{id}/cover` sets it, replacing any it had, from a `pictureUrl`, which Notert fetches as it fetches the pictures above, or a `storedUrl`, a picture already stored for your texts such as one `POST /changelog-entries/{id}/pictures` answered. Send one or the other. A `storedUrl` Notert doesn't store answers `PICTURE_GONE`. `DELETE /changelog-entries/{id}/cover` takes it off, leaving any picture the text shows. Both answer the entry, whose `coverUrl` says where its cover is now, and only a draft's cover changes.

## Publish or schedule it [#publish-or-schedule-it]

`POST /changelog-entries/{id}/publish` publishes a draft now, or at a later moment when you send `at`, such as `2026-12-01T09:00:00Z`. A moment in the past dates the entry back rather than scheduling it. Send the `version` you last read too, so a draft a teammate changed since is refused with `EDITED_MEANWHILE` rather than published unread.

```sh
curl https://app.notert.io/api/v1/changelog-entries/8d4e2f1a-3b5c-4d6e-9f7a-0b1c2d3e4f5a/publish \
  -H "Authorization: Bearer $NOTERT_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "at": "2026-12-01T09:00:00Z", "version": "2026-11-22 09:12:44.208113+00" }'
```

Before publishing, `GET /changelog-entries/{id}` answers whether going live emails your changelog subscribers, in `emailsSubscribers`, why in `subscriberEmail`, and how many in `subscribersToEmail`. Send `emailSubscribers` with the publish to decide it: `false` keeps the entry from your subscribers, and `true` emails those who haven't had it. Without it, the entry's own switch decides, as it stands in its editor. The customers who voted for or follow the requests it ships are told either way.

It answers the entry, now `scheduled` or `published`, with whether it emails your subscribers. Publishing an entry that's already published or scheduled answers it as it stands, so a retry publishes once and tells no one twice. Its switch stays as it went out. `POST /changelog-entries/{id}/unpublish` takes a published or scheduled entry back to a draft.

To decide it apart from publishing, `PUT /changelog-entries/{id}/email` takes `on`, `true` or `false`, as the Publish popover's email row does, and answers the entry with `emailsSubscribers` as set. It works on a draft, and on a scheduled entry or one just published until its email went out: after that it answers 409 `ALREADY_SENT`, since nothing calls an email back, and with no subscriber to email, or a board that hides the changelog, 409 `NO_SUBSCRIBERS`.

## Test the email [#test-the-email]

`POST /changelog-entries/{id}/test-email` emails a test of the entry, as its subscribers would get it once published, to the teammate who holds the token, at the address their account holds and no one else's. It sends the title and text as stored now, so a draft needs a title first (`TITLE_REQUIRED`). Each call sends another email, and it answers the entry's `id`.

## Subscribers [#subscribers]

`GET /changelog-subscribers` lists your changelog's subscribers, newest first, as Settings > Changelog does, each by their contact's `personId` and the `name` your team knows them by, never their address. Each says how they came in `source` (`board`, `team` or `email`), who added them in `addedBy` for one your team added, when in `subscribedAt`, and whether they still hear in `state` (`subscribed`, `unsubscribed` or `undeliverable`). `hearing` counts how many an entry going live would email now, across every page; page on with `nextCursor`.

`POST /changelog-subscribers` adds up to 100 `emails`, each found or added as a contact, so every entry that goes live after emails them. It needs a token whose holder is an owner or admin. Someone who unsubscribed, or whose address takes no email, is left out, so no one who left is added back. It answers how many were `added`, how many were subscribed `already` and how many were `skipped`.

## Rename a tag [#rename-a-tag]

`PATCH /changelog-tags/{id}` renames a tag with a new `name`, which every entry wearing it shows at once, published ones on the board included. A name is the workspace's once in any case, so one another tag has answers 409 `NAME_TAKEN`, and only a token whose holder is an owner or admin renames one. Sent again with the same name, it changes nothing.

## Delete [#delete]

`DELETE /changelog-entries/{id}` deletes an entry for good, a draft, scheduled or published one, as Delete in its editor does: it leaves the board and the widget at once, and the requests it shipped stay as they are. `DELETE /changelog-tags/{id}` deletes a changelog tag, which comes off every entry that wears it, and needs a token whose holder is an owner or admin. Neither can be undone, in Notert or here. Each answers the deleted `id`, and sending it again answers `NOT_FOUND`.

## Example: a release script [#example-a-release-script]

Brightline's release pipeline drafts the entry from its release notes, and leaves publishing to a person in Notert. Its token holds `changelog:write` alone, so it can never email anyone:

```js
async function notert(method, path, body) {
  const response = await fetch(`https://app.notert.io/api/v1${path}`, {
    method,
    headers: {
      Authorization: `Bearer ${process.env.NOTERT_API_TOKEN}`,
      "Content-Type": "application/json",
    },
    body: JSON.stringify(body),
  });
  const answer = await response.json();
  if (!response.ok) throw new Error(`${answer.code}: ${answer.message}`);
  return answer;
}

// `entryId` is a UUID the pipeline keeps with the release, so a run retried after a timeout
// answers the same draft rather than starting a second.
export async function draftRelease({ entryId, title, notes, requestIds, screenshot }) {
  const entry = await notert("POST", "/changelog-entries", {
    id: entryId,
    title,
    body: notes,
    requestIds,
  });
  if (screenshot) {
    const { pictures } = await notert("POST", `/changelog-entries/${entry.id}/pictures`, {
      pictureUrls: [screenshot],
    });
    await notert("PATCH", `/changelog-entries/${entry.id}`, {
      body: `${notes}\n\n![${title}](${pictures[0].storedUrl})`,
    });
  }
  return entry.id;
}
```

## When a write is refused [#when-a-write-is-refused]

On top of [the API's errors](/docs/api/read-your-workspace#errors), a write can answer:

| Status | `code`               | Means                                                                        |
| ------ | -------------------- | ---------------------------------------------------------------------------- |
| 400    | `TITLE_REQUIRED`     | The entry would have no title                                                |
| 400    | `FOREIGN_PICTURES`   | The body shows a picture stored elsewhere. [Add it](#add-pictures) first     |
| 403    | `HOLDER_NOT_ALLOWED` | The teammate who holds the token can't write now. Roll it to make it yours   |
| 404    | `NOT_FOUND`          | No such entry in the workspace                                               |
| 404    | `REQUEST_GONE`       | A request among `requestIds` isn't in the workspace, or was merged           |
| 409    | `PUBLISHED`          | Only a draft changes. Unpublish the entry first                              |
| 409    | `ALREADY_SENT`       | Its subscriber email already went out, which nothing calls back              |
| 409    | `NO_SUBSCRIBERS`     | Its go-live would email no one                                               |
| 409    | `NAME_TAKEN`         | Another changelog tag has that name                                          |
| 409    | `EDITED_MEANWHILE`   | It changed since you read its `version`. Read it again and retry             |
| 409    | `LIMIT_REACHED`      | More requests than one entry ships                                           |
| 422    | `PICTURE_REFUSED`    | A picture couldn't be fetched or isn't one. `data.url` and `data.reason` say |