# Review held posts with the API (https://notert.io/docs/api/review-held-posts)

Last updated 2026-11-24

A token can work through the posts your board holds for review: it reads the queue, and approves a post onto your board or declines it with a reason. Calls are authenticated and paced as [reading your workspace](/docs/api/read-your-workspace) describes.

## Permissions [#permissions]

Pick `moderation:manage` under **Permissions**, in the Moderation area, as you [create the token](/support/workspace/api-tokens#create-a-token). Only owners and admins review posts in Notert, so the token works only while whoever created it, or last rolled it, is still an owner or admin. Otherwise every call is refused with `FORBIDDEN`.

| Endpoint                                                                              | Permission          | Does                                                            |
| ------------------------------------------------------------------------------------- | ------------------- | --------------------------------------------------------------- |
| [`GET /moderation/queue`](/docs/api/reference/list-posts-for-review)                  | `moderation:manage` | Lists the posts waiting for review, flagged, or already decided |
| [`POST /moderation/cases/{id}/review`](/docs/api/reference/approve-or-decline-a-post) | `moderation:manage` | Approves a post onto the board, or declines it                  |

A token held to boards sees and decides only the posts on those boards.

## Read the queue [#read-the-queue]

`GET /moderation/queue` answers the cases waiting for review, a page at a time, with `limit` and `cursor` as [the requests' list](/docs/api/read-your-workspace#page-through) takes them. Send `view=flagged` for posts already on the board that were reported or flagged, or `view=resolved` for decided ones.

```sh
curl "https://app.notert.io/api/v1/moderation/queue?view=waiting" \
  -H "Authorization: Bearer $NOTERT_API_TOKEN"
```

```json
{
  "items": [
    {
      "id": "9e8d7c6b-5a49-4382-9716-0a1b2c3d4e5f",
      "kind": "comment",
      "requestId": "3f2a9c1e-6b7d-4e58-9a0f-1c2d3e4f5a6b",
      "commentId": "1e2d3c4b-5a69-4788-8a9b-0c1d2e3f4a5b",
      "title": "Dark mode for the public board",
      "body": "Get cheap followers at example.com/deal",
      "files": 0,
      "author": "deal-bot",
      "authorKind": "contact",
      "postedAt": "2026-11-22T07:58:10.402Z",
      "source": "links",
      "categories": [],
      "detail": null,
      "reports": { "count": 0, "reasons": [] },
      "appealOf": null,
      "postEditedAt": null,
      "openedAt": "2026-11-22T07:58:10.402Z",
      "decision": null,
      "can": { "approve": true, "decline": true }
    }
  ],
  "nextCursor": null
}
```

- **`kind`** is `request` or `comment`. A comment's `title` is the title of the request it's on.
- **`author`** is the poster's name, never their email address, and `null` for someone the workspace no longer knows.
- **`source`** says what held or flagged it, such as `approval` when your board holds every new post, `links` for a first-time poster's links, `words` for a word your board blocks, `check` for the content check, `reports` for readers' reports, or `appeal` when its author asked you to look again.
- **`categories`** are what the content check found, such as `spam` or `harassment`, and **`reports`** how many readers reported it and why, never who.
- **`can`** says whether you may approve or decline it now. A post Notert itself holds because of a report can be declined but not approved.

## Approve or decline [#approve-or-decline]

`POST /moderation/cases/{id}/review` takes `decision`, either `approve` or `decline`. A decline needs a `reason`, with its `category`, one of `spam`, `harassment`, `hate`, `sexual`, `violence`, `personal_info`, `off_topic` or `other`, and an optional `note`, which its author is told. Send the `postEditedAt` the queue answered with an approval, so a post its author edited since you read it is refused with `EDITED_SINCE_READ` rather than approved unread.

```sh
curl https://app.notert.io/api/v1/moderation/cases/9e8d7c6b-5a49-4382-9716-0a1b2c3d4e5f/review \
  -H "Authorization: Bearer $NOTERT_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "decision": "decline", "reason": { "category": "spam", "note": "Links to a paid service." } }'
```

```json
{
  "id": "9e8d7c6b-5a49-4382-9716-0a1b2c3d4e5f",
  "requestId": "3f2a9c1e-6b7d-4e58-9a0f-1c2d3e4f5a6b",
  "commentId": "1e2d3c4b-5a69-4788-8a9b-0c1d2e3f4a5b",
  "outcome": "declined"
}
```

Sending the same decision again answers the case as it stands, so a retry is safe. Sending the other decision for a case already decided is refused with `ALREADY_DECIDED`, whose `data.outcome` says how it was decided.

| Status | `code`              | Means                                                                            |
| ------ | ------------------- | -------------------------------------------------------------------------------- |
| 403    | `FORBIDDEN`         | The teammate who holds the token isn't an owner or admin now                     |
| 404    | `NOT_FOUND`         | No such case in the workspace, or on the boards the token is held to             |
| 409    | `EDITED_SINCE_READ` | The post was edited since you read it. List it again and send its `postEditedAt` |
| 409    | `HELD_FOR_NOTERT`   | Notert holds the post because of a report. It can still be declined              |
| 409    | `ALREADY_DECIDED`   | The case was decided the other way. `data.outcome` says how                      |

What approving and declining do on your board, and what the author is told, is in [review posts before they go public](/support/public-board/review-before-posts-go-public).